Sha256: 5bcc022009df8ec9810155dfcfc60c86a65db0b423e46e6174606834fa0c01dc
Contents?: true
Size: 269 Bytes
Versions: 1
Compression:
Stored size: 269 Bytes
Contents
module PostgresUpsert class Result attr_reader :inserted, :updated def initialize(insert_result, update_result) @inserted = insert_result ? insert_result.cmd_tuples : 0 @updated = update_result ? update_result.cmd_tuples : 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
postgres_upsert-4.0.0 | lib/postgres_upsert/result.rb |