Module: Pakyow::Data::Adapters::Sql::Types::Postgres Private
- Defined in:
- lib/pakyow/data/adapters/sql/types.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- TYPES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ bignum: Sql::TYPES[:bignum].(native_type: "bigint"), decimal: Sql::TYPES[:decimal].(column_type: :decimal, native_type: ->() { "numeric(#{[:size][0]},#{[:size][1]})" }), integer: Sql::TYPES[:integer].(native_type: "integer"), string: Sql::TYPES[:string].(native_type: "text"), text: Sql::TYPES[:text].(column_type: :string), json: Pakyow::Data::Types.Constructor(::Object) { |value| Sequel.pg_json(value) }.(mapping: :json, database_type: :json, column_type: :json) }.freeze