Module Assign NameStore Str Expr Str Import alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias FunctionDef arguments args NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad Call NameLoad BinOpMult NameLoad Num AttributeLoad Call AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults Str body Assign NameStore BinOpSub Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Raise Call NameLoad Str decorator_list Assign NameStore NameLoad Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad Str Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return UnaryOpNot CompareIs AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Global identifier Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Global identifier If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body With Call NameLoad body Return Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Global identifier Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Expr Call NameLoad IfExp CompareEq AttributeLoad NameLoad attr Num Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Global identifier Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num TryFinally body If CompareEq AttributeLoad NameLoad attr Num body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr finalbody If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Global identifier Expr Call NameLoad Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Raise decorator_list FunctionDef arguments args NameParam defaults body Global identifier Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad body Return Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Global identifier identifier Assign NameStore NameLoad If CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return NameLoad Return Call NameLoad NameLoad NameLoad Return ListComp Call NameLoad NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr finalbody If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Return SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Global identifier identifier Assign NameStore NameLoad If CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Expr Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr BoolOpAnd NameLoad Call NameLoad Return NameLoad finalbody If NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad NameLoad Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr ListComp NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Assign NameStore ListLoad Str NameLoad Str Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Global identifier identifier Expr Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad kwarg body Expr Str Global identifier identifier If CompareEq NameLoad Str body Expr Call NameLoad Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Num Str Str NameLoad NameLoad Str Str Import alias For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Lambda arguments args defaults Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str orelse If CompareEq NameLoad Str body Expr Call NameLoad Str Import alias Assign NameStore Lambda arguments args defaults Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Num FunctionDef arguments args NameParam defaults kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Return IfExp Call NameLoad NameLoad Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Str attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Num If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword Num keyword Str decorator_list decorator_list Assign NameStore TupleLoad Str Str Str Str Str Str Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore ListLoad BinOpMod Str NameLoad BinOpMod Str NameLoad For NameStore Call NameLoad Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BoolOpOr BoolOpAnd NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Return Call AttributeLoad Str attr NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad Str body Assign AttributeStore NameLoad attr Dict If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call NameLoad Assign NameStore NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad If AttributeLoad NameLoad attr body If NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad SubscriptLoad NameLoad Index Str NameLoad decorator_list Assign SubscriptStore NameLoad Index Str NameLoad For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Return SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore NameLoad Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return IfExp NameLoad Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Assign NameStore IfExp NameLoad Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Return IfExp NameLoad Call NameLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Assign NameStore IfExp NameLoad Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Return ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Return IfExp NameLoad Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call NameLoad AttributeLoad NameLoad attr BinOpMod Str NameLoad Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore TupleLoad Call NameLoad NameLoad NameLoad Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Print NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str NameLoad Str Expr Call NameLoad Str Import alias Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A __author__ Michael Liao N/A 
Database operation module. This module is independent with web module.
 N/A os re sys time uuid socket datetime functools threading logging collections utils Dict next_str N/A N/A t N/A None N/A N/A 
    Return next id as 50-char string.

    Args:
        t: unix timestamp, default to None and using time.time().
     N/A N/A t None N/A N/A t N/A N/A time time N/A N/A %015d%s000 N/A N/A int N/A t 1000 N/A N/A N/A uuid uuid4 hex N/A N/A next_id next_str _profiling N/A N/A start sql N/A N/A N/A t N/A N/A N/A time time start N/A N/A t 0.1 N/A N/A N/A N/A logging warning N/A [PROFILING] [DB] %s: %s N/A t sql N/A N/A N/A N/A logging info N/A [PROFILING] [DB] %s: %s N/A t sql N/A DBError N/A Exception N/A N/A N/A MultiColumnsError N/A DBError N/A N/A N/A _log N/A N/A s N/A N/A N/A N/A N/A logging debug s N/A _dummy_connect N/A N/A N/A N/A N/A 
    Connect function used for get db connection. This function will be relocated in init(dbn, ...).
     N/A N/A DBError Database is not initialized. call init(dbn, ...) first. N/A N/A _db_connect _dummy_connect N/A _db_convert ? _LasyConnection N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self connection None N/A cursor N/A N/A self N/A N/A N/A N/A N/A self connection None N/A N/A N/A _log open connection... N/A N/A self connection N/A _db_connect N/A N/A N/A N/A self connection cursor N/A commit N/A N/A self N/A N/A N/A N/A N/A N/A self connection commit N/A rollback N/A N/A self N/A N/A N/A N/A N/A N/A self connection rollback N/A cleanup N/A N/A self N/A N/A N/A N/A self connection N/A N/A connection N/A self connection N/A N/A self connection None N/A N/A _log close connection... N/A N/A N/A connection close N/A N/A _DbCtx N/A N/A threading local N/A N/A 
    Thread local object that holds connection info.
     __init__ N/A N/A self N/A N/A N/A N/A self connection None N/A N/A self transactions 0 N/A is_init N/A N/A self N/A N/A N/A N/A N/A N/A self connection None N/A init N/A N/A self N/A N/A N/A N/A _log open lazy connection... N/A N/A self connection N/A _LasyConnection N/A N/A self transactions 0 N/A cleanup N/A N/A self N/A N/A N/A N/A N/A N/A self connection cleanup N/A cursor N/A N/A self N/A N/A N/A 
        Return cursor
         N/A N/A N/A N/A self connection cursor N/A N/A N/A _db_ctx N/A _DbCtx _ConnectionCtx N/A object N/A N/A 
    _ConnectionCtx object that can open and close connection context. _ConnectionCtx object can be nested and only the most 
    outer connection has effect.

    with connection():
        pass
        with connection():
            pass
     __enter__ N/A N/A self N/A N/A N/A _db_ctx N/A N/A self should_cleanup False N/A N/A N/A N/A _db_ctx is_init N/A N/A N/A N/A _db_ctx init N/A N/A self should_cleanup True N/A self N/A __exit__ N/A N/A self exctype excvalue traceback N/A N/A N/A _db_ctx N/A N/A self should_cleanup N/A N/A N/A N/A _db_ctx cleanup N/A N/A connection N/A N/A N/A N/A N/A 
    Return _ConnectionCtx object that can be used by 'with' statement:

    with connection():
        pass
     N/A N/A _ConnectionCtx N/A with_connection N/A N/A func N/A N/A N/A 
    Decorator for reuse connection.

    @with_connection
    def foo(*args, **kw):
        f1()
        f2()
        f3()
     _wrapper N/A N/A N/A args kw N/A N/A N/A _ConnectionCtx N/A N/A N/A func args kw N/A N/A N/A functools wraps func N/A _wrapper N/A _TransactionCtx N/A object N/A N/A 
    _TransactionCtx object that can handle transactions.

    with _TransactionCtx():
        pass
     __enter__ N/A N/A self N/A N/A N/A _db_ctx N/A N/A self should_close_conn False N/A N/A N/A N/A _db_ctx is_init N/A N/A N/A N/A _db_ctx init N/A N/A self should_close_conn True N/A N/A _db_ctx transactions N/A N/A _db_ctx transactions 1 N/A N/A _log N/A N/A N/A _db_ctx transactions 1 begin transaction... join current transaction... N/A self N/A __exit__ N/A N/A self exctype excvalue traceback N/A N/A N/A _db_ctx N/A N/A _db_ctx transactions N/A N/A _db_ctx transactions 1 N/A N/A N/A N/A N/A _db_ctx transactions 0 N/A N/A N/A exctype None N/A N/A N/A N/A self commit N/A N/A N/A N/A self rollback N/A N/A N/A self should_close_conn N/A N/A N/A N/A _db_ctx cleanup N/A commit N/A N/A self N/A N/A N/A _db_ctx N/A N/A _log commit transaction... N/A N/A N/A N/A N/A N/A _db_ctx connection commit N/A N/A _log commit ok. N/A N/A N/A N/A N/A N/A logging warning commit failed. try rollback... N/A N/A N/A N/A _db_ctx connection rollback N/A N/A N/A logging warning rollback ok. N/A N/A rollback N/A N/A self N/A N/A N/A _db_ctx N/A N/A _log manully rollback transaction... N/A N/A N/A N/A _db_ctx connection rollback N/A N/A N/A logging info rollback ok. N/A N/A transaction N/A N/A N/A N/A N/A 
    Create a transaction object so can use with statement:

    with transaction():
        pass

    >>> def update_profile(id, name, rollback):
    ...     u = dict(id=id, name=name, email='%s@test.org' % name, passwd=name, last_modified=time.time())
    ...     insert('user', **u)
    ...     r = update('update user set passwd=? where id=?', name.upper(), id)
    ...     if rollback:
    ...         raise StandardError('will cause rollback...')
    >>> with transaction():
    ...     update_profile(900301, 'Python', False)
    >>> select_one('select * from user where id=?', 900301).name
    u'Python'
    >>> with transaction():
    ...     update_profile(900302, 'Ruby', True)
    Traceback (most recent call last):
      ...
    StandardError: will cause rollback...
    >>> select('select * from user where id=?', 900302)
    []
     N/A N/A _TransactionCtx N/A with_transaction N/A N/A func N/A N/A N/A 
    A decorator that makes function around transaction.

    >>> @with_transaction
    ... def update_profile(id, name, rollback):
    ...     u = dict(id=id, name=name, email='%s@test.org' % name, passwd=name, last_modified=time.time())
    ...     insert('user', **u)
    ...     r = update('update user set passwd=? where id=?', name.upper(), id)
    ...     if rollback:
    ...         raise StandardError('will cause rollback...')
    >>> update_profile(8080, 'Julia', False)
    >>> select_one('select * from user where id=?', 8080).passwd
    u'JULIA'
    >>> update_profile(9090, 'Robert', True)
    Traceback (most recent call last):
      ...
    StandardError: will cause rollback...
    >>> select('select * from user where id=?', 9090)
    []
     _wrapper N/A N/A N/A args kw N/A N/A _start N/A N/A time time N/A N/A _TransactionCtx N/A N/A N/A func args kw N/A N/A _profiling _start N/A N/A N/A functools wraps func N/A _wrapper N/A _select N/A N/A sql first N/A args N/A N/A  execute select SQL and return unique result or list results. N/A _db_ctx _db_convert N/A cursor None N/A N/A _db_convert ? N/A N/A sql N/A N/A sql replace ? _db_convert N/A N/A _log N/A SQL: %s, ARGS: %s N/A sql args N/A start N/A N/A time time N/A N/A N/A cursor N/A N/A N/A _db_ctx connection cursor N/A N/A N/A cursor execute sql args N/A N/A cursor description N/A N/A names N/A N/A x N/A 0 N/A x N/A cursor description N/A first N/A N/A values N/A N/A cursor fetchone N/A N/A values N/A N/A None N/A N/A Dict names values N/A N/A N/A Dict names x N/A x N/A N/A cursor fetchall N/A N/A cursor N/A N/A N/A N/A cursor close N/A N/A _profiling start sql N/A select_one N/A N/A sql N/A args N/A N/A 
    Execute select SQL and expected one result. 
    If no result found, return None.
    If multiple results found, the first one returned.

    >>> u1 = dict(id=100, name='Alice', email='alice@test.org', passwd='ABC-12345', last_modified=time.time())
    >>> u2 = dict(id=101, name='Sarah', email='sarah@test.org', passwd='ABC-12345', last_modified=time.time())
    >>> insert('user', **u1)
    1
    >>> insert('user', **u2)
    1
    >>> u = select_one('select * from user where id=?', 100)
    >>> u.name
    u'Alice'
    >>> select_one('select * from user where email=?', 'abc@email.com')
    >>> u2 = select_one('select * from user where passwd=? order by email', 'ABC-12345')
    >>> u2.name
    u'Alice'
     N/A N/A _select sql True args N/A with_connection select_int N/A N/A sql N/A args N/A N/A 
    Execute select SQL and expected one int and only one int result. 

    >>> n = update('delete from user')
    >>> u1 = dict(id=96900, name='Ada', email='ada@test.org', passwd='A-12345', last_modified=time.time())
    >>> u2 = dict(id=96901, name='Adam', email='adam@test.org', passwd='A-12345', last_modified=time.time())
    >>> insert('user', **u1)
    1
    >>> insert('user', **u2)
    1
    >>> select_int('select count(*) from user')
    2
    >>> select_int('select count(*) from user where email=?', 'ada@test.org')
    1
    >>> select_int('select count(*) from user where email=?', 'notexist@test.org')
    0
    >>> select_int('select id from user where email=?', 'ada@test.org')
    96900
    >>> select_int('select id, name from user where email=?', 'ada@test.org')
    Traceback (most recent call last):
        ...
    MultiColumnsError: Expect only one column.
     N/A d N/A _select sql True args N/A N/A N/A len d 1 N/A N/A N/A MultiColumnsError Expect only one column. N/A N/A N/A N/A d values N/A 0 N/A with_connection select N/A N/A sql N/A args N/A N/A 
    Execute select SQL and return list or empty list if no result.

    >>> u1 = dict(id=200, name='Wall.E', email='wall.e@test.org', passwd='back-to-earth', last_modified=time.time())
    >>> u2 = dict(id=201, name='Eva', email='eva@test.org', passwd='back-to-earth', last_modified=time.time())
    >>> insert('user', **u1)
    1
    >>> insert('user', **u2)
    1
    >>> L = select('select * from user where id=?', 900900900)
    >>> L
    []
    >>> L = select('select * from user where id=?', 200)
    >>> L[0].email
    u'wall.e@test.org'
    >>> L = select('select * from user where passwd=? order by id desc', 'back-to-earth')
    >>> L[0].name
    u'Eva'
    >>> L[1].name
    u'Wall.E'
     N/A N/A _select sql False args N/A with_connection _update N/A N/A sql args post_fn N/A None N/A N/A _db_ctx _db_convert N/A cursor None N/A N/A _db_convert ? N/A N/A sql N/A N/A sql replace ? _db_convert N/A N/A _log N/A SQL: %s, ARGS: %s N/A sql args N/A start N/A N/A time time N/A N/A N/A cursor N/A N/A N/A _db_ctx connection cursor N/A N/A N/A cursor execute sql args N/A r N/A cursor rowcount N/A N/A N/A _db_ctx transactions 0 N/A N/A N/A _log auto commit N/A N/A N/A N/A _db_ctx connection commit N/A N/A post_fn N/A post_fn N/A r N/A N/A cursor N/A N/A N/A N/A cursor close N/A N/A _profiling start sql N/A with_connection insert N/A N/A table N/A kw N/A N/A 
    Execute insert SQL.

    >>> u1 = dict(id=2000, name='Bob', email='bob@test.org', passwd='bobobob', last_modified=time.time())
    >>> insert('user', **u1)
    1
    >>> u2 = select_one('select * from user where id=?', 2000)
    >>> u2.name
    u'Bob'
    >>> insert('user', **u2)
    Traceback (most recent call last):
      ...
    IntegrityError: UNIQUE constraint failed: user.id
     N/A N/A cols args N/A zip N/A N/A kw iteritems N/A sql N/A insert into %s (%s) values (%s) N/A table N/A N/A , join cols N/A N/A , join N/A _db_convert N/A i N/A range N/A len cols N/A N/A _update sql args N/A update N/A N/A sql N/A args N/A N/A 
    Execute update SQL.

    >>> u1 = dict(id=1000, name='Michael', email='michael@test.org', passwd='123456', last_modified=time.time())
    >>> insert('user', **u1)
    1
    >>> u2 = select_one('select * from user where id=?', 1000)
    >>> u2.email
    u'michael@test.org'
    >>> u2.passwd
    u'123456'
    >>> update('update user set email=?, passwd=? where id=?', 'michael@example.org', '654321', 1000)
    1
    >>> u3 = select_one('select * from user where id=?', 1000)
    >>> u3.email
    u'michael@example.org'
    >>> u3.passwd
    u'654321'
     N/A N/A _update sql args N/A update_kw N/A N/A table where N/A args kw N/A N/A 
    Execute update SQL by table, where, args and kw.

    >>> u1 = dict(id=900900, name='Maya', email='maya@test.org', passwd='MAYA', last_modified=time.time())
    >>> insert('user', **u1)
    1
    >>> u2 = select_one('select * from user where id=?', 900900)
    >>> u2.email
    u'maya@test.org'
    >>> u2.passwd
    u'MAYA'
    >>> update_kw('user', 'id=?', 900900, name='Kate', email='kate@example.org')
    1
    >>> u3 = select_one('select * from user where id=?', 900900)
    >>> u3.name
    u'Kate'
    >>> u3.email
    u'kate@example.org'
    >>> u3.passwd
    u'MAYA'
     N/A N/A N/A len kw 0 N/A N/A N/A ValueError No kw args. N/A sqls N/A update table set N/A params N/A N/A updates N/A N/A N/A k v N/A N/A kw iteritems N/A N/A N/A N/A updates append N/A %s=? k N/A N/A N/A params append v N/A N/A N/A sqls append N/A N/A ,  join updates N/A N/A N/A sqls append where N/A N/A N/A sqls append where N/A sql N/A N/A join sqls N/A N/A N/A params extend args N/A N/A update sql params N/A init_connector N/A N/A func_connect convert_char N/A %s N/A N/A _db_connect _db_convert N/A N/A _log init connector... N/A _db_connect func_connect N/A _db_convert convert_char N/A init N/A N/A db_type db_schema db_host db_port db_user db_password db_driver N/A 0 None None None db_args N/A N/A 
    Initialize database.

    Args:
      db_type: db type, 'mysql', 'sqlite3'.
      db_schema: schema name.
      db_host: db host.
      db_user: username.
      db_password: password.
      db_driver: db driver, default to None.
      **db_args: other parameters, e.g. use_unicode=True
     N/A _db_connect _db_convert N/A N/A db_type mysql N/A N/A N/A _log init mysql... N/A default_args N/A host port user password database use_unicode charset collation 127.0.0.1 3306 db_schema True utf8 utf8_general_ci N/A mysql.connector N/A N/A k v N/A N/A default_args iteritems N/A N/A N/A db_args N/A k N/A N/A db_args get k v N/A _db_connect N/A N/A N/A N/A N/A N/A N/A mysql connector connect db_args N/A _db_convert %s N/A N/A N/A db_type sqlite3 N/A N/A N/A _log init sqlite3... N/A sqlite3 N/A _db_connect N/A N/A N/A N/A N/A N/A sqlite3 connect db_schema N/A N/A N/A DBError N/A Unsupported db: %s db_type N/A Field N/A object N/A N/A _count 0 __init__ N/A N/A self N/A kw N/A N/A N/A self name N/A N/A kw get name None N/A N/A self _default N/A N/A kw get default None N/A N/A self primary_key N/A N/A kw get primary_key False N/A N/A self nullable N/A N/A kw get nullable False N/A N/A self updatable N/A N/A kw get updatable True N/A N/A self insertable N/A N/A kw get insertable True N/A N/A self ddl N/A N/A kw get ddl N/A N/A self _order N/A Field _count N/A N/A Field _count N/A N/A Field _count 1 N/A default N/A N/A self N/A N/A N/A d N/A self _default N/A N/A N/A callable d N/A d d N/A property __str__ N/A N/A self N/A N/A N/A s N/A N/A <%s:%s,%s,default(%s), N/A N/A N/A self __class__ __name__ N/A self name N/A self ddl N/A self default N/A N/A N/A self nullable N/A N/A s append N N/A N/A N/A self updatable N/A N/A s append U N/A N/A N/A self insertable N/A N/A s append I N/A N/A N/A s append > N/A N/A N/A join s N/A N/A StringField N/A Field N/A __init__ N/A N/A self N/A kw N/A N/A N/A kw N/A default N/A N/A kw get default N/A N/A kw N/A ddl N/A N/A kw get ddl varchar(255) N/A N/A N/A N/A super StringField self __init__ kw N/A N/A IntegerField N/A Field N/A __init__ N/A N/A self N/A kw N/A N/A N/A N/A default kw N/A N/A N/A kw N/A default 0 N/A N/A N/A ddl kw N/A N/A N/A kw N/A ddl bigint N/A N/A N/A N/A super IntegerField self __init__ kw N/A N/A FloatField N/A Field N/A __init__ N/A N/A self N/A kw N/A N/A N/A kw N/A default N/A N/A kw get default 0.0 N/A N/A kw N/A ddl N/A N/A kw get ddl real N/A N/A N/A N/A super FloatField self __init__ kw N/A N/A BooleanField N/A Field N/A __init__ N/A N/A self N/A kw N/A N/A N/A kw N/A default N/A N/A kw get default False N/A N/A kw N/A ddl N/A N/A kw get ddl bool N/A N/A N/A N/A super BooleanField self __init__ kw N/A N/A DateTimeField N/A Field N/A N/A N/A TextField N/A Field N/A __init__ N/A N/A self N/A kw N/A N/A N/A kw N/A default N/A N/A kw get default N/A N/A kw N/A ddl N/A N/A kw get ddl text N/A N/A N/A N/A super TextField self __init__ kw N/A N/A BlobField N/A Field N/A __init__ N/A N/A self N/A kw N/A N/A N/A kw N/A default N/A N/A kw get default N/A N/A kw N/A ddl N/A N/A kw get ddl blob N/A N/A N/A N/A super BlobField self __init__ kw N/A N/A VersionField N/A Field N/A __init__ N/A N/A self name N/A None N/A N/A N/A N/A N/A super VersionField self __init__ name name default 0 ddl bigint N/A N/A N/A _triggers N/A post_get_by_id pre_insert post_insert pre_update post_update pre_delete post_delete _gen_sql N/A N/A table_name mappings N/A N/A N/A pk None N/A sql N/A N/A -- generating SQL for %s... table_name N/A create table %s ( table_name N/A f N/A sorted N/A N/A mappings values N/A N/A N/A x y N/A N/A cmp N/A x _order N/A y _order N/A N/A N/A N/A hasattr f ddl N/A N/A N/A StandardError N/A no ddl in field "%s". n N/A ddl N/A f ddl N/A nullable N/A f nullable N/A N/A f primary_key N/A N/A pk N/A f name N/A N/A N/A sql append N/A N/A nullable N/A   %s %s, N/A N/A f name ddl N/A   %s %s not null, N/A N/A f name ddl N/A N/A N/A sql append N/A   primary key(%s) pk N/A N/A N/A sql append ); N/A N/A N/A join sql N/A ModelMetaclass N/A type N/A N/A 
    Metaclass for model objects.
     __new__ N/A N/A cls name bases attrs N/A N/A N/A N/A name Model N/A N/A N/A N/A type __new__ cls name bases attrs N/A N/A N/A hasattr cls subclasses N/A N/A N/A cls subclasses N/A N/A N/A N/A name N/A cls subclasses N/A N/A N/A N/A cls subclasses N/A name name N/A N/A N/A N/A logging warning N/A Redefine class: %s name N/A N/A N/A logging info N/A Scan ORMapping %s... name N/A mappings N/A dict N/A primary_key None N/A N/A k v N/A N/A attrs iteritems N/A N/A N/A isinstance v Field N/A N/A N/A N/A v name N/A N/A N/A v name k N/A N/A N/A logging info N/A Found mapping: %s => %s N/A k v N/A N/A v primary_key N/A N/A primary_key N/A N/A N/A TypeError N/A Cannot define more than 1 primary key in class: %s name N/A N/A v updatable N/A N/A N/A N/A logging warning NOTE: change primary key to non-updatable. N/A N/A v updatable False N/A N/A v nullable N/A N/A N/A N/A logging warning NOTE: change primary key to non-nullable. N/A N/A v nullable False N/A primary_key v N/A N/A mappings N/A k v N/A N/A primary_key N/A N/A N/A TypeError N/A Primary key not defined in class: %s name N/A k N/A N/A mappings iterkeys N/A N/A N/A N/A attrs pop k N/A N/A N/A __table__ attrs N/A N/A N/A attrs N/A __table__ N/A N/A name lower N/A N/A attrs N/A __mappings__ mappings N/A N/A attrs N/A __primary_key__ primary_key _sql N/A N/A self N/A N/A N/A N/A _gen_sql N/A attrs N/A __table__ mappings N/A N/A N/A attrs N/A __sql__ _sql N/A trigger _triggers N/A N/A N/A N/A trigger attrs N/A N/A N/A attrs N/A trigger None N/A N/A N/A type __new__ cls name bases attrs N/A N/A Model N/A dict N/A N/A 
    Base class for ORM.

    >>> class User(Model):
    ...     __table__ = 'USER'
    ...     id = IntegerField(primary_key=True)
    ...     name = StringField()
    ...     email = StringField(updatable=False)
    ...     passwd = StringField(default=lambda: '******')
    ...     last_modified = FloatField()
    ...     def pre_insert(self):
    ...         self.last_modified = time.time()
    >>> u = User(id=10190, name='Michael', email='orm@db.org')
    >>> r = u.insert()
    >>> u.email
    'orm@db.org'
    >>> u.passwd
    '******'
    >>> u.last_modified > (time.time() - 2)
    True
    >>> f = User.get_by_id(10190)
    >>> f.name
    u'Michael'
    >>> f.email
    u'orm@db.org'
    >>> f.email = 'changed@db.org'
    >>> r = f.update() # change email but email is non-updatable!
    >>> g = User.get_by_id(10190)
    >>> g.email
    u'orm@db.org'
    >>> r = g.delete()
    >>> len(select('select * from user where id=10190'))
    0
     N/A __metaclass__ ModelMetaclass __init__ N/A N/A self N/A kw N/A N/A N/A N/A N/A super Model self __init__ kw N/A __getattr__ N/A N/A self key N/A N/A N/A N/A N/A N/A self N/A key N/A N/A N/A KeyError N/A N/A N/A AttributeError N/A 'Dict' object has no attribute '%s' key N/A __setattr__ N/A N/A self key value N/A N/A N/A N/A self N/A key value N/A get_by_id N/A N/A cls pk N/A N/A N/A d N/A select_one N/A select * from %s where %s=? N/A N/A cls __table__ N/A N/A cls __primary_key__ name pk N/A N/A d N/A cls d None N/A classmethod select_one N/A N/A cls where N/A args N/A N/A 
        Find by where clause and return one result. If multiple results found, 
        only the first one returned. If no result found, return None.
         N/A d N/A where N/A select_one N/A select * from %s %s N/A N/A cls __table__ where args N/A select_one N/A select * from %s N/A cls __table__ N/A N/A d N/A cls d None N/A classmethod select N/A N/A cls where N/A args N/A N/A 
        Find by where clause and return list.
         N/A L N/A where N/A select N/A select * from %s %s N/A N/A cls __table__ where args N/A select N/A select * from %s N/A cls __table__ N/A N/A N/A cls d N/A d L N/A classmethod count N/A N/A cls where N/A args N/A N/A 
        Find by 'select count(*) from where ... ' and return one and only one result.
         N/A N/A where N/A select_int N/A select count(%s) from %s %s N/A N/A N/A cls __primary_key__ name N/A cls __table__ where args N/A select_int N/A select count(%s) from %s N/A N/A N/A cls __primary_key__ name N/A cls __table__ N/A classmethod update N/A N/A self N/A N/A N/A N/A N/A self pre_update N/A N/A self pre_update N/A kw N/A N/A N/A k v N/A N/A N/A self __mappings__ iteritems N/A N/A N/A v updatable N/A N/A N/A hasattr self k N/A N/A arg N/A getattr self k N/A N/A arg N/A v default N/A N/A setattr self k arg N/A N/A kw N/A k arg N/A pk N/A N/A self __primary_key__ name N/A N/A update_kw N/A self __table__ N/A %s=? pk N/A getattr self pk kw N/A self N/A delete N/A N/A self N/A N/A N/A N/A N/A self pre_delete N/A N/A self pre_delete N/A pk N/A N/A self __primary_key__ name N/A args N/A N/A getattr self pk N/A N/A _update N/A delete from %s where %s=? N/A N/A self __table__ pk args N/A self N/A insert N/A N/A self N/A N/A N/A N/A N/A self pre_insert N/A N/A self pre_insert N/A fields N/A N/A params N/A N/A args N/A N/A N/A k v N/A N/A N/A self __mappings__ iteritems N/A N/A N/A v insertable N/A N/A N/A N/A fields append N/A v name N/A N/A N/A params append ? N/A arg N/A getattr self k None N/A N/A arg None N/A N/A arg N/A v default N/A N/A setattr self k arg N/A N/A N/A args append arg N/A N/A _update N/A insert into %s (%s) values (%s) N/A N/A self __table__ N/A N/A , join fields N/A N/A , join params args N/A self N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A logging basicConfig level N/A logging DEBUG N/A N/A N/A N/A sys path append . N/A dbpath N/A N/A N/A os path join N/A N/A N/A os path dirname N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ doc_test.sqlite3.db N/A dbpath N/A N/A N/A N/A os path isfile dbpath N/A N/A N/A N/A os remove dbpath N/A N/A init sqlite3 dbpath N/A N/A update create table user (id int primary key, name text, email text, passwd text, last_modified real) N/A doctest N/A N/A N/A doctest testmod N/A N/A N/A os remove dbpath