Public Instance methods
multi_replace(*values)
Replace
multiple rows in a single query.
[show source]
# File lib/sequel/adapters/utils/replace.rb 18 def multi_replace(*values) 19 clone(:replace=>true).multi_insert(*values) 20 end
replace(*values)
Execute a REPLACE statement on the database (deletes any duplicate rows before inserting).
[show source]
# File lib/sequel/adapters/utils/replace.rb 8 def replace(*values) 9 execute_insert(replace_sql(*values)) 10 end
replace_sql(*values)
SQL statement for REPLACE
[show source]
# File lib/sequel/adapters/utils/replace.rb 13 def replace_sql(*values) 14 clone(:replace=>true).insert_sql(*values) 15 end
supports_replace?()
Databases using this module support REPLACE.
[show source]
# File lib/sequel/adapters/utils/replace.rb 23 def supports_replace? 24 true 25 end