Module: Sequel::Plugins::PgRow::InstanceMethods
- Defined in:
- lib/sequel/plugins/pg_row.rb
Constant Summary collapse
- ROW =
'ROW'.freeze
- CAST =
'::'.freeze
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.
116 117 118 119 120 121 |
# File 'lib/sequel/plugins/pg_row.rb', line 116 def sql_literal_append(ds, sql) sql << ROW ds.literal_append(sql, values.values_at(*columns)) sql << CAST ds.quote_schema_table_append(sql, model.dataset.first_source_table) end |