class Sequel::Postgres::JSONHashBase
Class representing PostgreSQL JSON/JSONB column hash/object values.
Public Instance Methods
sql_literal_append(ds, sql)
click to toggle source
Convert the hash to a json string and append a literalized version of the string to the sql.
# File lib/sequel/extensions/pg_json.rb, line 108 def sql_literal_append(ds, sql) ds.literal_append(sql, Sequel.object_to_json(self)) end