class documentation
class PostGISIntrospection(DatabaseIntrospection): (source)
Undocumented
Method | get |
Hook for a database backend to use the cursor description to match a Django field type to a database column. |
Method | get |
The geometry type OID used by PostGIS does not indicate the particular type of field that a geometry column is (e.g., whether it's a PointField or a PolygonField). Thus, this routine queries the PostGIS metadata tables to determine the geometry type. |
Class Variable | ignored |
Undocumented |
Instance Variable | postgis |
Undocumented |
Inherited from DatabaseIntrospection
:
Method | get |
Retrieve any constraints or keys (unique, pk, fk, check, index) across one or more columns. Also retrieve the definition of expression-based indexes. |
Method | get |
Return a dictionary of {field_name: (field_name_other_table, other_table)} representing all foreign keys in the given table. |
Method | get |
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 |
Return a description of the table with the DB-API cursor.description interface. |
Method | get |
Return a list of table and view names in the current database. |
Class Variable | data |
Undocumented |
Class Variable | index |
Undocumented |
Inherited from BaseDatabaseIntrospection
(via DatabaseIntrospection
):
Method | __init__ |
Undocumented |
Method | django |
Return a list of all table names that have associated Django models and are in INSTALLED_APPS. |
Method | get |
Undocumented |
Method | get |
Return the name of the primary key column for the given table. |
Method | identifier |
Apply a conversion to the identifier for the purposes of comparison. |
Method | installed |
Return a set of all models represented by the provided list of table names. |
Method | sequence |
Return a list of information about all DB sequences for all models in all apps. |
Method | table |
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 |
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.
The geometry type OID used by PostGIS does not indicate the particular type of field that a geometry column is (e.g., whether it's a PointField or a PolygonField). Thus, this routine queries the PostGIS metadata tables to determine the geometry type.