class Marten::DB::Management::Statement::Columns

Defined in:

marten/db/management/statement/columns.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(quote_proc : Proc(String, String), table : String, columns : Array(String)) #

[View source]

Instance Method Detail

def columns : Array(String) #

[View source]
def references_column?(table : String, column : String | Nil) #

[View source]
def references_table?(name : String | Nil) #

[View source]
def rename_column(table : String, old_name : String, new_name : String) #

[View source]
def rename_table(old_name : String, new_name : String) #

[View source]
def table : String #

[View source]
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.


[View source]