Returns an array of all the primary key constraints of a specific table and column.
abstract class Marten::DB::Management::Introspector::Base
- Marten::DB::Management::Introspector::Base
- Reference
- Object
Overview
Base implementation of a database introspector.
The database introspector is used in the context of DB management in order to fetch operation regarding existing tables such as table names, index / constraint names, etc.
Direct Known Subclasses
- Marten::DB::Management::Introspector::MySQL
- Marten::DB::Management::Introspector::PostgreSQL
- Marten::DB::Management::Introspector::SQLite
Defined in:
marten/db/management/introspector/base.crConstructors
Instance Method Summary
-
#columns_details(table_name : String) : Array(ColumnInfo)
Returns the details of the columns of a specific table.
-
#foreign_key_constraint_names(table_name : String, column_name : String) : Array(String)
Returns an array of all the foreign key constraints of a specific table and column.
-
#index_names(table_name : String, column_name : String) : Array(String)
Returns an array of all the index names for a specific table and column.
-
#model_table_names : Array(String)
Returns all the table names associated with models of the installed applications only.
-
#primary_key_constraint_names(table_name : String, column_name : String) : Array(String)
Returns an array of all the primary key constraints of a specific table and column.
-
#table_names : Array(String)
Returns all the tables names in the considered database.
-
#unique_constraint_names(table_name : String, column_name : String) : Array(String)
Returns an array of all the unique constraints for a specific table and column.
Constructor Detail
Instance Method Detail
Returns the details of the columns of a specific table.
Returns an array of all the foreign key constraints of a specific table and column.
Returns an array of all the index names for a specific table and column.
Returns all the table names associated with models of the installed applications only.
Returns all the tables names in the considered database.
Returns an array of all the unique constraints for a specific table and column.