Module: DB::Postgres::Native

Extended by:
FFI::Module::ConfigTool, FFI::Module::Library, FFI::Module::Loader
Defined in:
lib/db/postgres/native.rb,
lib/db/postgres/native/field.rb,
lib/db/postgres/native/types.rb,
lib/db/postgres/native/result.rb,
lib/db/postgres/native/connection.rb

Defined Under Namespace

Modules: IO, Types Classes: Connection, Result, Strings

Constant Summary collapse

DEFAULT_TYPES =

These are hard coded OIDs.

{
  16 => Types::Boolean,
  
  20 => Types::Integer,
  21 => Types::Integer,
  23 => Types::Integer,
  
  114 => JSON,
  
  700 => Types::Float,
  701 => Types::Float,
  
  1082 => Date,
  1083 => Types::DateTime,
  1114 => Types::DateTime,
  
  1700 => Types::Decimal,
  
  3500 => Types::Symbol,
}