sqlobject

SQLObject 0.10


Attributes

a DATETIME_IMPLEMENTATION

'datetime'

a MXDATETIME_IMPLEMENTATION

'mxDateTime'

a conftest

None

a const

<sqlobject.sqlbuilder.ConstantSpace instance at 0x97830ec>

a datetime_available

True

a default_datetime_implementation

'datetime'

a func

<sqlobject.sqlbuilder.ConstantSpace instance at 0x97830ec>

a mxdatetime_available

True

a sqlhub

This object serves as a hub for connections, so that you can pass in a ConnectionHub to a SQLObject subclass as though it was a connection, but actually bind a real database connection later. You can also bind connections on a per-thread basis.

You must hang onto the original ConnectionHub instance, as you cannot retrieve it again from the class or instance.

To use the hub, do something like:

hub = ConnectionHub()
class MyClass(SQLObject):
    _connection = hub

hub.threadConnection = connectionFromURI('...')

a wsgi_middleware

None

Functions

f FirebirdConnection(*args, **kw) ...

f MySQLConnection(*args, **kw) ...

f PostgresConnection(*args, **kw) ...

f SQLiteConnection(*args, **kw) ...

f SybaseConnection(*args, **kw) ...

f MaxdbConnection(*args, **kw) ...

f MSSQLConnection(*args, **kw) ...

Modules

The sqlobject module exposes 29 submodules:

boundattributes
Bound attributes are attributes that are bound to a specific class and a specific name. In SQLObject a typical example is a column object, which knows its name and class.
cache
This implements the instance caching in SQLObject. Caching is relatively aggressive. All objects are retained so long as they are in memory, by keeping weak references to objects. We also keep other objects in a cache that doesn't allow them to be garbage collected (unless caching is turned off).
classregistry
classresolver.py
2 February 2004, Ian Bicking <ianb@colorstudy.com>
col
Col -- SQLObject columns
constraints
Constraints
converters
dbconnection
dberrors
dberrors: database exception classes for SQLObject.
declarative
Declarative objects.
events
firebird
include
index
inheritance
joins
main
manager
maxdb
mssql
mysql
postgres
sqlbuilder
sqlite
sresults
styles
sybase
util
versioning
views

See the source for more information.