The nova.db.sqlalchemy.session Module

Session Handling for SQLAlchemy backend.

add_regexp_listener(dbapi_con, con_record)

Add REGEXP function to sqlite connections.

debug_mysql_do_query()

Return a debug version of MySQLdb.cursors._do_query

get_engine()

Return a SQLAlchemy engine.

get_maker(engine, autocommit=True, expire_on_commit=False)

Return a SQLAlchemy sessionmaker using the given engine.

get_session(autocommit=True, expire_on_commit=False)

Return a SQLAlchemy session.

is_db_connection_error(args)

Return True if error in connecting to db.

ping_listener(dbapi_conn, connection_rec, connection_proxy)

Ensures that MySQL connections checked out of the pool are alive.

Borrowed from: http://groups.google.com/group/sqlalchemy/msg/a4ce563d802c929f

synchronous_switch_listener(dbapi_conn, connection_rec)

Switch sqlite connections to non-synchronous mode

Previous topic

The nova.db.sqlalchemy.models Module

Next topic

The nova.exception Module

This Page