class documentation

Undocumented

Method get_constraints Retrieve any constraints or keys (unique, pk, fk, check, index) across one or more columns.
Method get_field_type Hook for a database backend to use the cursor description to match a Django field type to a database column.
Method get_primary_key_column Return the column name of the primary key for the given table.
Method get_relations Return a dictionary of {column_name: (ref_column_name, ref_table_name)} representing all foreign keys in the given table.
Method get_sequences Return a list of introspected sequences for table_name. Each sequence is a dict: {'table': <table_name>, 'column': <column_name>}. An optional 'name' key can be added if the backend supports named sequences.
Method get_table_description Return a description of the table with the DB-API cursor.description interface.
Method get_table_list Return a list of table and view names in the current database.
Class Variable data_types_reverse Undocumented
Method _get_column_collations Undocumented
Method _get_index_columns_orders Undocumented
Method _parse_column_or_constraint_definition Undocumented
Method _parse_table_constraints Undocumented

Inherited from BaseDatabaseIntrospection:

Method __init__ Undocumented
Method django_table_names Return a list of all table names that have associated Django models and are in INSTALLED_APPS.
Method get_migratable_models Undocumented
Method identifier_converter Apply a conversion to the identifier for the purposes of comparison.
Method installed_models Return a set of all models represented by the provided list of table names.
Method sequence_list Return a list of information about all DB sequences for all models in all apps.
Method table_names Return a list of names of all tables that exist in the database. Sort the returned table list by Python's default sorting. Do NOT use the database's ORDER BY here to avoid subtle differences in sorting order between databases.
Instance Variable connection Undocumented
def get_constraints(self, cursor, table_name): (source)

Retrieve any constraints or keys (unique, pk, fk, check, index) across one or more columns.

def get_field_type(self, data_type, description): (source)

Hook for a database backend to use the cursor description to match a Django field type to a database column. For Oracle, the column data_type on its own is insufficient to distinguish between a FloatField and IntegerField, for example.

def get_primary_key_column(self, cursor, table_name): (source)

Return the column name of the primary key for the given table.

def get_relations(self, cursor, table_name): (source)

Return a dictionary of {column_name: (ref_column_name, ref_table_name)} representing all foreign keys in the given table.

def get_sequences(self, cursor, table_name, table_fields=()): (source)

Return a list of introspected sequences for table_name. Each sequence is a dict: {'table': <table_name>, 'column': <column_name>}. An optional 'name' key can be added if the backend supports named sequences.

def get_table_description(self, cursor, table_name): (source)

Return a description of the table with the DB-API cursor.description interface.

def get_table_list(self, cursor): (source)

Return a list of table and view names in the current database.

def _get_column_collations(self, cursor, table_name): (source)

Undocumented

def _get_index_columns_orders(self, sql): (source)

Undocumented

def _parse_column_or_constraint_definition(self, tokens, columns): (source)

Undocumented

def _parse_table_constraints(self, sql, columns): (source)

Undocumented