Module Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad Str Str ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str body Return BinOpMod Str TupleLoad NameLoad NameLoad orelse If UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str Return BinOpMod Str TupleLoad Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Index Num attr Str Assign NameStore IfExp BoolOpAnd CompareGtE SubscriptLoad NameLoad Index Num Num CompareGtE SubscriptLoad NameLoad Index Num Num Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Dict Str Str NameLoad NameLoad orelse Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Expr Call NameLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num orelse Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Expr Call NameLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad NameLoad orelse Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr Str orelse If CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str body Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr Str orelse Raise Call NameLoad decorator_list
N/A N/A logging N/A sqlalchemy_utils N/A logger N/A N/A logging getLogger __name__ N/A SUPPORTED_DIALECTS N/A postgresql mysql NotSupportedDatabase N/A Exception N/A N/A N/A get_engine_url N/A N/A raw_conn database N/A N/A N/A url N/A str N/A N/A raw_conn engine url N/A N/A N/A N/A N/A url count / 3 N/A N/A url endswith / N/A N/A N/A %s%s N/A url database N/A N/A N/A N/A N/A url endswith / N/A N/A url / N/A N/A %s/%s N/A N/A N/A / join N/A N/A N/A url split / N/A 0 -2 database N/A terminate_database_connections N/A N/A raw_conn database N/A N/A N/A N/A N/A logger debug terminate_database_connections(%r) database N/A N/A N/A N/A N/A raw_conn engine dialect name postgresql N/A N/A version N/A N/A int x N/A x N/A N/A N/A N/A N/A N/A N/A raw_conn execute SHOW server_version; first N/A 0 split . N/A pid_column N/A N/A N/A N/A version N/A 0 9 N/A N/A version N/A 1 2 pid procpid N/A N/A N/A raw_conn execute N/A 
                SELECT pg_terminate_backend(pg_stat_activity.%(pid_column)s)
                FROM pg_stat_activity
                WHERE
                    pg_stat_activity.datname = '%(database)s' AND
                    %(pid_column)s <> pg_backend_pid();
             N/A pid_column database pid_column database N/A N/A N/A create_database N/A N/A raw_conn database N/A N/A N/A N/A N/A logger debug create_database(%r) database N/A N/A N/A N/A sqlalchemy_utils functions create_database N/A get_engine_url raw_conn database N/A copy_database N/A N/A raw_conn from_database to_database N/A N/A N/A N/A N/A logger debug copy_database(%r, %r) from_database to_database N/A N/A terminate_database_connections raw_conn from_database N/A N/A N/A N/A N/A raw_conn engine dialect name postgresql N/A N/A N/A N/A raw_conn execute N/A 
                CREATE DATABASE "%s" WITH TEMPLATE "%s";
             N/A to_database from_database N/A N/A N/A N/A N/A N/A raw_conn engine dialect name mysql N/A N/A N/A create_database raw_conn to_database N/A row N/A N/A raw_conn execute N/A SHOW TABLES in %s; from_database N/A N/A N/A N/A raw_conn execute N/A 
                CREATE TABLE %s.%s LIKE %s.%s
             N/A to_database N/A row N/A 0 from_database N/A row N/A 0 N/A N/A N/A raw_conn execute N/A ALTER TABLE %s.%s DISABLE KEYS N/A to_database N/A row N/A 0 N/A N/A N/A raw_conn execute N/A 
                INSERT INTO %s.%s SELECT * FROM %s.%s
             N/A to_database N/A row N/A 0 from_database N/A row N/A 0 N/A N/A N/A raw_conn execute N/A ALTER TABLE %s.%s ENABLE KEYS N/A to_database N/A row N/A 0 N/A N/A N/A NotSupportedDatabase N/A database_exists N/A N/A raw_conn database N/A N/A N/A N/A N/A logger debug database_exists(%r) database N/A N/A N/A N/A sqlalchemy_utils functions database_exists N/A get_engine_url raw_conn database N/A remove_database N/A N/A raw_conn database N/A N/A N/A N/A N/A logger debug remove_database(%r) database N/A N/A terminate_database_connections raw_conn database N/A N/A N/A N/A sqlalchemy_utils functions drop_database N/A get_engine_url raw_conn database N/A rename_database N/A N/A raw_conn from_database to_database N/A N/A N/A N/A N/A logger debug rename_database(%r, %r) from_database to_database N/A N/A terminate_database_connections raw_conn from_database N/A N/A N/A N/A N/A raw_conn engine dialect name postgresql N/A N/A N/A N/A raw_conn execute N/A 
                ALTER DATABASE "%s" RENAME TO "%s"
             N/A from_database to_database N/A N/A N/A N/A N/A N/A raw_conn engine dialect name mysql N/A N/A N/A create_database raw_conn to_database N/A row N/A N/A raw_conn execute N/A SHOW TABLES in %s; from_database N/A N/A N/A N/A raw_conn execute N/A 
                RENAME TABLE %s.%s TO %s.%s;
             N/A from_database N/A row N/A 0 to_database N/A row N/A 0 N/A N/A remove_database raw_conn from_database N/A N/A N/A NotSupportedDatabase N/A list_of_databases N/A N/A raw_conn N/A N/A N/A N/A N/A logger debug list_of_databases() N/A N/A N/A N/A N/A raw_conn engine dialect name postgresql N/A N/A N/A N/A row N/A 0 N/A row N/A N/A raw_conn execute 
                SELECT datname FROM pg_database
                WHERE datistemplate = false
             N/A N/A N/A N/A N/A N/A raw_conn engine dialect name mysql N/A N/A N/A N/A row N/A 0 N/A row N/A N/A raw_conn execute SHOW DATABASES N/A N/A N/A NotSupportedDatabase N/A