module

Prostore::Adapter::Postgres

Constants

MAPPING = {"int32" => "INTEGER", "int64" => "BIGINT", "float32" => "REAL", "float64" => "DOUBLE PRECISION", "string" => "TEXT", "bool" => "BOOLEAN", "time" => "TIMESTAMP WITH TIME ZONE", "bytes" => "BYTEA", "uuid" => "UUID", "decimal" => "NUMERIC", "json" => "JSONB"}

Portable type → PostgreSQL column type (ADR-0014).

Class methods

column_type(portable : String) : String
Source
identity_type(portable : String) : String

The PG type used as IDENTITY column. ADR-0013 specifies GENERATED BY DEFAULT AS IDENTITY.

Source

Nested types