class

Marten::DB::Management::Statement

Inherits Reference / Object

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.

Constructors

new(template : String, **kwargs)
Source

Instance methods

params
Source
references_column?(table : String, column : String) : Bool
Source
references_table?(name : String) : Bool
Source
rename_column(table : String, old_name : String, new_name : String)
Source
rename_table(old_name : String, new_name : String)
Source
template
Source
to_s

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.

Source

Nested types