Module Expr Str ImportFrom alias Import alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Call NameLoad Str keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str keyword ListLoad keyword Str Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore BoolOpOr NameLoad AttributeLoad NameLoad attr If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad Str keyword NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd Call AttributeLoad Str attr NameLoad Str orelse Assign NameStore BinOpMod Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad keyword NameLoad If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad Str keyword NameLoad If AttributeLoad NameLoad attr body TryExcept body For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Raise orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Str keyword AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A yamltodb - generate SQL statements to update a PostgreSQL database
to match the schema specified in a YAML file __future__ print_function N/A sys argparse FileType N/A yaml pyrseas __version__ pyrseas.database Database pyrseas.cmdargs cmd_parser parse_args pyrseas.lib.pycompat PY2 main N/A N/A N/A N/A N/A Convert YAML specifications to database DDL. N/A parser N/A cmd_parser Generate SQL statements to update a PostgreSQL database to match the schema specified in a YAML-formatted file(s) __version__ N/A N/A N/A parser add_argument -m --multiple-files action store_true help input from multiple files (metadata directory) N/A N/A N/A parser add_argument spec nargs ? type N/A FileType r default N/A sys stdin help YAML specification N/A N/A N/A parser add_argument -1 --single-transaction action store_true dest onetrans help wrap commands in BEGIN/COMMIT N/A N/A N/A parser add_argument -u --update action store_true help apply changes to database (implies -1) N/A N/A N/A parser add_argument --revert action store_true help generate SQL to revert changes N/A N/A N/A parser add_argument --quote-reserved action store_true help quote SQL reserved words N/A N/A N/A parser add_argument -n --schema metavar SCHEMA dest schemas action append default N/A help process only named schema(s) (default all) N/A cfg N/A parse_args parser N/A output N/A N/A cfg N/A files N/A output N/A options N/A cfg N/A options N/A db N/A Database cfg N/A N/A options multiple_files N/A N/A inmap N/A N/A db map_from_dir N/A N/A inmap N/A N/A yaml safe_load N/A options spec N/A stmts N/A N/A db diff_map inmap N/A stmts N/A N/A fd N/A output N/A sys stdout N/A N/A N/A options onetrans N/A options update N/A N/A N/A print BEGIN; file fd N/A stmt stmts N/A N/A N/A isinstance stmt tuple N/A N/A outstmt N/A N/A N/A join stmt N/A N/A outstmt N/A %s;
 stmt N/A PY2 N/A N/A outstmt N/A N/A outstmt encode utf-8 N/A N/A print outstmt file fd N/A N/A N/A options onetrans N/A options update N/A N/A N/A print COMMIT; file fd N/A N/A options update N/A N/A N/A N/A stmt stmts N/A N/A N/A isinstance stmt tuple N/A N/A N/A N/A N/A db dbconn copy_from N/A stmt N/A 3 N/A stmt N/A 1 N/A N/A N/A N/A N/A db dbconn execute stmt N/A N/A N/A N/A N/A N/A N/A db dbconn rollback N/A N/A N/A N/A N/A N/A db dbconn commit N/A N/A print Changes applied file N/A sys stderr N/A output N/A N/A N/A N/A output close N/A N/A N/A __name__ __main__ N/A N/A N/A main