module Prostore::Adapter::Postgres

Defined in:

prostore/adapter/postgres/adapter.cr
prostore/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

Class Method Detail

def self.column_type(portable : String) : String #

[View source]
def self.identity_type(portable : String) : String #

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


[View source]