Class: Sequel::Postgres::JSONArrayBase
- Includes:
- SQL::AliasMethods, SQL::CastMethods
- Defined in:
- lib/sequel/extensions/pg_json.rb
Overview
Class representing PostgreSQL JSON/JSONB column array values.
Direct Known Subclasses
Instance Method Summary collapse
-
#sql_literal_append(ds, sql) ⇒ Object
Convert the array to a json string and append a literalized version of the string to the sql.
Methods included from SQL::CastMethods
#cast, #cast_numeric, #cast_string
Methods included from SQL::AliasMethods
Methods inherited from Array
#case, #pg_array, #pg_json, #pg_jsonb, #pg_row, #sql_expr, #sql_negate, #sql_or, #sql_string_join, #sql_value_list, #~
Instance Method Details
#sql_literal_append(ds, sql) ⇒ Object
Convert the array to a json string and append a literalized version of the string to the sql.
80 81 82 |
# 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 |