Module: Sequel::Plugins::PgRow::InstanceMethods
- Defined in:
- lib/sequel/plugins/pg_row.rb
Instance Method Summary collapse
-
#sql_literal_append(ds, sql) ⇒ Object
Literalize the model instance and append it to the sql.
Instance Method Details
#sql_literal_append(ds, sql) ⇒ Object
Literalize the model instance and append it to the sql.
70 71 72 73 74 75 |
# File 'lib/sequel/plugins/pg_row.rb', line 70 def sql_literal_append(ds, sql) sql << 'ROW' ds.literal_append(sql, values.values_at(*columns)) sql << '::' ds.quote_schema_table_append(sql, model.dataset.first_source_table) end |