class Marten::DB::Management::Statement
- Marten::DB::Management::Statement
- Reference
- Object
Overview
Represents an SQL statement holding the detail of the tables and associated columns.
This abstraction is mainly used in the context of the schema editor, where deferred statements need to be temporarily stored in order to be executed later on. In those situations, statements need to provide the ability to be mutated to apply possible schema changes to them.
Defined in:
marten/db/management/statement.crmarten/db/management/statement/columns.cr
marten/db/management/statement/foreign_key_name.cr
marten/db/management/statement/index_name.cr
marten/db/management/statement/reference.cr
marten/db/management/statement/table.cr
Constructors
Instance Method Summary
- #params : Hash(String, Marten::DB::Management::Statement::Columns | Marten::DB::Management::Statement::ForeignKeyName | Marten::DB::Management::Statement::IndexName | Marten::DB::Management::Statement::Table | String)
- #references_column?(table : String, column : String) : Bool
- #references_table?(name : String) : Bool
- #rename_column(table : String, old_name : String, new_name : String)
- #rename_table(old_name : String, new_name : String)
- #template : String
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
def params : Hash(String, Marten::DB::Management::Statement::Columns | Marten::DB::Management::Statement::ForeignKeyName | Marten::DB::Management::Statement::IndexName | Marten::DB::Management::Statement::Table | String)
#
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.