class Sequel::Postgres::JSONHash

Class representating PostgreSQL JSON column hash/object values.

Public Instance Methods

sql_literal_append(ds, sql) click to toggle source

Convert the array to a string using to_json, append a literalized version of the string to the sql, and explicitly cast the string to json.

# File lib/sequel/extensions/pg_json.rb, line 75
def sql_literal_append(ds, sql)
  ds.literal_append(sql, to_json)
  sql << CAST_JSON
end