enum CQL::Adapter

Overview

Represents a database adapter module.

Defined in:

cql.cr

Enum Members

SQLite = 0
MySql = 1
Postgres = 2

Instance Method Summary

Instance Method Detail

def dialect #

[View source]
def my_sql? #

Returns true if this enum value equals MySql


[View source]
def postgres? #

Returns true if this enum value equals Postgres


[View source]
def sq_lite? #

Returns true if this enum value equals SQLite


[View source]
def sql_type(type) : String #

Returns the SQL type for the given type. @param type [Type] the type @return [String] the SQL type Example Getting the SQL type

CQL::Adapter::SQLite.sql_type(Int32) # => "INTEGER"

[View source]