Sha256: ccb9778901c6bfc566453019bec03e141cab82c2daf27f576af9507f3a566152
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
module DataObjects # The Result class is returned from Connection#execute_non_query. class Result # The ID of a row inserted by the Command attr_accessor :insert_id # The number of rows affected by the Command attr_accessor :affected_rows # Create a new Result. Used internally in the adapters. def initialize(command, affected_rows, insert_id = nil) @command = command @affected_rows = affected_rows @insert_id = insert_id end # Return the number of affected rows def to_i @affected_rows end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-data_objects-0.11.0 | lib/data_objects/result.rb |
sbf-data_objects-0.10.17 | lib/data_objects/result.rb |