Class Sequel::Postgres::JSONHashBase
In: lib/sequel/extensions/pg_json.rb
Parent: DelegateClass(Hash)

Class representing PostgreSQL JSON/JSONB column hash/object values.

Methods

Included Modules

Sequel::SQL::AliasMethods Sequel::SQL::CastMethods

External Aliases

__getobj__ -> to_hash
  Return the object being delegated to.

Public Instance methods

Convert the hash to a json string and append a literalized version of the string to the sql.

[Source]

     # File lib/sequel/extensions/pg_json.rb, line 110
110:       def sql_literal_append(ds, sql)
111:         ds.literal_append(sql, Sequel.object_to_json(self))
112:       end

[Validate]