class Sequel::Postgres::JSONArrayBase

Class representing PostgreSQL JSON/JSONB column array values.

Public Instance Methods

sql_literal_append(ds, sql) click to toggle source

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

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