class Jennifer::SQLite3::Adapter

Defined in:

jennifer_sqlite3_adapter.cr

Constant Summary

TYPE_TRANSLATIONS = {"bool" => "integer", "integer" => "integer", "bigint" => "integer", "short" => "integer", "tinyint" => "integer", "float" => "real", "double" => "real", "real" => "real", "text" => "text", "string" => "text", "varchar" => "text", "time" => "text", "timestamp" => "text"}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.command_interface #

[View source]

Instance Method Detail

def column_exists?(table, name) : Bool #
Description copied from class Jennifer::Adapter::Base

Returns whether column of table with name exists.

# Check a column exists
column_exists?(:suppliers, :name)

[View source]
def default_type_size(name) #

[View source]
def explain(q) : String #

[View source]
def foreign_key_exists?(from_table : String, to_table : String? = nil, column = nil, name : String? = nil) : Bool #

[View source]
def index_exists?(table, name : String) : Bool #

[View source]
def prepare #

[View source]
def schema_processor #

[View source]
def sql_generator #

[View source]
def table_column_count(table) #

[View source]
def table_exists?(table) : Bool #
Description copied from class Jennifer::Adapter::Base

Returns where table with given table name exists.

adapter.table_exists?(:developers)

[View source]
def tables_column_count(tables) #

[View source]
def translate_type(name : Symbol) #

[View source]
def translate_type(name : String) #

[View source]
def view_exists?(table) : Bool #
Description copied from class Jennifer::Adapter::Base

Check whether view with given name exists.

adapter.view_exists?(:youth_contacts)

[View source]
def with_table_lock(table : String, type : String = "default", &block) #

[View source]