Class representating PostgreSQL JSON column hash/object values.
Included modules
- Sequel::SQL::AliasMethods
Public Instance methods
sql_literal_append
(ds, sql)
Convert the hash to a json string, append a literalized version of the string to the sql, and explicitly cast the string to json.
[show source]
# File lib/sequel/extensions/pg_json.rb, line 85 def sql_literal_append(ds, sql) ds.literal_append(sql, Sequel.object_to_json(self)) sql << CAST_JSON end