Module Import alias Import alias If CompareIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Assign AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad If CompareEq AttributeLoad NameLoad attr Str body ImportFrom alias identifier orelse If CompareEq NameLoad Str body ImportFrom alias identifier orelse Raise Call NameLoad Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body Raise AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr NameLoad CompareIn SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad If SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareIn Str NameLoad body Return If Call AttributeLoad NameLoad attr NameLoad body Return If Call AttributeLoad NameLoad attr NameLoad body Return If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Return If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Return If Call AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad NameLoad attr Str If Call AttributeLoad NameLoad attr NameLoad body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assert CompareIn NameLoad ListLoad Str Str Assign NameStore Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Return If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Str If NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad orelse Assign NameStore BinOpMod Str TupleLoad NameLoad Assign NameStore Str orelse If CompareEq AttributeLoad NameLoad attr Str body Return orelse Raise NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body If NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults Str body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults Str body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Import alias Assign NameStore ListLoad Str Str Str Str If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Str BinOpAdd NameLoad ListLoad Str For TupleStore NameStore NameStore NameLoad body If BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str body Assign NameStore Str orelse If BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str body Assign NameStore Str orelse If BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str body Assign NameStore Str orelse If BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr Str body Assign NameStore Str orelse If CompareIn NameLoad ListLoad Str Str body Print BinOpMod Str TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Print Str Expr Call AttributeLoad NameLoad attr Num Assert CompareIn NameLoad NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad For NameStore Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad
N/A N/A os N/A sys N/A N/A CONARY_PATH N/A os environ N/A N/A N/A N/A N/A sys path insert 0 N/A N/A os environ N/A CONARY_PATH N/A N/A N/A N/A sys path insert 0 N/A N/A N/A os environ N/A CONARY_PATH /conary/scripts N/A re conary.dbstore sqlerrors conary.server schema conary.dbstore.sqllib CaselessDict PrintDatabase N/A N/A __init__ N/A N/A self showTables driver N/A True sqlite N/A N/A N/A self tables N/A self views N/A self sequences N/A CaselessDict N/A N/A self tempTables N/A CaselessDict N/A N/A self version 0 N/A N/A self showTables showTables N/A N/A self statements N/A N/A N/A self driver driver N/A N/A N/A self driver sqlite N/A conary.dbstore sqlite_drv drv N/A N/A N/A driver postgresql N/A conary.dbstore postgresql_drv drv N/A N/A N/A AttributeError unknown driver driver N/A N/A self keywords N/A N/A drv KeywordDict N/A connect N/A N/A self N/A args kwargs N/A N/A N/A transaction N/A N/A self N/A N/A N/A N/A commit N/A N/A self N/A N/A N/A N/A rollback N/A N/A self N/A N/A N/A N/A cursor N/A N/A self N/A N/A N/A self N/A loadSchema N/A N/A self N/A N/A N/A N/A __skip_delete N/A N/A self sql N/A N/A N/A delfrom N/A N/A re compile (?i)DELETE\s+FROM.* N/A N/A N/A delfrom match sql N/A N/A N/A sqlerrors DatabaseError N/A False N/A __skip_tempTables N/A N/A self sql N/A N/A N/A tmptbl N/A N/A re compile (?i)CREATE\s+TEMPORARY\s+TABLE\s+(?P<table>[^ (]+).* N/A m N/A N/A tmptbl match sql N/A N/A m None N/A N/A d N/A N/A m groupdict N/A N/A N/A N/A self tempTables setdefault N/A N/A N/A d N/A table strip N/A N/A True N/A False N/A __skip_Indexes N/A N/A self sql skipAll N/A False N/A N/A tmpidx N/A N/A re compile (?i)CREATE\s+(UNIQUE\s+)?INDEX\s+\S+\s+ON\s+(?P<table>[^ (]+).* N/A m N/A N/A tmpidx match sql N/A N/A m None N/A N/A d N/A N/A m groupdict N/A N/A skipAll N/A N/A d N/A table N/A self tempTables N/A N/A True N/A False N/A __skip_Triggers N/A N/A self sql skipAll N/A False N/A N/A tmptrg N/A N/A re compile (?i)CREATE\s+(OR\s+REPLACE\s+)?((DEFINER.*)?TRIGGER|FUNCTION) N/A N/A N/A tmptrg match sql N/A N/A skipAll N/A False N/A __skip_Tables N/A N/A self sql skipAll N/A False N/A N/A tbl N/A N/A re compile ^(?i)(CREATE|ALTER)\s+(TABLE\s+(?P<table>[^(]+)|(\s?DEFINER.*)?(\s?SQL SECURITY.*)?VIEW\s+(?P<view>[^( ]+))\s*([(]|ADD|AS).* N/A m N/A N/A tbl match sql N/A N/A m None N/A N/A d N/A N/A m groupdict N/A N/A d N/A table N/A N/A N/A N/A N/A self tables setdefault N/A N/A N/A d N/A table strip N/A N/A N/A d N/A view N/A N/A N/A N/A N/A self views setdefault N/A N/A N/A d N/A view strip True N/A skipAll N/A False N/A execute N/A N/A self sql N/A args kwargs N/A N/A sql N/A N/A sql strip N/A N/A args N/A ? sql N/A N/A N/A N/A N/A self __skip_delete sql N/A N/A N/A N/A N/A self __skip_tempTables sql N/A N/A N/A N/A N/A self __skip_Indexes sql N/A self showTables N/A N/A N/A N/A N/A self __skip_Triggers sql N/A self showTables N/A N/A N/A N/A N/A self __skip_Tables sql N/A N/A self showTables N/A N/A N/A into N/A N/A re compile ^(?i)(INSERT INTO).* N/A N/A N/A into match sql N/A N/A N/A N/A N/A N/A self statements append sql N/A createTrigger N/A N/A self table column onAction pinned N/A False N/A N/A onAction N/A N/A onAction lower N/A name N/A %s_%s N/A table onAction N/A N/A onAction N/A insert update N/A create CREATE TRIGGER N/A N/A N/A self driver postgresql N/A N/A funcName N/A %s_func name N/A pinned N/A N/A N/A N/A self execute N/A 
                CREATE OR REPLACE FUNCTION %s()
                RETURNS trigger
                AS $$
                BEGIN
                    NEW.%s := OLD.%s ;
                    RETURN NEW;
                END ; $$ LANGUAGE 'plpgsql';
                 N/A funcName column column N/A N/A N/A N/A self execute N/A 
                CREATE OR REPLACE FUNCTION %s()
                RETURNS trigger
                AS $$
                BEGIN
                    NEW.%s := TO_NUMBER(TO_CHAR(CURRENT_TIMESTAMP, 'YYYYMMDDHH24MISS'), '99999999999999') ;
                    RETURN NEW;
                END ; $$ LANGUAGE 'plpgsql';
                 N/A funcName column N/A N/A N/A self execute N/A 
            CREATE TRIGGER %s
            BEFORE %s ON %s
            FOR EACH ROW
            EXECUTE PROCEDURE %s()
             N/A name onAction table funcName N/A N/A N/A N/A self driver sqlite N/A N/A when AFTER N/A sql N/A UPDATE %s SET %s = unix_timestamp() WHERE _ROWID_ = NEW._ROWID_ ;  N/A table column N/A N/A N/A N/A self driver mysql N/A N/A when BEFORE N/A pinned N/A N/A sql N/A SET NEW.%s = OLD.%s ;  N/A column column N/A N/A sql N/A SET NEW.%s = current_timestamp() + 0 ;  N/A column N/A create CREATE DEFINER = 'root'@'localhost' TRIGGER N/A N/A N/A N/A self driver ingres N/A N/A N/A N/A NotImplementedError N/A sql N/A 
        %s %s %s %s ON %s
        FOR EACH ROW BEGIN
        %s
        END
         N/A create name N/A N/A when upper N/A N/A onAction upper table sql N/A N/A N/A self execute sql N/A True N/A createIndex N/A N/A self table name columns unique N/A False N/A N/A unique N/A N/A unique UNIQUE N/A N/A unique N/A sql N/A CREATE %s INDEX %s on %s (%s) N/A unique name table columns N/A N/A N/A self execute sql N/A True N/A setVersion N/A N/A self version N/A N/A N/A N/A self version version N/A getVersion N/A N/A self N/A N/A N/A N/A self version N/A N/A getTables N/A N/A driver N/A sqlite N/A N/A pd N/A PrintDatabase True driver N/A N/A N/A schema loadSchema pd N/A N/A pd statements N/A getIndexes N/A N/A driver N/A sqlite N/A N/A pd N/A PrintDatabase False driver N/A N/A N/A schema loadSchema pd N/A N/A pd statements N/A write_stmt N/A N/A driver stmt N/A N/A N/A N/A N/A N/A sys stdout write N/A %s ; N/A stmt N/A N/A driver ingres N/A N/A N/A N/A N/A sys stdout write \g N/A N/A N/A N/A sys stdout write N/A N/A N/A N/A sys stdout flush N/A N/A getopt N/A DRIVERS N/A sqlite mysql postgresql ingres N/A N/A __name__ __main__ N/A N/A driver N/A N/A N/A os environ get CONARY_DRIVER sqlite N/A N/A opts args N/A N/A getopt getopt N/A N/A sys argv N/A 1 mspih N/A DRIVERS N/A help N/A N/A opt val opts N/A N/A N/A N/A opt -m N/A N/A opt startswith --m N/A N/A driver mysql N/A N/A N/A N/A opt -s N/A N/A opt startswith --s N/A N/A driver sqlite N/A N/A N/A N/A opt -p N/A N/A opt startswith --p N/A N/A driver postgresql N/A N/A N/A N/A opt -i N/A N/A opt startswith --i N/A N/A driver ingres N/A N/A N/A opt N/A -h --help N/A N/A N/A %s [--mysql | --postgresql | --sqlite | --ingres  ] N/A N/A N/A sys argv N/A 0 N/A Prints the network server repository schema N/A N/A N/A sys exit 0 N/A N/A driver DRIVERS N/A x N/A getTables driver N/A N/A N/A write_stmt driver x N/A x N/A getIndexes driver N/A N/A N/A write_stmt driver x