Class: Sequel::Postgres::PGDecimalArray
- Defined in:
- lib/sequel/extensions/pg_array.rb
Overview
PGArray subclass for decimal/numeric types. Uses the general parser as the JSON parser cannot handle arbitrary precision numbers.
Constant Summary collapse
- ARRAY_TYPE =
'decimal'.freeze
Constants inherited from PGArray
Sequel::Postgres::PGArray::ARRAY, Sequel::Postgres::PGArray::BACKSLASH, Sequel::Postgres::PGArray::CLOSE_BRACE, Sequel::Postgres::PGArray::CLOSE_BRACKET, Sequel::Postgres::PGArray::COMMA, Sequel::Postgres::PGArray::DOUBLE_COLON, Sequel::Postgres::PGArray::EMPTY_BRACKET, Sequel::Postgres::PGArray::EMPTY_STRING, Sequel::Postgres::PGArray::NULL, Sequel::Postgres::PGArray::OPEN_BRACE, Sequel::Postgres::PGArray::OPEN_BRACKET, Sequel::Postgres::PGArray::QUOTE
Instance Method Summary collapse
-
#array_type ⇒ Object
Use the decimal type by default.
Methods inherited from PGArray
#initialize, #op, parse, #sql_literal_append
Methods inherited from Array
#case, #pg_array, #sql_expr, #sql_negate, #sql_or, #sql_string_join, #sql_value_list, #~
Constructor Details
This class inherits a constructor from Sequel::Postgres::PGArray
Instance Method Details
#array_type ⇒ Object
Use the decimal type by default.
379 380 381 |
# File 'lib/sequel/extensions/pg_array.rb', line 379 def array_type super || ARRAY_TYPE end |