Module Expr Str ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Return BinOpMod Str Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Return Call NameLoad GeneratorExp Call AttributeLoad NameLoad attr Str Num comprehension NameStore NameLoad decorator_list Assign NameStore Dict If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse If CompareNotEq NameLoad SubscriptLoad NameLoad Index NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return BoolOpOr BoolOpAnd NameLoad BinOpMod Str Call AttributeLoad Str attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign NameStore ListLoad If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad Str body Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Delete SubscriptDel NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore ListLoad Str Str body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return ListLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr BoolOpOr BoolOpAnd NameLoad BinOpAdd Str Call AttributeLoad Str attr NameLoad Str decorator_list NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign SubscriptStore NameLoad Index NameLoad NameStore Call NameLoad keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Dict For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Dict NameLoad SubscriptLoad NameLoad Index NameLoad orelse If CompareIn NameLoad ListLoad Str Str Str Str Str Str body Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str orelse Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Assert SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Raise orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Assign AttributeStore SubscriptLoad NameLoad Index NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad SubscriptLoad NameLoad Index NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad Str body Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict NameLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index Str NameLoad Delete SubscriptDel SubscriptLoad NameLoad Index NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad For NameStore ListLoad Str Str body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return ListLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr BoolOpOr BoolOpAnd NameLoad BinOpAdd Str Call AttributeLoad Str attr NameLoad Str Call NameLoad AttributeLoad NameLoad attr BoolOpOr BoolOpAnd NameLoad BinOpAdd Str Call AttributeLoad Str attr NameLoad Str decorator_list NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr NameLoad NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If NameLoad body For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad Assert SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad If CompareIn TupleLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad attr AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Raise orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Assign AttributeStore SubscriptLoad NameLoad Index NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad SubscriptLoad NameLoad Index NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str TupleLoad BoolOpOr BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Str Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return ListLoad BinOpMod Str TupleLoad BoolOpOr BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Str Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr BoolOpOr BoolOpAnd NameLoad BinOpAdd Str Call AttributeLoad Str attr NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If NameLoad body For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad If CompareIn TupleLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad attr AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index TupleLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Raise orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameLoad body If CompareNotIn TupleLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad NameLoad body Expr Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd Call NameLoad NameLoad Str AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Dict If UnaryOpNot Call NameLoad NameLoad Str body Return Dict Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Dict NameLoad Call NameLoad NameLoad NameLoad If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num If Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr BoolOpOr BoolOpAnd NameLoad BinOpAdd Str Call AttributeLoad Str attr NameLoad Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str If CompareLt AttributeLoad AttributeLoad NameLoad attr attr Num body Return For NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Assign SubscriptStore NameLoad Index TupleLoad AttributeLoad NameLoad attr NameLoad NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr TupleLoad BinOpMod Str NameLoad Raise For NameStore ListLoad Str Str Str Str body If CompareIn NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore NameLoad body If CompareIn TupleLoad NameLoad NameLoad NameLoad body Assert Call NameLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad NameLoad Assign AttributeStore SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad For NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad If CompareNotIn TupleLoad NameLoad NameLoad NameLoad body If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad attr AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index TupleLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr TupleLoad BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Raise orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad If CompareNotIn TupleLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index TupleLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
    pyrseas.dbobject.foreign
    ~~~~~~~~~~~~~~~~~~~~~~~~

    This defines nine classes: DbObjectWithOptions derived from
    DbObject, ForeignDataWrapper, ForeignServer and UserMapping
    derived from DbObjectWithOptions, ForeignDataWrapperDict,
    ForeignServerDict and UserMappingDict derived from DbObjectDict,
    ForeignTable derived from DbObjectWithOptions and Table, and
    ForeignTableDict derived from ClassDict.
 pyrseas.dbobject DbObjectDict DbObject pyrseas.dbobject quote_id commentable ownable grantable pyrseas.dbobject.table ClassDict Table pyrseas.dbobject.privileges privileges_from_map DbObjectWithOptions N/A DbObject N/A N/A Helper class for database objects with OPTIONS clauses options_clause N/A N/A self N/A N/A N/A Create the OPTIONS clause

        :param optdict: the dictionary of options
        :return: SQL OPTIONS clause
         N/A opts N/A N/A opt N/A self options N/A N/A N/A nm val N/A N/A opt split = 1 N/A N/A N/A opts append N/A %s '%s' N/A nm val N/A N/A OPTIONS (%s) N/A N/A ,  join opts N/A diff_options N/A N/A self newopts N/A N/A N/A Compare options lists and generate SQL OPTIONS clause

        :newopts: list of new options
        :return: SQL OPTIONS clause

        Generate ([ADD|SET|DROP key 'value') clauses from two lists in the
        form of 'key=value' strings.
         to_dict N/A N/A optlist N/A N/A N/A N/A dict N/A N/A N/A opt split = 1 N/A opt optlist N/A N/A oldopts N/A N/A N/A hasattr self options N/A N/A oldopts N/A to_dict N/A self options N/A newopts N/A to_dict newopts N/A clauses N/A N/A N/A key val N/A list N/A N/A newopts items N/A N/A N/A key oldopts N/A N/A N/A N/A clauses append N/A %s '%s' N/A key val N/A N/A N/A val N/A oldopts N/A key N/A N/A N/A N/A clauses append N/A SET %s '%s' N/A key val N/A N/A key val N/A list N/A N/A oldopts items N/A N/A N/A key newopts N/A N/A N/A N/A clauses append N/A DROP %s key N/A N/A N/A clauses N/A OPTIONS (%s) N/A N/A ,  join clauses N/A diff_map N/A N/A self inobj N/A N/A N/A Generate SQL to transform an existing object

        :param inobj: a YAML map defining the new object
        :return: list of SQL statements
         N/A stmts N/A N/A N/A super DbObjectWithOptions self diff_map inobj N/A newopts N/A N/A N/A hasattr inobj options N/A N/A newopts N/A inobj options N/A diff_opts N/A N/A self diff_options newopts N/A diff_opts N/A N/A N/A N/A stmts append N/A ALTER %s %s %s N/A N/A self objtype N/A N/A self identifier diff_opts N/A stmts N/A N/A ForeignDataWrapper N/A DbObjectWithOptions N/A N/A A foreign data wrapper definition N/A objtype FOREIGN DATA WRAPPER N/A single_extern_file True allprivs N/A N/A self N/A N/A N/A U N/A property to_map N/A N/A self no_owner no_privs N/A N/A N/A Convert wrappers and subsidiary objects to a YAML-suitable format

        :param no_owner: exclude object owner information
        :param no_privs: exclude privilege information
        :return: dictionary
         N/A wrapper N/A N/A self _base_map no_owner no_privs N/A N/A hasattr self servers N/A N/A srvs N/A N/A srv N/A self servers N/A N/A N/A N/A srvs update N/A N/A N/A N/A self servers N/A srv to_map no_owner no_privs N/A N/A N/A wrapper update srvs N/A N/A wrapper N/A servers N/A wrapper N/A create N/A N/A self N/A N/A N/A Return SQL statements to CREATE the data wrapper

        :return: SQL statements
         N/A clauses N/A N/A fnc N/A validator handler N/A N/A N/A hasattr self fnc N/A N/A N/A N/A clauses append N/A %s %s N/A N/A N/A fnc upper N/A getattr self fnc N/A N/A hasattr self options N/A N/A N/A N/A clauses append N/A N/A self options_clause N/A N/A N/A CREATE FOREIGN DATA WRAPPER %s%s N/A N/A quote_id N/A self name N/A N/A clauses N/A N/A N/A ,
     join clauses N/A commentable grantable ownable diff_map N/A N/A self inwrapper N/A N/A N/A Generate SQL to transform an existing wrapper

        :param inwrapper: a YAML map defining the new wrapper
        :return: list of SQL statements
         N/A stmts N/A N/A N/A super ForeignDataWrapper self diff_map inwrapper N/A N/A N/A inwrapper owner None N/A N/A N/A N/A inwrapper owner N/A self owner N/A N/A N/A N/A stmts append N/A N/A self alter_owner N/A inwrapper owner N/A N/A N/A stmts append N/A N/A self diff_description inwrapper N/A stmts N/A N/A N/A QUERY_PRE91 SELECT fdwname AS name, CASE WHEN fdwvalidator = 0 THEN NULL
                ELSE fdwvalidator::regproc END AS validator,
                fdwoptions AS options, rolname AS owner,
              array_to_string(fdwacl, ',') AS privileges,
              obj_description(w.oid, 'pg_foreign_data_wrapper') AS
                  description
       FROM pg_foreign_data_wrapper w
            JOIN pg_roles r ON (r.oid = fdwowner)
       ORDER BY fdwname ForeignDataWrapperDict N/A DbObjectDict N/A N/A The collection of foreign data wrappers in a database N/A cls ForeignDataWrapper N/A query SELECT fdwname AS name, CASE WHEN fdwhandler = 0 THEN NULL
                      ELSE fdwhandler::regproc END AS handler,
                  CASE WHEN fdwvalidator = 0 THEN NULL
                      ELSE fdwvalidator::regproc END AS validator,
                  fdwoptions AS options, rolname AS owner,
                  array_to_string(fdwacl, ',') AS privileges,
                  obj_description(w.oid, 'pg_foreign_data_wrapper') AS
                      description
           FROM pg_foreign_data_wrapper w
                JOIN pg_roles r ON (r.oid = fdwowner)
           ORDER BY fdwname _from_catalog N/A N/A self N/A N/A N/A Initialize the dictionary of wrappers by querying the catalogs N/A N/A N/A N/A self dbconn version 90100 N/A N/A N/A self query QUERY_PRE91 N/A N/A N/A N/A super ForeignDataWrapperDict self _from_catalog N/A from_map N/A N/A self inwrappers newdb N/A N/A N/A Initialize the dictionary of wrappers by examining the input map

        :param inwrappers: input YAML map defining the data wrappers
        :param newdb: collection of dictionaries defining the database
         N/A key inwrappers N/A N/A N/A N/A N/A key startswith foreign data wrapper  N/A N/A N/A KeyError N/A Unrecognized object type: %s key N/A fdw N/A key N/A 21 N/A N/A self N/A fdw wrapper N/A ForeignDataWrapper name fdw N/A inwrapper N/A inwrappers N/A key N/A inservs N/A N/A key inwrapper N/A N/A N/A N/A key startswith server  N/A N/A N/A N/A inservs update N/A key N/A inwrapper N/A key N/A N/A N/A key N/A handler validator options owner oldname description N/A N/A N/A setattr wrapper key N/A inwrapper N/A key N/A N/A N/A key privileges N/A N/A N/A wrapper privileges N/A privileges_from_map N/A inwrapper N/A key N/A wrapper allprivs N/A inwrapper N/A owner N/A N/A N/A KeyError N/A Expected typed object, found '%s' key N/A N/A N/A N/A newdb servers from_map wrapper inservs newdb N/A link_refs N/A N/A self dbservers N/A N/A N/A Connect servers to their respective foreign data wrappers

        :param dbservers: dictionary of foreign servers
         N/A N/A fdw srv dbservers N/A N/A dbserver N/A dbservers N/A N/A fdw srv N/A N/A self N/A fdw N/A wrapper N/A self N/A fdw N/A N/A N/A hasattr wrapper servers N/A N/A N/A wrapper servers N/A N/A N/A N/A N/A wrapper servers update N/A srv dbserver N/A diff_map N/A N/A self inwrappers N/A N/A N/A Generate SQL to transform existing data wrappers

        :param input_map: a YAML map defining the new data wrappers
        :return: list of SQL statements

        Compares the existing data wrapper definitions, as fetched from the
        catalogs, to the input map and generates SQL statements to
        transform the data wrappers accordingly.
         N/A stmts N/A N/A fdw inwrappers N/A N/A infdw N/A inwrappers N/A fdw N/A N/A fdw self N/A N/A N/A N/A stmts append N/A N/A N/A self N/A fdw diff_map infdw N/A N/A N/A hasattr infdw oldname N/A N/A oldname N/A infdw oldname N/A N/A N/A N/A N/A stmts append N/A N/A N/A self N/A oldname rename N/A infdw name N/A N/A self N/A oldname N/A N/A N/A KeyError N/A exc N/A N/A N/A exc args N/A N/A Previous name '%s' for data wrapper '%s' not found N/A oldname N/A infdw name N/A N/A N/A N/A N/A stmts append N/A N/A infdw create N/A fdw self N/A N/A N/A fdw inwrappers N/A N/A N/A N/A self N/A fdw dropped True N/A stmts N/A _drop N/A N/A self N/A N/A N/A Actually drop the wrappers

        :return: SQL statements
         N/A stmts N/A N/A fdw self N/A N/A N/A hasattr N/A self N/A fdw dropped N/A N/A N/A N/A stmts append N/A N/A N/A self N/A fdw drop N/A stmts N/A N/A ForeignServer N/A DbObjectWithOptions N/A N/A A foreign server definition N/A objtype SERVER N/A privobjtype FOREIGN SERVER N/A keylist N/A wrapper name allprivs N/A N/A self N/A N/A N/A U N/A property identifier N/A N/A self N/A N/A N/A Returns a full identifier for the foreign server

        :return: string
         N/A N/A quote_id N/A self name N/A to_map N/A N/A self no_owner no_privs N/A N/A N/A Convert servers and subsidiary objects to a YAML-suitable format

        :param no_owner: exclude server owner information
        :param no_privs: exclude privilege information
        :return: dictionary
         N/A key N/A N/A self extern_key N/A server N/A key N/A N/A self _base_map no_owner no_privs N/A N/A hasattr self usermaps N/A N/A umaps N/A N/A umap N/A self usermaps N/A N/A N/A N/A umaps update N/A umap N/A N/A N/A N/A self usermaps N/A umap to_map N/A N/A N/A server N/A key N/A user mappings umaps N/A N/A N/A server N/A key N/A usermaps N/A server N/A create N/A N/A self N/A N/A N/A Return SQL statements to CREATE the server

        :return: SQL statements
         N/A clauses N/A N/A options N/A N/A opt N/A type version N/A N/A N/A hasattr self opt N/A N/A N/A N/A clauses append N/A %s '%s' N/A N/A N/A opt upper N/A getattr self opt N/A N/A hasattr self options N/A N/A N/A N/A options append N/A N/A self options_clause N/A N/A N/A CREATE SERVER %s%s
    FOREIGN DATA WRAPPER %s%s N/A N/A quote_id N/A self name N/A N/A clauses N/A N/A N/A join clauses N/A quote_id N/A self wrapper N/A N/A options N/A N/A N/A ,
     join options N/A commentable grantable ownable diff_map N/A N/A self inserver N/A N/A N/A Generate SQL to transform an existing server

        :param inserver: a YAML map defining the new server
        :return: list of SQL statements
         N/A stmts N/A N/A N/A super ForeignServer self diff_map inserver N/A N/A N/A inserver owner None N/A N/A N/A N/A inserver owner N/A self owner N/A N/A N/A N/A stmts append N/A N/A self alter_owner N/A inserver owner N/A N/A N/A stmts append N/A N/A self diff_description inserver N/A stmts N/A N/A ForeignServerDict N/A DbObjectDict N/A N/A The collection of foreign servers in a database N/A cls ForeignServer N/A query SELECT fdwname AS wrapper, srvname AS name, srvtype AS type,
                  srvversion AS version, srvoptions AS options,
                  rolname AS owner, array_to_string(srvacl, ',') AS privileges,
                  obj_description(s.oid, 'pg_foreign_server') AS description
           FROM pg_foreign_server s
                JOIN pg_roles r ON (r.oid = srvowner)
                JOIN pg_foreign_data_wrapper w ON (srvfdw = w.oid)
           ORDER BY fdwname, srvname from_map N/A N/A self wrapper inservers newdb N/A N/A N/A Initialize the dictionary of servers by examining the input map

        :param wrapper: associated foreign data wrapper
        :param inservers: input YAML map defining the foreign servers
        :param newdb: collection of dictionaries defining the database
         N/A key inservers N/A N/A N/A N/A N/A key startswith server  N/A N/A N/A KeyError N/A Unrecognized object type: %s key N/A srv N/A key N/A 7 N/A N/A self N/A N/A N/A wrapper name srv serv N/A ForeignServer wrapper N/A wrapper name name srv N/A inserv N/A inservers N/A key N/A inserv N/A N/A N/A attr val N/A list N/A N/A inserv items N/A N/A N/A setattr serv attr val N/A N/A user mappings inserv N/A N/A N/A N/A N/A newdb usermaps from_map serv N/A inserv N/A user mappings N/A N/A oldname inserv N/A N/A N/A inserv N/A oldname N/A N/A privileges inserv N/A N/A N/A serv privileges N/A privileges_from_map N/A inserv N/A privileges N/A serv allprivs N/A serv owner N/A to_map N/A N/A self no_owner no_privs N/A N/A N/A Convert the server dictionary to a regular dictionary

        :param no_owner: exclude server owner information
        :param no_privs: exclude privilege information
        :return: dictionary

        Invokes the `to_map` method of each server to construct a
        dictionary of foreign servers.
         N/A servers N/A N/A srv self N/A N/A N/A N/A servers update N/A N/A N/A self N/A srv to_map no_owner no_privs N/A servers N/A link_refs N/A N/A self dbusermaps N/A N/A N/A Connect user mappings to their respective servers

        :param dbusermaps: dictionary of user mappings
         N/A N/A fdw srv usr dbusermaps N/A N/A dbusermap N/A dbusermaps N/A N/A fdw srv usr N/A N/A self N/A N/A fdw srv N/A server N/A self N/A N/A fdw srv N/A N/A N/A hasattr server usermaps N/A N/A N/A server usermaps N/A N/A N/A N/A N/A server usermaps update N/A usr dbusermap N/A diff_map N/A N/A self inservers N/A N/A N/A Generate SQL to transform existing foreign servers

        :param inservers: a YAML map defining the new foreign servers
        :return: list of SQL statements

        Compares the existing server definitions, as fetched from the
        catalogs, to the input map and generates SQL statements to
        transform the foreign servers accordingly.
         N/A stmts N/A N/A N/A fdw srv inservers N/A N/A insrv N/A inservers N/A N/A fdw srv N/A N/A N/A fdw srv self N/A N/A N/A N/A stmts append N/A N/A N/A self N/A N/A fdw srv diff_map insrv N/A N/A N/A hasattr insrv oldname N/A N/A oldname N/A insrv oldname N/A N/A N/A N/A N/A stmts append N/A N/A N/A self N/A N/A fdw oldname rename N/A insrv name N/A N/A self N/A oldname N/A N/A N/A KeyError N/A exc N/A N/A N/A exc args N/A N/A Previous name '%s' for dictionary '%s' not found N/A oldname N/A insrv name N/A N/A N/A N/A N/A stmts append N/A N/A insrv create N/A srv self N/A N/A N/A srv inservers N/A N/A N/A N/A self N/A srv dropped True N/A stmts N/A _drop N/A N/A self N/A N/A N/A Actually drop the servers

        :return: SQL statements
         N/A stmts N/A N/A srv self N/A N/A N/A hasattr N/A self N/A srv dropped N/A N/A N/A N/A stmts append N/A N/A N/A self N/A srv drop N/A stmts N/A N/A UserMapping N/A DbObjectWithOptions N/A N/A A user mapping definition N/A objtype USER MAPPING N/A keylist N/A wrapper server name extern_key N/A N/A self N/A N/A N/A Return the key to be used in external maps for this user mapping

        :return: string
         N/A N/A self name N/A identifier N/A N/A self N/A N/A N/A Return a full identifier for a user mapping object

        :return: string
         N/A N/A FOR %s SERVER %s N/A N/A N/A N/A N/A self name PUBLIC PUBLIC N/A quote_id N/A self name N/A quote_id N/A self server N/A create N/A N/A self N/A N/A N/A Return SQL statements to CREATE the user mapping

        :return: SQL statements
         N/A options N/A N/A N/A hasattr self options N/A N/A N/A N/A options append N/A N/A self options_clause N/A N/A N/A CREATE USER MAPPING FOR %s
    SERVER %s%s N/A N/A N/A N/A N/A self name PUBLIC PUBLIC N/A quote_id N/A self name N/A quote_id N/A self server N/A N/A options N/A N/A N/A ,
     join options N/A N/A UserMappingDict N/A DbObjectDict N/A N/A The collection of user mappings in a database N/A cls UserMapping N/A query SELECT fdwname AS wrapper, s.srvname AS server,
                  CASE umuser WHEN 0 THEN 'PUBLIC' ELSE
                  usename END AS name, umoptions AS options
           FROM pg_user_mappings u
                JOIN pg_foreign_server s ON (u.srvid = s.oid)
                JOIN pg_foreign_data_wrapper w ON (srvfdw = w.oid)
           ORDER BY fdwname, s.srvname, 3 from_map N/A N/A self server inusermaps N/A N/A N/A Initialize the dictionary of mappings by examining the input map

        :param server: foreign server associated with mappings
        :param inusermaps: input YAML map defining the user mappings
         N/A key inusermaps N/A N/A usermap N/A UserMapping wrapper N/A server wrapper server N/A server name name key N/A inusermap N/A inusermaps N/A key N/A inusermap N/A N/A N/A attr val N/A list N/A N/A inusermap items N/A N/A N/A setattr usermap attr val N/A N/A oldname inusermap N/A N/A N/A inusermap N/A oldname N/A N/A self N/A N/A N/A server wrapper N/A server name key usermap N/A to_map N/A N/A self N/A N/A N/A Convert the user mapping dictionary to a regular dictionary

        :return: dictionary

        Invokes the `to_map` method of each mapping to construct a
        dictionary of user mappings.
         N/A usermaps N/A N/A um self N/A N/A N/A N/A usermaps update N/A N/A N/A self N/A um to_map N/A usermaps N/A diff_map N/A N/A self inusermaps N/A N/A N/A Generate SQL to transform existing user mappings

        :param input_map: a YAML map defining the new user mappings
        :return: list of SQL statements

        Compares the existing user mapping definitions, as fetched from the
        catalogs, to the input map and generates SQL statements to
        transform the user mappings accordingly.
         N/A stmts N/A N/A N/A fdw srv usr inusermaps N/A N/A inump N/A inusermaps N/A N/A fdw srv usr N/A N/A N/A fdw srv usr self N/A N/A N/A N/A stmts append N/A N/A N/A self N/A N/A fdw srv usr diff_map inump N/A N/A N/A hasattr inump oldname N/A N/A oldname N/A inump oldname N/A N/A N/A N/A N/A stmts append N/A N/A N/A self N/A N/A fdw srv oldname rename N/A inump name N/A N/A self N/A N/A fdw srv oldname N/A N/A N/A KeyError N/A exc N/A N/A N/A exc args N/A N/A Previous name '%s' for user mapping '%s' not found N/A oldname N/A inump name N/A N/A N/A N/A N/A stmts append N/A N/A inump create N/A N/A fdw srv usr self N/A N/A N/A N/A fdw srv usr inusermaps N/A N/A N/A N/A stmts append N/A N/A N/A self N/A N/A fdw srv usr drop N/A stmts N/A N/A ForeignTable N/A DbObjectWithOptions Table N/A N/A A foreign table definition N/A objtype FOREIGN TABLE N/A privobjtype TABLE to_map N/A N/A self opts N/A N/A N/A Convert a foreign table to a YAML-suitable format

        :param opts: options to include/exclude tables, etc.
        :return: dictionary
         N/A N/A N/A hasattr opts excl_tables N/A opts excl_tables N/A N/A self name N/A opts excl_tables N/A N/A N/A N/A N/A N/A hasattr self columns N/A N/A N/A N/A cols N/A N/A i N/A range N/A len N/A self columns N/A N/A col N/A N/A N/A N/A self columns N/A i to_map N/A opts no_privs N/A col N/A N/A N/A N/A cols append col N/A tbl N/A columns server cols N/A self server N/A attrlist N/A options N/A N/A N/A self description None N/A N/A N/A N/A attrlist append description N/A N/A N/A opts no_owner N/A N/A N/A N/A attrlist append owner N/A attr attrlist N/A N/A N/A hasattr self attr N/A N/A N/A N/A tbl update N/A attr N/A getattr self attr N/A N/A N/A N/A opts no_privs N/A self privileges N/A N/A N/A N/A tbl update N/A privileges N/A N/A self map_privs N/A tbl N/A create N/A N/A self N/A N/A N/A Return SQL statements to CREATE the foreign table

        :return: SQL statements
         N/A stmts N/A N/A cols N/A N/A options N/A N/A col N/A self columns N/A N/A N/A N/A cols append N/A N/A N/A N/A col add N/A 0 N/A N/A hasattr self options N/A N/A N/A N/A options append N/A N/A self options_clause N/A N/A N/A stmts append N/A CREATE FOREIGN TABLE %s (
%s)
    SERVER %s%s N/A N/A N/A self qualname N/A N/A ,
 join cols N/A self server N/A N/A options N/A N/A N/A ,
     join options N/A N/A N/A self owner None N/A N/A N/A N/A stmts append N/A N/A self alter_owner N/A N/A N/A self description None N/A N/A N/A N/A stmts append N/A N/A self comment N/A col N/A self columns N/A N/A N/A N/A col description None N/A N/A N/A N/A stmts append N/A N/A col comment N/A stmts N/A grantable drop N/A N/A self N/A N/A N/A Return a SQL DROP statement for the foreign table

        :return: SQL statement
         N/A N/A DROP %s %s N/A N/A self objtype N/A N/A self identifier N/A diff_map N/A N/A self intable N/A N/A N/A Generate SQL to transform an existing table

        :param intable: a YAML map defining the new table
        :return: list of SQL statements
         N/A stmts N/A N/A N/A super ForeignTable self diff_map intable N/A N/A N/A intable owner None N/A N/A N/A N/A intable owner N/A self owner N/A N/A N/A N/A stmts append N/A N/A self alter_owner N/A intable owner N/A N/A N/A stmts append N/A N/A self diff_description intable N/A stmts N/A N/A ForeignTableDict N/A ClassDict N/A N/A The collection of foreign tables in a database N/A cls ForeignTable N/A query SELECT nspname AS schema, relname AS name, srvname AS server,
                  ftoptions AS options, rolname AS owner,
                  array_to_string(relacl, ',') AS privileges,
                  obj_description(c.oid, 'pg_class') AS description
           FROM pg_class c JOIN pg_foreign_table f ON (ftrelid = c.oid)
                JOIN pg_roles r ON (r.oid = relowner)
                JOIN pg_foreign_server s ON (ftserver = s.oid)
                JOIN pg_namespace ON (relnamespace = pg_namespace.oid)
           WHERE relkind = 'f'
                 AND (nspname != 'pg_catalog'
                      AND nspname != 'information_schema')
           ORDER BY nspname, relname _from_catalog N/A N/A self N/A N/A N/A Initialize the dictionary of tables by querying the catalogs N/A N/A N/A N/A self dbconn version 90100 N/A N/A N/A tbl N/A N/A self fetch N/A N/A N/A self N/A N/A N/A tbl key tbl N/A from_map N/A N/A self schema inobjs newdb N/A N/A N/A Initalize the dictionary of tables by converting the input map

        :param schema: schema owning the tables
        :param inobjs: YAML map defining the schema objects
        :param newdb: collection of dictionaries defining the database
         N/A key inobjs N/A N/A N/A N/A N/A key startswith foreign table  N/A N/A N/A KeyError N/A Unrecognized object type: %s key N/A ftb N/A key N/A 14 N/A N/A self N/A N/A N/A schema name ftb ftable N/A ForeignTable schema N/A schema name name ftb N/A inftable N/A inobjs N/A key N/A N/A inftable N/A N/A N/A ValueError N/A Foreign table '%s' has no specification ftb N/A N/A N/A N/A N/A N/A newdb columns from_map ftable N/A inftable N/A columns N/A N/A N/A KeyError N/A exc N/A N/A N/A exc args N/A N/A Foreign table '%s' has no columns ftb N/A N/A attr N/A server options owner description N/A N/A N/A attr inftable N/A N/A N/A setattr ftable attr N/A inftable N/A attr N/A N/A privileges inftable N/A N/A N/A ftable privileges N/A privileges_from_map N/A inftable N/A privileges N/A ftable allprivs N/A ftable owner N/A link_refs N/A N/A self dbcolumns N/A N/A N/A Connect columns to their respective foreign tables

        :param dbcolumns: dictionary of columns
         N/A N/A sch tbl dbcolumns N/A N/A N/A N/A sch tbl self N/A N/A N/A isinstance N/A self N/A N/A sch tbl ForeignTable N/A N/A N/A self N/A N/A sch tbl columns N/A dbcolumns N/A N/A sch tbl N/A col N/A dbcolumns N/A N/A sch tbl N/A N/A N/A col _table N/A self N/A N/A sch tbl N/A diff_map N/A N/A self intables N/A N/A N/A Generate SQL to transform existing foreign tables

        :param intables: a YAML map defining the new foreign tables
        :return: list of SQL statements

        Compares the existing foreign table definitions, as fetched
        from the catalogs, to the input map and generates SQL
        statements to transform the foreign tables accordingly.
         N/A stmts N/A N/A N/A sch tbl intables N/A N/A intbl N/A intables N/A N/A sch tbl N/A N/A N/A sch tbl self N/A N/A N/A hasattr intbl oldname N/A N/A oldname N/A intbl oldname N/A N/A N/A N/A N/A stmts append N/A N/A N/A self N/A N/A sch oldname rename N/A intbl name N/A N/A self N/A N/A sch oldname N/A N/A N/A KeyError N/A exc N/A N/A N/A exc args N/A N/A Previous name '%s' for foreign table '%s' not found N/A oldname N/A intbl name N/A N/A N/A N/A N/A stmts append N/A N/A intbl create N/A N/A sch tbl self N/A N/A table N/A self N/A N/A sch tbl N/A N/A N/A sch tbl intables N/A N/A N/A N/A stmts append N/A N/A table drop N/A N/A N/A N/A stmts append N/A N/A table diff_map N/A intables N/A N/A sch tbl N/A stmts N/A N/A