abstract class Jennifer::Adapter::SchemaProcessor
- Jennifer::Adapter::SchemaProcessor
- Reference
- Object
Direct Known Subclasses
Defined in:
jennifer/adapter/schema_processor.crConstant Summary
-
ON_EVENT_ACTION_TRANSLATIONS =
{FkEventActions::NoAction => "NO ACTION", FkEventActions::Restrict => "RESTRICT", FkEventActions::Cascade => "CASCADE", FkEventActions::SetNull => "SET NULL"}
Constructors
Instance Method Summary
- #adapter : Adapter::Base
- #add_column(table, name, opts : Hash)
- #add_foreign_key(from_table, to_table, column, primary_key, name, on_update, on_delete)
- #add_index(table, name, fields : Array, type : Symbol? = nil, order : Hash? = nil, length : Hash? = nil)
- #change_column(table, old_name, new_name, opts : Hash)
- #create_table(builder : Migration::TableBuilder::CreateTable)
- #create_view(name, query, silent = true)
- #drop_column(table, name)
- #drop_foreign_key(from_table, _to_table, name)
- #drop_index(table, name)
- #drop_table(builder : Migration::TableBuilder::DropTable)
- #drop_view(name, silent = true)
- #rename_table(old_name : String | Symbol, new_name : String | Symbol)
Constructor Detail
Instance Method Detail
def add_foreign_key(from_table, to_table, column, primary_key, name, on_update, on_delete)
#
def add_index(table, name, fields : Array, type : Symbol? = nil, order : Hash? = nil, length : Hash? = nil)
#