Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias alias alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr BinOpAdd ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr ListComp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Call AttributeLoad Str attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Call AttributeLoad Str attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad Str attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str keyword Call AttributeLoad Str attr NameLoad keyword NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Delete SubscriptDel NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad decorator_list NameLoad decorator_list
N/A N/A getpass N/A logging N/A os N/A pymysql N/A pymysql.cursors collections AllRevisions Archives Pages Revisions Users N/A logger N/A N/A logging getLogger mw.database.db DB N/A N/A N/A 
    Represents a connection to a MySQL database.

    :Parameters:
        connection = :class:`oursql.Connection`
            A connection to a MediaWiki database
     __init__ N/A N/A self connection N/A N/A N/A N/A self shared_connection connection N/A N/A N/A self shared_connection cursorclass N/A N/A pymysql cursors DictCursor N/A N/A self revisions N/A Revisions self N/A 
        An instance of :class:`mw.database.Revisions`.
         N/A N/A self archives N/A Archives self N/A 
        An instance of :class:`mw.database.Archives`.
         N/A N/A self all_revisions N/A AllRevisions self N/A 
        An instance of :class:`mw.database.AllRevisions`.
         N/A N/A self pages N/A Pages self N/A 
        An instance of :class:`mw.database.Pages`.
         N/A N/A self users N/A Users self N/A 
        An instance of :class:`mw.database.Users`.
         N/A __repr__ N/A N/A self N/A N/A N/A N/A %s(%s) N/A N/A N/A self __class__ __name__ N/A N/A ,  join N/A N/A N/A repr arg N/A arg N/A self args N/A N/A %s=%r N/A k v N/A N/A k v N/A N/A N/A self kwargs items N/A __str__ N/A N/A self N/A N/A N/A N/A N/A self __repr__ N/A add_arguments N/A N/A cls parser defaults N/A None N/A N/A 
        Adds the arguments to an :class:`argparse.ArgumentParser` in order to
        create a database connection.
         N/A defaults N/A N/A defaults None defaults defaults N/A default_host N/A N/A defaults get host localhost N/A N/A N/A parser add_argument --host -h help N/A N/A MySQL database host to connect to (defaults to {0}) format default_host default default_host N/A default_database N/A N/A defaults get database N/A N/A getpass getuser N/A N/A N/A parser add_argument --database -d help N/A N/A MySQL database name to connect to (defaults to  {0}) format default_database default default_database N/A default_defaults_file N/A N/A defaults get defaults-file N/A N/A N/A os path expanduser ~/.my.cnf N/A N/A N/A parser add_argument --defaults-file help N/A N/A MySQL defaults file (defaults to {0}) format default_defaults_file default default_defaults_file N/A default_user N/A N/A defaults get user N/A N/A getpass getuser N/A N/A N/A parser add_argument --user -u help N/A N/A MySQL user (defaults to %s) format default_user default default_user N/A parser N/A classmethod from_arguments N/A N/A cls args N/A N/A N/A 
        Constructs a :class:`~mw.database.DB`.
        Consumes :class:`argparse.ArgumentParser` arguments given by
        :meth:`add_arguments` in order to create a :class:`DB`.

        :Parameters:
            args : :class:`argparse.Namespace`
                A collection of argument values returned by :class:`argparse.ArgumentParser`'s :meth:`parse_args()`
         N/A connection N/A N/A pymysql connect N/A args host N/A args user database N/A args database read_default_file N/A args defaults_file N/A N/A cls connection N/A classmethod from_params N/A N/A cls N/A args kwargs N/A N/A 
        Constructs a :class:`~mw.database.DB`.  Passes `*args` and `**kwargs`
        to :meth:`oursql.connect` and configures the connection.

        :Parameters:
            args : :class:`argparse.Namespace`
                A collection of argument values returned by :class:`argparse.ArgumentParser`'s :meth:`parse_args()`
         N/A N/A kwargs N/A cursorclass N/A N/A pymysql cursors DictCursor N/A N/A kwargs N/A db N/A N/A N/A kwargs N/A database N/A kwargs N/A db N/A N/A kwargs N/A db N/A connection N/A N/A pymysql connect args kwargs N/A N/A cls connection N/A classmethod N/A