Method: Sequel::Postgres::JSONDatabaseMethods.extended
- Defined in:
- lib/sequel/extensions/pg_json.rb
.extended(db) ⇒ Object
236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/sequel/extensions/pg_json.rb', line 236 def self.extended(db) db.instance_exec do add_conversion_proc(114, method(:_db_parse_json)) add_conversion_proc(3802, method(:_db_parse_jsonb)) if respond_to?(:register_array_type) register_array_type('json', :oid=>199, :scalar_oid=>114) register_array_type('jsonb', :oid=>3807, :scalar_oid=>3802) end @schema_type_classes[:json] = [JSONObject] @schema_type_classes[:jsonb] = [JSONBObject] end end |