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

Instance Method Details

#sql_literal_append(ds, sql) ⇒ Object

Literalize the model instance and append it to the sql.



114
115
116
117
118
119
# File 'lib/sequel/plugins/pg_row.rb', line 114

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