module Sequel::Postgres

  1. lib/sequel/extensions/pg_array.rb
  2. lib/sequel/extensions/pg_array_ops.rb
  3. lib/sequel/extensions/pg_auto_parameterize.rb
  4. lib/sequel/extensions/pg_auto_parameterize_in_array.rb
  5. lib/sequel/extensions/pg_enum.rb
  6. lib/sequel/extensions/pg_extended_date_support.rb
  7. lib/sequel/extensions/pg_extended_integer_support.rb
  8. lib/sequel/extensions/pg_hstore.rb
  9. lib/sequel/extensions/pg_hstore_ops.rb
  10. lib/sequel/extensions/pg_inet.rb
  11. lib/sequel/extensions/pg_inet_ops.rb
  12. lib/sequel/extensions/pg_interval.rb
  13. lib/sequel/extensions/pg_json.rb
  14. lib/sequel/extensions/pg_json_ops.rb
  15. lib/sequel/extensions/pg_loose_count.rb
  16. lib/sequel/extensions/pg_multirange.rb
  17. lib/sequel/extensions/pg_range.rb
  18. lib/sequel/extensions/pg_range_ops.rb
  19. lib/sequel/extensions/pg_row.rb
  20. lib/sequel/extensions/pg_row_ops.rb
  21. lib/sequel/extensions/pg_schema_caching.rb
  22. lib/sequel/extensions/pg_static_cache_updater.rb
  23. lib/sequel/extensions/pg_timestamptz.rb
  24. show all

Methods

Public Instance

  1. sequel_auto_param_type
  2. sql_literal_append

Included modules

  1. Sequel::SQL::AliasMethods
  2. Sequel::SQL::CastMethods
  3. JSONObject
  4. JSONBObject

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