class Jennifer::Postgres::SchemaProcessor

Defined in:

jennifer/adapter/postgres/schema_processor.cr

Instance Method Summary

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

adapter : Adapter::Base adapter, add_column(table, name, opts : Hash) add_column, add_foreign_key(from_table, to_table, column, primary_key, name, on_update, on_delete) add_foreign_key, add_index(table, name, fields : Array, type : Symbol? = nil, order : Hash? = nil, length : Hash? = nil) add_index, change_column(table, old_name, new_name, opts : Hash) change_column, create_table(builder : Migration::TableBuilder::CreateTable) create_table, create_view(name, query, silent = true) create_view, drop_column(table, name) drop_column, drop_foreign_key(from_table, _to_table, name) drop_foreign_key, drop_index(table, name) drop_index, drop_table(builder : Migration::TableBuilder::DropTable) drop_table, drop_view(name, silent = true) drop_view, rename_table(old_name : String | Symbol, new_name : String | Symbol) rename_table

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

new(adapter) new

Instance Method Detail

def add_index(table, name, fields : Array, type : Symbol? = nil, order : Hash? = nil, length : Hash? = nil) #

[View source]
def build_change_enum(name, options) #

[View source]
def build_create_enum(name, values) #

[View source]
def build_create_materialized_view(name, source) #

[View source]
def build_drop_enum(name) #

[View source]
def build_drop_materialized_view(name) #

[View source]
def change_column(table, old_name, new_name, opts) #

[View source]
def define_enum(name : String | Symbol, values : Array) #

[View source]
def drop_enum(name) #

[View source]
def drop_foreign_key(from_table, _to_table, name) #

[View source]
def drop_index(table, name) #

[View source]
def enum_exists?(*args, **options) #
Description copied from class Jennifer::Adapter::SchemaProcessor

:nodoc:


[View source]
def enum_exists?(*args, **options, &) #

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

[View source]