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

Class representating PostgreSQL JSON column array values.

Methods

Included Modules

Sequel::SQL::AliasMethods

Public Instance methods

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

[Source]

    # File lib/sequel/extensions/pg_json.rb, line 72
72:       def sql_literal_append(ds, sql)
73:         ds.literal_append(sql, Sequel.object_to_json(self))
74:         sql << CAST_JSON
75:       end

[Validate]