class Jennifer::SQLite3::Adapter
- Jennifer::SQLite3::Adapter
- Jennifer::Adapter::Base
- Reference
- Object
Defined in:
jennifer_sqlite3_adapter.crConstant 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
-
#column_exists?(table, name) : Bool
Returns whether column of table with name exists.
- #default_type_size(name)
- #explain(q) : String
- #foreign_key_exists?(from_table : String, to_table : String? = nil, column = nil, name : String? = nil) : Bool
- #index_exists?(table, name : String) : Bool
- #prepare
- #schema_processor
- #sql_generator
- #table_column_count(table)
-
#table_exists?(table) : Bool
Returns where table with given table name exists.
- #tables_column_count(tables)
- #translate_type(name : Symbol)
- #translate_type(name : String)
-
#view_exists?(table) : Bool
Check whether view with given name exists.
- #with_table_lock(table : String, type : String = "default", &block)
Class Method Detail
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)
def foreign_key_exists?(from_table : String, to_table : String? = nil, column = nil, name : String? = nil) : Bool
#
def table_exists?(table) : Bool
#
Description copied from class Jennifer::Adapter::Base
Returns where table with given table name exists.
adapter.table_exists?(:developers)
def view_exists?(table) : Bool
#
Description copied from class Jennifer::Adapter::Base
Check whether view with given name exists.
adapter.view_exists?(:youth_contacts)