class DatabaseIntrospection(BaseDatabaseIntrospection):
Known subclasses: django.contrib.gis.db.backends.mysql.introspection.MySQLIntrospection
Undocumented
Method | _parse_constraint_columns |
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_key_columns |
Return a list of (column_name, referenced_table_name, referenced_column_name) for all key columns in the given table. |
Method | get_relations |
Return a dictionary of {field_name: (field_name_other_table, other_table)} representing all relationships to 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_storage_engine |
Retrieve the storage engine for a given table. Return the default storage engine if the table doesn't exist. |
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 |
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 | get_primary_key_column |
Return the name of the primary key column for the given table. |
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 |
No summary |
Instance Variable | connection |
Undocumented |
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.