module Cql
Defined in:
alter_table.crbase_column.cr
column.cr
cql.cr
delete.cr
foreign_key.cr
index.cr
insert.cr
migrations.cr
primary_key.cr
query.cr
record.cr
repository.cr
schema.cr
table.cr
update.cr
Constant Summary
-
DB_TYPE_MAPPING =
{Cql::Adapter::Sqlite => {Int32 => "INTEGER", Int64 => "BIGINT", UInt32 => "INTEGER UNSIGNED", UInt64 => "BIGINT UNSIGNED", Float32 => "FLOAT", Float64 => "DOUBLE", String => "TEXT", Bool => "BOOLEAN", Time => "TIMESTAMP", Date => "DATE", Time::Span => "INTERVAL", Slice(UInt8) => "BLOB"}, Cql::Adapter::MySql => {Int32 => "INT", Int64 => "BIGINT", UInt32 => "INT UNSIGNED", UInt64 => "BIGINT UNSIGNED", Float32 => "FLOAT", Float64 => "DOUBLE", String => "VARCHAR(255)", Bool => "TINYINT(1)", Time => "DATETIME", Date => "DATE", Time::Span => "TIME", Slice(UInt8) => "BLOB"}, Cql::Adapter::Postgres => {Int32 => "INTEGER", Int64 => "BIGINT", UInt32 => "INTEGER", UInt64 => "BIGINT", Float32 => "REAL", Float64 => "DOUBLE PRECISION", String => "VARCHAR", Bool => "BOOLEAN", Time => "TIMESTAMP", Date => "DATE", Time::Span => "INTERVAL", Slice(UInt8) => "BYTEA"}}