Convenient access to an SQLObject or SQLAlchemy managed database.
|
|
get_engine()
Retrieve the engine based on the current configuration. |
source code
|
|
|
|
create_session()
Create a session that uses the engine from thread-local metadata. |
source code
|
|
|
|
mapper(*args,
**kwargs)
return a mapper() function which associates this ScopedSession with
the Mapper. |
|
|
|
|
bind_metadata()
Retrieve the engine based on the current configuration. |
source code
|
|
|
|
bind_meta_data()
Retrieve the engine based on the current configuration. |
source code
|
|
|
|
|
|
|
set_db_uri(dburi,
package=None)
Sets the database URI to use either globally or for a specific
package. |
source code
|
|
|
|
commit_all()
Commits the transactions in all registered hubs (for this thread). |
source code
|
|
|
|
rollback_all()
Rollback the transactions in all registered hubs (for this thread). |
source code
|
|
|
|
end_all()
End the transactions in all registered hubs (for this thread). |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
make_sa_transaction(session)
Create a new transaction in an SA session. |
source code
|
|
|
|
sa_transaction_active(transaction)
Check whether SA transaction is still active. |
source code
|
|
|
|
so_to_dict(sqlobj)
Convert SQLObject to a dictionary based on columns. |
source code
|
|
|
|
|
|
|
|