module Sequel::Plugins::PgRow::InstanceMethods

  1. lib/sequel/plugins/pg_row.rb
Parent: PgRow

Methods

Public Instance

  1. sql_literal_append

Constants

CAST = '::'.freeze  
ROW = 'ROW'.freeze  

Public Instance methods

sql_literal_append (ds, sql)

Literalize the model instance and append it to the sql.

[show source]
# 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