Access to the database is made available through connection objects. The web.database module provides the following constructor for these:
adapter,[database,][user,][password,][host,][port,][socket,][**params]) |
Constructor for creating a connection to a database. Returns a Connection
object. Not all databases will use all the parameters, but databases should use the parameters specified and not abbreviated versions. Any more complex parameters are passed directly to the driver's connect()
method.
'MySQL'
, 'PySQLite'
or 'web.database '
but it is hoped that most database drivers will eventually be supported.
web.database implementers will usually override the method makeConnection()
to provide this functionality as is clear from the source code.
These module globals are also be defined:
version
version_info
sys.version_info
for example something like (2,4,0,rc1,'beta')