Warning
This documentation does not refer to the most recent version of Pylons. Current Documentation
The database module is accessible via the pylons module.
This module enables easy use of an SQLObject database by providing an auto-connect hub that will utilize the db uri string given in the Paste conf file called sqlobject.dburi
It is based heavily (if not 99%) on the TurboGears file of the same name.
Connects to the database once per thread.
The AutoConnectHub also provides convenient methods for managing transactions.
This class contains 12 members.
Transparently proxies to an AutoConnectHub for the URI that is appropriate for this package. A package URI is configured via "packagename.dburi" in the global CherryPy settings. If there is no package DB URI configured, the default (provided by "sqlobject.dburi") is used.
The hub is not instantiated until an attempt is made to use the database.
This class contains 4 members.
See the source for more information.