Module Expr Str ImportFrom alias alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Assign NameStore Str Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotIn AttributeLoad NameLoad attr TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Return ListLoad BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr IfExp NameLoad BinOpAdd Str Call AttributeLoad Str attr NameLoad Str decorator_list NameLoad 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 NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad NameLoad attr Str If CompareIn AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad body Assign NameStore Dict BinOpMod Str AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Dict Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr 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 CompareNotIn NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad keyword NameLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareNotIn NameLoad NameLoad body Assign AttributeStore 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
N/A N/A 
    pyrseas.dbobject.extension
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    This module defines two classes: Extension derived from DbObject,
    and ExtensionDict derived from DbObjectDict.
 pyrseas.dbobject DbObjectDict DbObject pyrseas.dbobject quote_id commentable Extension N/A DbObject N/A N/A An extension N/A keylist N/A name N/A objtype EXTENSION N/A single_extern_file True __init__ N/A N/A self name description owner schema privileges version N/A None None N/A N/A N/A N/A N/A super Extension self __init__ name description owner privileges N/A N/A self schema schema N/A N/A self version version N/A create N/A N/A self N/A N/A N/A Return SQL statements to CREATE the extension

        :return: SQL statements
         N/A opt_clauses N/A N/A N/A N/A N/A self schema None N/A N/A self schema N/A pg_catalog public N/A N/A N/A N/A opt_clauses append N/A SCHEMA %s N/A quote_id N/A self schema N/A N/A N/A self version None N/A N/A N/A N/A opt_clauses append N/A VERSION '%s' N/A self version N/A N/A N/A CREATE EXTENSION %s%s N/A N/A quote_id N/A self name N/A opt_clauses N/A N/A N/A join opt_clauses N/A commentable N/A ExtensionDict N/A DbObjectDict N/A N/A The collection of extensions in a database N/A cls Extension N/A query SELECT extname AS name, nspname AS schema, extversion AS version,
                  rolname AS owner,
                  obj_description(e.oid, 'pg_extension') AS description
           FROM pg_extension e
                JOIN pg_roles r ON (r.oid = extowner)
                JOIN pg_namespace n ON (extnamespace = n.oid)
           WHERE nspname != 'information_schema'
           ORDER BY extname _from_catalog N/A N/A self N/A N/A N/A Initialize the dictionary of extensions by querying the catalogs N/A N/A N/A N/A self dbconn version 90100 N/A N/A N/A ext N/A N/A self fetch N/A N/A N/A self N/A N/A N/A ext key ext N/A from_map N/A N/A self inexts langtempls newdb N/A N/A N/A Initalize the dictionary of extensions by converting the input map

        :param inexts: YAML map defining the extensions
        :param langtempls: list of language templates
        :param newdb: dictionary of input database
         N/A key inexts N/A N/A N/A N/A N/A key startswith extension  N/A N/A N/A KeyError N/A Unrecognized object type: %s key N/A ext N/A key N/A 10 N/A inexten N/A inexts N/A key N/A N/A self N/A ext N/A Extension name ext description N/A N/A inexten get description owner N/A N/A inexten get owner schema N/A inexten N/A schema version N/A N/A inexten get version N/A N/A N/A N/A self N/A ext name langtempls N/A N/A lang N/A N/A language %s N/A N/A self N/A ext name N/A _ext e N/A N/A N/A N/A newdb languages from_map lang N/A diff_map N/A N/A self inexts N/A N/A N/A Generate SQL to transform existing extensions

        :param inexts: a YAML map defining the new extensions
        :return: list of SQL statements

        Compares the existing extension definitions, as fetched from
        the catalogs, to the input map and generates SQL statements to
        transform the extensions accordingly.
         N/A stmts N/A N/A ext inexts N/A N/A inexten N/A inexts N/A ext N/A N/A ext self N/A N/A N/A N/A hasattr inexten oldname N/A N/A N/A N/A stmts append N/A N/A inexten create N/A N/A N/A N/A stmts append N/A N/A N/A self N/A ext rename inexten N/A N/A N/A N/A stmts append N/A N/A N/A self N/A ext diff_map inexten no_owner True N/A ext self N/A N/A exten N/A self N/A ext N/A N/A ext inexts N/A N/A N/A exten dropped False N/A stmts N/A _drop N/A N/A self N/A N/A N/A Actually drop the extension

        :return: SQL statements
         N/A stmts N/A N/A ext self N/A N/A N/A hasattr N/A self N/A ext dropped N/A N/A N/A N/A stmts append N/A N/A N/A self N/A ext drop N/A stmts N/A N/A