class Marten::DB::Management::Introspector::PostgreSQL

Included Modules

Defined in:

marten/db/management/introspector/postgresql.cr

Instance Method Summary

Instance methods inherited from module Marten::DB::Management::Introspector::Core

table_names : Array(String) table_names

Instance methods inherited from class Marten::DB::Management::Introspector::Base

columns_details(table_name : String) : Array(ColumnInfo) columns_details, foreign_key_constraint_names(table_name : String, column_name : String) : Array(String) foreign_key_constraint_names, index_names(table_name : String, column_name : String) : Array(String) index_names, model_table_names : Array(String) model_table_names, primary_key_constraint_names(table_name : String, column_name : String) : Array(String) primary_key_constraint_names, table_names : Array(String) table_names, unique_constraint_names(table_name : String, column_name : String) : Array(String) unique_constraint_names

Constructor methods inherited from class Marten::DB::Management::Introspector::Base

new(connection : Connection::Base) new

Instance Method Detail

def columns_details(table_name : String) : Array(ColumnInfo) #
Description copied from class Marten::DB::Management::Introspector::Base

Returns the details of the columns of a specific table.


[View source]
def foreign_key_constraint_names(table_name : String, column_name : String) : Array(String) #
Description copied from class Marten::DB::Management::Introspector::Base

Returns an array of all the foreign key constraints of a specific table and column.


[View source]
def index_names(table_name : String, column_name : String) : Array(String) #
Description copied from class Marten::DB::Management::Introspector::Base

Returns an array of all the index names for a specific table and column.


[View source]
def primary_key_constraint_names(table_name : String, column_name : String) : Array(String) #
Description copied from class Marten::DB::Management::Introspector::Base

Returns an array of all the primary key constraints of a specific table and column.


[View source]
def unique_constraint_names(table_name : String, column_name : String) : Array(String) #
Description copied from class Marten::DB::Management::Introspector::Base

Returns an array of all the unique constraints for a specific table and column.


[View source]