Included modules
- Sequel::SQL::AliasMethods
- Sequel::SQL::CastMethods
- JSONObject
- JSONBObject
Classes and Modules
- Sequel::Postgres::ArrayOpMethods
- Sequel::Postgres::AutoParameterize
- Sequel::Postgres::AutoParameterizeInArray
- Sequel::Postgres::EnumDatabaseMethods
- Sequel::Postgres::ExtendedDateSupport
- Sequel::Postgres::ExtendedIntegerSupport
- Sequel::Postgres::HStoreOpMethods
- Sequel::Postgres::InetDatabaseMethods
- Sequel::Postgres::InetDatasetMethods
- Sequel::Postgres::InetOpMethods
- Sequel::Postgres::IntervalDatabaseMethods
- Sequel::Postgres::IntervalDatasetMethods
- Sequel::Postgres::JSONBObject
- Sequel::Postgres::JSONDatabaseMethods
- Sequel::Postgres::JSONObject
- Sequel::Postgres::JSONOpMethods
- Sequel::Postgres::LooseCount
- Sequel::Postgres::PGRow
- Sequel::Postgres::RangeOpMethods
- Sequel::Postgres::SchemaCaching
- Sequel::Postgres::StaticCacheUpdater
- Sequel::Postgres::Timestamptz
- Sequel::Postgres::TimestamptzDatasetMethods
- Sequel::Postgres::ArrayOp
- Sequel::Postgres::HStore
- Sequel::Postgres::HStoreOp
- Sequel::Postgres::HStoreSubscriptOp
- Sequel::Postgres::InetOp
- Sequel::Postgres::JSONArray
- Sequel::Postgres::JSONBArray
- Sequel::Postgres::JSONBHash
- Sequel::Postgres::JSONBOp
- Sequel::Postgres::JSONBSubscriptOp
- Sequel::Postgres::JSONBaseOp
- Sequel::Postgres::JSONExistsOp
- Sequel::Postgres::JSONHash
- Sequel::Postgres::JSONOp
- Sequel::Postgres::JSONQueryOp
- Sequel::Postgres::JSONTableOp
- Sequel::Postgres::JSONValueOp
- Sequel::Postgres::PGArray
- Sequel::Postgres::PGMultiRange
- Sequel::Postgres::PGRange
- Sequel::Postgres::PGRowOp
- Sequel::Postgres::RangeOp
Constants
JSONB_COMBINED_WRAPPER_MAPPING | = | JSONB_WRAPPER_MAPPING.merge(JSONB_PRIMITIVE_WRAPPER_MAPPING).freeze | ||
JSONB_PRIMITIVE_WRAPPER_MAPPING | = | { ::String => JSONBString, ::Integer => JSONBInteger, ::Float => JSONBFloat, ::NilClass => JSONBNull, ::TrueClass => JSONBTrue, ::FalseClass => JSONBFalse, } | ||
JSONB_WRAPPER_MAPPING | = | { ::Array => JSONBArray, ::Hash => JSONBHash, }.freeze | ||
JSONB_WRAP_CLASSES | = | JSONB_COMBINED_WRAPPER_MAPPING.keys.freeze | ||
JSON_COMBINED_WRAPPER_MAPPING | = | JSON_WRAPPER_MAPPING.merge(JSON_PRIMITIVE_WRAPPER_MAPPING).freeze | ||
JSON_PRIMITIVE_WRAPPER_MAPPING | = | { ::String => JSONString, ::Integer => JSONInteger, ::Float => JSONFloat, ::NilClass => JSONNull, ::TrueClass => JSONTrue, ::FalseClass => JSONFalse, } | ||
JSON_WRAPPER_MAPPING | = | { ::Array => JSONArray, ::Hash => JSONHash, }.freeze | ||
JSON_WRAP_CLASSES | = | [Hash, Array, String, Integer, Float, NilClass, TrueClass, FalseClass].freeze |
Public Instance methods
sequel_auto_param_type(ds)
Allow automatic parameterization.
[show source]
# File lib/sequel/extensions/pg_json.rb 147 def sequel_auto_param_type(ds) 148 "::json" 149 end
sql_literal_append(ds, sql)
[show source]
# File lib/sequel/extensions/pg_json.rb 141 def sql_literal_append(ds, sql) 142 ds.literal_append(sql, Sequel.object_to_json(self)) 143 sql << '::json' 144 end