Module ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body Assign NameStore Dict AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad ListComp TupleLoad SubscriptLoad NameLoad Index Num NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Dict For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad TryExcept body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num NameLoad If CompareEq NameLoad NameLoad body Break Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body If SubscriptLoad SubscriptLoad NameLoad Index Num Index Str body Return SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Dict Str Str CompareEq SubscriptLoad NameLoad Index Num Str UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Num Return NameLoad decorator_list decorator_list
N/A django.db.backends BaseDatabaseIntrospection pymysql ProgrammingError OperationalError pymysql.constants FIELD_TYPE N/A re py3 iteritems N/A foreign_key_re N/A N/A re compile \sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\) DatabaseIntrospection N/A BaseDatabaseIntrospection N/A N/A data_types_reverse N/A N/A FIELD_TYPE BLOB N/A FIELD_TYPE CHAR N/A FIELD_TYPE DECIMAL N/A FIELD_TYPE NEWDECIMAL N/A FIELD_TYPE DATE N/A FIELD_TYPE DATETIME N/A FIELD_TYPE DOUBLE N/A FIELD_TYPE FLOAT N/A FIELD_TYPE INT24 N/A FIELD_TYPE LONG N/A FIELD_TYPE LONGLONG N/A FIELD_TYPE SHORT N/A FIELD_TYPE STRING N/A FIELD_TYPE TIMESTAMP N/A FIELD_TYPE TINY N/A FIELD_TYPE TINY_BLOB N/A FIELD_TYPE MEDIUM_BLOB N/A FIELD_TYPE LONG_BLOB N/A FIELD_TYPE VAR_STRING TextField CharField DecimalField DecimalField DateField DateTimeField FloatField FloatField IntegerField IntegerField BigIntegerField IntegerField CharField DateTimeField IntegerField TextField TextField TextField CharField get_table_list N/A N/A self cursor N/A N/A N/A Returns a list of table names in the current database. N/A N/A N/A cursor execute SHOW TABLES N/A N/A N/A row N/A 0 N/A row N/A N/A cursor fetchall N/A get_table_description N/A N/A self cursor table_name N/A N/A N/A Returns a description of the table, with the DB-API cursor.description interface. N/A N/A N/A cursor execute N/A SELECT * FROM %s LIMIT 1 N/A N/A N/A N/A self connection ops quote_name table_name N/A N/A cursor description N/A _name_to_index N/A N/A self cursor table_name N/A N/A N/A 
        Returns a dictionary of {field_name: field_index} for the given table.
        Indexes are 0-based.
         N/A N/A dict N/A N/A N/A d N/A 0 i N/A N/A i d N/A enumerate N/A N/A self get_table_description cursor table_name N/A get_relations N/A N/A self cursor table_name N/A N/A N/A 
        Returns a dictionary of {field_index: (field_index_other_table, other_table)}
        representing all relationships to the given table. Indexes are 0-based.
         N/A my_field_dict N/A N/A self _name_to_index cursor table_name N/A constraints N/A N/A self get_key_columns cursor table_name N/A relations N/A N/A N/A my_fieldname other_table other_field constraints N/A N/A other_field_index N/A N/A N/A self _name_to_index cursor other_table N/A other_field N/A my_field_index N/A my_field_dict N/A my_fieldname N/A N/A relations N/A my_field_index N/A other_field_index other_table N/A relations N/A get_key_columns N/A N/A self cursor table_name N/A N/A N/A 
        Returns a list of (column_name, referenced_table_name, referenced_column_name) for all
        key columns in given table.
         N/A key_columns N/A N/A N/A N/A N/A N/A cursor execute 
                SELECT column_name, referenced_table_name, referenced_column_name
                FROM information_schema.key_column_usage
                WHERE table_name = %s
                    AND table_schema = DATABASE()
                    AND referenced_table_name IS NOT NULL
                    AND referenced_column_name IS NOT NULL N/A table_name N/A N/A N/A key_columns extend N/A N/A cursor fetchall N/A N/A N/A N/A ProgrammingError OperationalError N/A N/A N/A N/A cursor execute N/A SHOW CREATE TABLE %s N/A N/A N/A N/A self connection ops quote_name table_name N/A row N/A N/A cursor fetchall N/A N/A pos 0 N/A True N/A N/A match N/A N/A foreign_key_re search N/A row N/A 1 pos N/A N/A match None N/A N/A N/A pos N/A N/A match end N/A N/A N/A key_columns append N/A N/A match groups N/A key_columns N/A get_primary_key_column N/A N/A self cursor table_name N/A N/A N/A 
        Returns the name of the primary key column for the given table
         N/A column N/A iteritems N/A N/A self get_indexes cursor table_name N/A N/A N/A N/A column N/A 1 N/A primary_key N/A N/A N/A column N/A 0 N/A None N/A get_indexes N/A N/A self cursor table_name N/A N/A N/A 
        Returns a dictionary of fieldname -> infodict for the given table,
        where each infodict is in the format:
            {'primary_key': boolean representing whether it's the primary key,
             'unique': boolean representing whether it's a unique index}
         N/A N/A N/A cursor execute N/A SHOW INDEX FROM %s N/A N/A N/A N/A self connection ops quote_name table_name N/A indexes N/A N/A row N/A N/A cursor fetchall N/A N/A N/A indexes N/A N/A row N/A 4 N/A primary_key unique N/A N/A row N/A 2 PRIMARY N/A N/A bool N/A row N/A 1 N/A indexes N/A N/A