class Jennifer::Adapter::Mysql

Included Modules

Defined in:

jennifer/adapter/mysql.cr

Constant Summary

TYPE_TRANSLATIONS = {:int => "int", :string => "varchar", :bool => "bool", :text => "text"}

Class Method Summary

Instance Method Summary

Instance methods inherited from module Jennifer::Support

pluralize(str : String) pluralize, singularize(str : String) singularize

Instance methods inherited from class Jennifer::Adapter::Base

connection : DB::Database connection, exec(*args, **options)
exec(*args, **options, &)
exec
, query(*args, **options)
query(*args, **options, &)
query
, scalar(*args, **options)
scalar(*args, **options, &)
scalar

Constructor methods inherited from class Jennifer::Adapter::Base

new new

Class methods inherited from class Jennifer::Adapter::Base

arg_replacement(arr) arg_replacement, connection_string(*options) connection_string, db_connection(&) db_connection, extract_arguments(hash) extract_arguments, question_marks(size = 1) question_marks, result_to_array(rs) result_to_array, result_to_hash(rs) result_to_hash, table_row_hash(rs) table_row_hash

Class Method Detail

def self.create_database #

[View source]
def self.drop_database #

[View source]
def self.t(field) #

[View source]

Instance Method Detail

def change_table(builder : Migration::TableBuilder::ChangeTable) #

[View source]
def create_table(builder : Migration::TableBuilder::CreateTable) #

[View source]
def drop_table(builder : Migration::TableBuilder::DropTable) #

[View source]
def insert(obj : Model::Base) #

[View source]
def ready_to_migrate! #

[View source]
def table_exist?(table) #

[View source]
def transaction(&) #

[View source]
def truncate(klass : Class) #

[View source]
def truncate(table_name : String) #

[View source]
def update(obj : Model::Base) #

[View source]