module
Prostore::Adapter::Postgres
Defined in:
prostore/adapter/postgres/adapter.crprostore/adapter/postgres/ddl.cr
prostore/adapter/postgres/introspect.cr
prostore/adapter/postgres/types.cr
Constant Summary
-
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 Method Summary
- .column_type(portable : String) : String
-
.identity_type(portable : String) : String
The PG type used as IDENTITY column.
Class Method Detail
def self.identity_type(portable : String) : String
#
The PG type used as IDENTITY column. ADR-0013 specifies GENERATED BY DEFAULT AS IDENTITY.