module Sequel::Postgres

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

Methods

Public Instance

  1. 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

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