Package gozerbot :: Module db :: Class Db
[hide private]
[frames] | no frames]

Class Db

source code

object --+
         |
        Db

this class implements an database connection. it connects to the database on initialisation.

Instance Methods [hide private]
 
__init__(self, doconnect=True, dbtype=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
connect(*args, **kwargs)
the locked function
source code
 
reconnect(self)
reconnect to the mysql server
source code
 
execute(*args, **kwargs)
the locked function
source code
 
cursor(self)
return cursor to the database
source code
 
commit(self)
do a commit on the datase
source code
 
ping(self)
do a ping
source code
 
close(self)
close database
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, doconnect=True, dbtype=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

connect(*args, **kwargs)

source code 

the locked function

Decorators:
  • @dblocked

execute(*args, **kwargs)

source code 

the locked function

Decorators:
  • @dblocked