Module Expr Str ImportFrom alias Assign NameStore Str Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list Assign NameStore Call NameLoad Str ListLoad Str Str Str Str Str Str Assign NameStore Call NameLoad Str ListLoad Str Str Str Assign NameStore Call NameLoad Str ListLoad Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad keyword Str FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad NameLoad keyword Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryExcept body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler body Raise Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore ListLoad Str Str Str Str Str body TryExcept body Exec BinOpMod Str TupleLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Exec BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Return Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list NameLoad Assign NameStore Call NameLoad NameLoad keyword Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad Str NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Str Str Str body Expr Str Pass decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad TryExcept body If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Str orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad If CompareEq NameLoad NameLoad body Assign NameStore NameLoad orelse If CompareLtE NameLoad Num body Assign NameStore NameLoad If CompareEq NameLoad Num body Assign NameStore Str orelse Assign NameStore Str Assign NameStore NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Str handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore BinOpMod Str Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore ListLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Raise NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return CompareIn NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Base classes for enhanced DB drivers.
 __future__ absolute_import N/A __docformat__ restructuredtext en N/A re N/A time N/A os N/A sys datetime date datetime collections namedtuple grizzled.exception ExceptionWithMessage grizzled.decorators abstract N/A __all__ N/A DBDriver DB Cursor DBError Error Warning TableMetadata IndexMetadata RDBMSMetadata DBError N/A ExceptionWithMessage N/A N/A 
    Base class for all DB exceptions.
     N/A N/A Error N/A DBError N/A N/A Thrown to indicate an error in the ``db`` module. N/A N/A Warning N/A DBError N/A N/A Thrown to indicate an error in the ``db`` module. N/A N/A N/A TableMetadata N/A namedtuple TableMetadata N/A column_name type_string max_char_size precision scale nullable N/A IndexMetadata N/A namedtuple IndexMetadata N/A index_name index_columns description N/A RDBMSMetadata N/A namedtuple RDBMSMetadata N/A vendor product version Cursor N/A object N/A N/A 
    Class for DB cursors returned by the ``DB.cursor()`` method. This class
    conforms to the Python DB cursor interface, including the following
    attributes.

    :IVariables:
        description : tuple
            A read-only attribute that is a sequence of 7-item tuples, one per
            column, from the last query executed. The tuple values are:
            *(name, typecode, displaysize, internalsize, precision, scale)*
        rowcount : int
            A read-only attribute that specifies the number of rows
            fetched in the last query, or -1 if unknown. *Note*: It's best
            not to rely on the row count, because some database drivers
            (such as SQLite) don't report valid row counts.
     __init__ N/A N/A self cursor driver N/A N/A N/A 
        Create a new Cursor object, wrapping the underlying real DB API
        cursor.

        :Parameters:
            cursor
                the real DB API cursor object
            driver
                the driver that is creating this object
         N/A N/A self __cursor cursor N/A N/A self __driver driver N/A N/A self __description None N/A N/A self __rowcount -1 N/A __get_description N/A N/A self N/A N/A N/A N/A self __description N/A N/A description N/A property __get_description doc The description field. See class docs. __get_rowcount N/A N/A self N/A N/A N/A N/A self __rowcount N/A N/A rowcount N/A property __get_rowcount doc Number of rows from last query, or -1 close N/A N/A self N/A N/A N/A 
        Close the cursor.

        :raise Warning: Non-fatal warning
        :raise Error:   Error; unable to close
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __cursor close N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A execute N/A N/A self statement parameters N/A None N/A N/A 
        Execute a SQL statement string with the given parameters.
        'parameters' is a sequence when the parameter style is
        'format', 'numeric' or 'qmark', and a dictionary when the
        style is 'pyformat' or 'named'. See ``DB.paramstyle()``.

        :Parameters:
            statement : str
                the SQL statement to execute
            parameters : list
                parameters to use, if the statement is parameterized

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A parameters N/A N/A result N/A N/A N/A self __cursor execute statement parameters N/A N/A result N/A N/A N/A self __cursor execute statement N/A N/A N/A N/A self __rowcount N/A N/A self __cursor rowcount N/A N/A N/A AttributeError N/A N/A N/A self __rowcount -1 N/A N/A self __description N/A N/A self __cursor description N/A result N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A N/A N/A N/A Error N/A N/A N/A sys exc_info N/A 1 N/A executemany N/A N/A self statement N/A parameters N/A N/A 
        Execute a SQL statement once for each item in the given parameters.

        :Parameters:
            statement : str
                the SQL statement to execute
            parameters : sequence
                a sequence of sequences when the parameter style
                is 'format', 'numeric' or 'qmark', and a sequence
                of dictionaries when the style is 'pyformat' or
                'named'.

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A result N/A N/A N/A self __cursor executemany statement parameters N/A N/A self __rowcount N/A N/A self __cursor rowcount N/A N/A self __description N/A N/A self __cursor description N/A result N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A N/A executeMany executemany fetchone N/A N/A self N/A N/A N/A 
        Returns the next result set row from the last query, as a sequence
        of tuples. Raises an exception if the last statement was not a query.

        :rtype:  tuple
        :return: Next result set row

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __cursor fetchone N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A fetchall N/A N/A self N/A N/A N/A 
        Returns all remaining result rows from the last query, as a sequence
        of tuples. Raises an exception if the last statement was not a query.

        :rtype:  list of tuples
        :return: List of rows, each represented as a tuple

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __cursor fetchall N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A N/A fetchAll fetchall fetchmany N/A N/A self n N/A N/A N/A 
        Returns up to n remaining result rows from the last query, as a
        sequence of tuples. Raises an exception if the last statement was
        not a query.

        :Parameters:
            n : int
                maximum number of result rows to get

        :rtype:  list of tuples
        :return: List of rows, each represented as a tuple

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __cursor fetchmany n N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A N/A fetchMany fetchmany get_rdbms_metadata N/A N/A self N/A N/A N/A 
        Return data about the RDBMS: the product name, the version,
        etc. The result is a named tuple, with the following fields:

        vendor
            The product vendor, if applicable, or ``None`` if not known
        product
            The name of the database product, or ``None`` if not known
        version
            The database product version, or ``None`` if not known

        The fields may be accessed by position or name. This method
        just calls through to the equivalent method in the underlying
        ``DBDriver`` implementation.

        :rtype: named tuple
        :return: the vendor information
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __driver get_rdbms_metadata N/A self __cursor N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A get_table_metadata N/A N/A self table N/A N/A N/A 
        Get the metadata for a table. Returns a list of tuples, one for
        each column. Each tuple consists of the following::

            (column_name, type_string, max_char_size, precision, scale, nullable)

        The tuple elements have the following meanings.

        column_name
            the name of the column
        type_string
            the column type, as a string
        max_char_size
            the maximum size for a character field, or ``None``
        precision
            the precision, for a numeric field; or ``None``
        scale
            the scale, for a numeric field; or ``None``
        nullable
            True if the column is nullable, False if it is not

        The tuples are named tuples, so the fields may be referenced by the
        names above or by position.

        The data may come from the DB API's ``cursor.description`` field, or
        it may be richer, coming from a direct SELECT against
        database-specific tables.

        :rtype: list
        :return: list of tuples, as described above

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __driver get_table_metadata table N/A self __cursor N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A get_index_metadata N/A N/A self table N/A N/A N/A 
        Get the metadata for the indexes for a table. Returns a list of
        tuples, one for each index. Each tuple consists of the following::

            (index_name, [index_columns], description)

        The tuple elements have the following meanings.

        index_name
            the index name
        index_columns
            a list of column names
        description
            index description, or ``None``

        The tuples are named tuples, so the fields may be referenced by the
        names above or by position.

        :rtype:  list of tuples
        :return: the list of tuples, or ``None`` if not supported in the
                 underlying database

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __driver get_index_metadata table N/A self __cursor N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A get_tables N/A N/A self N/A N/A N/A 
        Get the list of tables in the database to which this cursor is
        connected.

        :rtype:  list
        :return: List of table names. The list will be empty if the database
                 contains no tables.

        :raise NotImplementedError: Capability not supported by database driver
        :raise Warning:             Non-fatal warning
        :raise Error:               Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __driver get_tables N/A self __cursor N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A N/A DB N/A object N/A N/A 
    The object returned by a call to ``DBDriver.connect()``. ``db`` wraps the
    real database object returned by the underlying Python DB API module's
    ``connect()`` method.
     __init__ N/A N/A self db driver N/A N/A N/A 
        Create a new DB object.

        :Parameters:
            db
                the underlying Python DB API database object
            driver : DBDriver
                the driver (i.e., the subclass of ``DBDriver``) that
                created the ``db`` object
         N/A N/A self __db db N/A N/A self __driver driver N/A dbi N/A N/A driver get_import N/A attr N/A BINARY NUMBER STRING DATETIME ROWID N/A N/A N/A N/A N/A self.%s = dbi.%s N/A attr attr N/A N/A N/A AttributeError N/A N/A N/A self.%s = 0 attr N/A paramstyle N/A N/A self N/A N/A N/A 
        Get the parameter style for the underlying DB API module. The
        result of this method call corresponds exactly to the underlying
        DB API module's 'paramstyle' attribute. It will have one of the
        following values:

        +----------+-----------------------------------------------------------+
        | format   | The parameter marker is '%s', as in string                |
        |          | formatting. A query looks like this::                     |
        |          |                                                           |
        |          |   c.execute('SELECT * FROM Foo WHERE Bar=%s', [x])        |
        +----------+-----------------------------------------------------------+
        | named    | The parameter marker is ``:name``, and parameters         |
        |          | are named. A query looks like this::                      |
        |          |                                                           |
        |          |   c.execute('SELECT * FROM Foo WHERE Bar=:x', {'x':x})    |
        +----------+-----------------------------------------------------------+
        | numeric  | The parameter marker is ``:n``, giving the parameter's    |
        |          | number (starting at 1). A query looks like this::         |
        |          |                                                           |
        |          |   c.execute('SELECT * FROM Foo WHERE Bar=:1', [x])        |
        +----------+-----------------------------------------------------------+
        | pyformat | The parameter marker is ``:name``, and parameters         |
        |          | are named. A query looks like this::                      |
        |          |                                                           |
        |          |   c.execute('SELECT * FROM Foo WHERE Bar=%(x)s', {'x':x}) |
        +----------+-----------------------------------------------------------+
        | qmark    | The parameter marker is "?", and parameters are           |
        |          | substituted in order. A query looks like this::           |
        |          |                                                           |
        |          |   c.execute('SELECT * FROM Foo WHERE Bar=?', [x])         |
        +----------+-----------------------------------------------------------+
         N/A N/A N/A N/A N/A self __driver get_import paramstyle N/A Binary N/A N/A self string N/A N/A N/A 
        Returns an object representing the given string of bytes as a BLOB.

        This method is equivalent to the module-level ``Binary()`` method in
        an underlying DB API-compliant module.

        :Parameters:
            string : str
                the string to convert to a BLOB

        :rtype:  object
        :return: the corresponding BLOB
         N/A N/A N/A N/A N/A N/A self __driver get_import Binary string N/A Date N/A N/A self year month day N/A N/A N/A 
        Returns an object representing the specified date.

        This method is equivalent to the module-level ``Date()`` method in
        an underlying DB API-compliant module.

        :Parameters:
            year
                the year
            month
                the month
            day
                the day of the month

        :return: an object containing the date
         N/A N/A N/A N/A N/A N/A self __driver get_import Date year month day N/A DateFromTicks N/A N/A self secs N/A N/A N/A 
        Returns an object representing the date *secs* seconds after the
        epoch. For example:

        .. python::

            import time

            d = db.DateFromTicks(time.time())

        This method is equivalent to the module-level ``DateFromTicks()``
        method in an underlying DB API-compliant module.

        :Parameters:
            secs : int
                the seconds from the epoch

        :return: an object containing the date
         N/A date N/A N/A date fromtimestamp secs N/A N/A N/A N/A N/A N/A self __driver get_import Date N/A date year N/A date month N/A date day N/A Time N/A N/A self hour minute second N/A N/A N/A 
        Returns an object representing the specified time.

        This method is equivalent to the module-level ``Time()`` method in an
        underlying DB API-compliant module.

        :Parameters:
            hour
                the hour of the day
            minute
                the minute within the hour. 0 <= *minute* <= 59
            second
                the second within the minute. 0 <= *second* <= 59

        :return: an object containing the time
         N/A dt N/A N/A datetime fromtimestamp secs N/A N/A N/A N/A N/A N/A self __driver get_import Time N/A dt hour N/A dt minute N/A dt second N/A TimeFromTicks N/A N/A self secs N/A N/A N/A 
        Returns an object representing the time 'secs' seconds after the
        epoch. For example:

        .. python::

            import time

            d = db.TimeFromTicks(time.time())

        This method is equivalent to the module-level ``TimeFromTicks()``
        method in an underlying DB API-compliant module.

        :Parameters:
            secs : int
                the seconds from the epoch

        :return: an object containing the time
         N/A dt N/A N/A datetime fromtimestamp secs N/A N/A N/A N/A N/A N/A self __driver get_import Time N/A dt hour N/A dt minute N/A dt second N/A Timestamp N/A N/A self year month day hour minute second N/A N/A N/A 
        Returns an object representing the specified time.

        This method is equivalent to the module-level ``Timestamp()`` method
        in an underlying DB API-compliant module.

        :Parameters:
            year
                the year
            month
                the month
            day
                the day of the month
            hour
                the hour of the day
            minute
                the minute within the hour. 0 <= *minute* <= 59
            second
                the second within the minute. 0 <= *second* <= 59

        :return: an object containing the timestamp
         N/A N/A N/A N/A N/A N/A self __driver get_import Timestamp year month day hour minute second N/A TimestampFromTicks N/A N/A self secs N/A N/A N/A 
        Returns an object representing the date and time ``secs`` seconds
        after the epoch. For example:

        .. python::

            import time

            d = db.TimestampFromTicks(time.time())

        This method is equivalent to the module-level ``TimestampFromTicks()``
        method in an underlying DB API-compliant module.

        :Parameters:
            secs : int
                the seconds from the epoch

        :return: an object containing the timestamp
         N/A dt N/A N/A datetime now N/A N/A N/A N/A N/A N/A self __driver get_import Timestamp N/A dt year N/A dt month N/A dt day N/A dt hour N/A dt minute N/A dt second N/A cursor N/A N/A self N/A N/A N/A 
        Get a cursor suitable for accessing the database. The returned object
        conforms to the Python DB API cursor interface.

        :return: the cursor

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A Cursor N/A N/A N/A self __db cursor N/A self __driver N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A commit N/A N/A self N/A N/A N/A 
        Commit the current transaction.

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __db commit N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A rollback N/A N/A self N/A N/A N/A 
        Roll the current transaction back.

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __db rollback N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A close N/A N/A self N/A N/A N/A 
        Close the database connection.

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A N/A self __driver get_import N/A N/A N/A N/A N/A N/A self __db close N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A N/A DBDriver N/A object N/A N/A 
    Base class for all DB drivers.
     get_import N/A N/A self N/A N/A N/A 
        Get a bound import for the underlying DB API module. All subclasses
        must provide an implementation of this method. Here's an example,
        assuming the real underlying Python DB API module is 'foosql':

        .. python::

            def get_import(self):
                import foosql
                return foosql

        :return: a bound module
         N/A N/A abstract __display_name N/A N/A self N/A N/A N/A N/A N/A self get_display_name N/A get_display_name N/A N/A self N/A N/A N/A 
        Get the driver's name, for display. The returned name ought to be
        a reasonable identifier for the database (e.g., 'SQL Server',
        'MySQL'). All subclasses must provide an implementation of this
        method.

        :rtype:  str
        :return: the driver's displayable name
         N/A N/A abstract N/A display_name N/A property __display_name doc get a displayable name for the driver connect N/A N/A self host port user password database N/A localhost None None None N/A N/A 
        Connect to the underlying database. Subclasses should *not*
        override this method. Instead, a subclass should override the
        ``do_connect()`` method.

        :Parameters:
            host : str
                the host where the database lives
            port : int
                the TCP port to use when connecting, or ``None``
            user : str
                the user to use when connecting, or ``None``
            password : str
                the password to use when connecting, or ``None``
            database : str
                the name of the database to which to connect

        :rtype:  ``db``
        :return: a ``db`` object representing the open database

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A dbi N/A N/A self get_import N/A N/A N/A N/A self __db N/A N/A self do_connect host host port port user user password password database database N/A N/A DB N/A self __db self N/A N/A N/A N/A dbi Warning N/A val N/A N/A N/A Warning val N/A N/A N/A dbi Error N/A val N/A N/A N/A Error val N/A do_connect N/A N/A self host port user password database N/A localhost None default N/A N/A 
        Connect to the actual underlying database, using the driver.
        Subclasses must provide an implementation of this method. The
        method must return the result of the real DB API implementation's
        ``connect()`` method. For instance:

        .. python::

            def do_connect():
                dbi = self.get_import()
                return dbi.connect(host=host, user=user, passwd=password,
                                   database=database)

        There is no need to catch exceptions; the ``DBDriver`` class's
        ``connect()`` method handles that.

        :Parameters:
            host : str
                the host where the database lives
            port : int
                the TCP port to use when connecting
            user : str
                the user to use when connecting
            password : str
                the password to use when connecting
            database : str
                the name of the database to which to connect

        :rtype:  object
        :return: a DB API-compliant object representing the open database

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A N/A abstract get_rdbms_metadata N/A N/A self cursor N/A N/A N/A 
        Return data about the RDBMS: the product name, the version,
        etc. The result is a named tuple, with the following fields.

        vendor
            The product vendor, if applicable, or ``None`` if not known
        product
            The name of the database product, or ``None`` if not known
        version
            The database product version, or ``None`` if not known

        :Parameters:
            cursor : Cursor
                a ``Cursor`` object from a recent query

        :rtype: named tuple
        :return: the vendor information
         N/A N/A RDBMSMetadata unknown unknown unknown N/A get_index_metadata N/A N/A self table cursor N/A N/A N/A 
        Get the metadata for the indexes for a table. Returns a list of
        tuples, one for each index. Each tuple consists of the following::

            (index_name, [index_columns], description)

        The tuple elements have the following meanings.

        index_name
            the index name
        index_columns
            a list of column names
        description
            index description, or ``None``

        The tuples are named tuples, so the fields may be referenced by the
        names above or by position.

        The default implementation of this method returns `None`

        :Parameters:
            table : str
                table name
            cursor : Cursor
                a ``Cursor`` object from a recent query

        :rtype:  list of tuples
        :return: the list of tuples, or ``None`` if not supported in the
                 underlying database

        :raise Warning: Non-fatal warning
         N/A None N/A get_table_metadata N/A N/A self table cursor N/A N/A N/A 
        Get the metadata for a table. Returns a list of tuples, one for
        each column. Each tuple consists of the following::

            (column_name, type_string, max_char_size, precision, scale, nullable)

        The tuple elements have the following meanings.

        column_name
            the name of the column
        type_string
            the column type, as a string
        max_char_size
            the maximum size for a character field, or ``None``
        precision
            the precision, for a numeric field; or ``None``
        scale
            the scale, for a numeric field; or ``None``
        nullable
            ``True`` if the column is nullable, ``False`` if it is not

        The tuples are named tuples, so the fields may be referenced by the
        names above or by position.

        The default implementation uses the DB API's ``cursor.description``
        field. Subclasses are free to override this method to produce their
        own version that uses other means.

        :Parameters:
            table : str
                the table name for which metadata is desired
            cursor : Cursor
                a ``Cursor`` object from a recent query

        :rtype: list
        :return: list of tuples, as described above

        :raise Warning: Non-fatal warning
        :raise Error:   Error
         N/A N/A N/A self _ensure_valid_table cursor table N/A dbi N/A N/A self get_import N/A N/A N/A cursor execute N/A SELECT * FROM %s WHERE 1=0 table N/A result N/A N/A col N/A cursor description N/A N/A name N/A col N/A 0 N/A type N/A col N/A 1 N/A size N/A col N/A 2 N/A internalSize N/A col N/A 3 N/A precision N/A col N/A 4 N/A scale N/A col N/A 5 N/A nullable N/A col N/A 6 N/A sType None N/A N/A N/A N/A type N/A dbi BINARY N/A N/A stype blob N/A N/A N/A type N/A dbi DATETIME N/A N/A stype datetime N/A N/A N/A type N/A dbi NUMBER N/A N/A stype numeric N/A N/A N/A type N/A dbi STRING N/A N/A sz internalSize N/A N/A sz None N/A N/A sz size N/A N/A N/A sz 0 N/A N/A sz size N/A N/A sz 1 N/A N/A stype char N/A N/A stype varchar N/A size sz N/A N/A N/A type N/A dbi ROWID N/A N/A stype id N/A N/A N/A AttributeError N/A N/A stype None N/A N/A sType N/A N/A stype N/A unknown (type code=%s) N/A str type N/A data N/A TableMetadata name stype size precision scale nullable N/A result N/A data N/A result N/A get_tables N/A N/A self cursor N/A N/A N/A 
        Get the list of tables in the database.

        :Parameters:
            cursor : Cursor
                a ``Cursor`` object from a recent query

        :rtype:  list
        :return: List of table names. The list will be empty if the database
                 contains no tables.

        :raise NotImplementedError: Capability not supported by database driver
        :raise Warning:             Non-fatal warning
        :raise Error:               Error
         N/A NotImplementedError N/A _ensure_valid_table N/A N/A self cursor table_name N/A N/A N/A 
        Determines whether a table name represents a legal table in the
        current database, throwing an ``Error`` if not.

        :Parameters:
            cursor : Cursor
                an open ``Cursor``

            table_name : str
                the table name

        :raise Error: bad table name
         N/A N/A N/A N/A self _is_valid_table cursor table_name N/A N/A Error N/A No such table: "%s" table_name N/A _is_valid_table N/A N/A self cursor table_name N/A N/A N/A 
        Determines whether a table name represents a legal table in the
        current database, throwing an ``Error`` if not.

        :Parameters:
            cursor : Cursor
                an open ``Cursor``

            table_name : str
                the table name

        :rtype: bool
        :return: ``True`` if the table is valid, ``False`` if not
         N/A tables N/A N/A self get_tables cursor N/A N/A table_name tables N/A N/A