SQLAlchemy

Initialization and configuration for flask_sqlalchemy.

class invenio.ext.sqlalchemy.SQLAlchemy(app=None, use_native_unicode=True, session_options=None)

Database object.

apply_driver_hacks(app, info, options)

Called before engine creation.

init_app(app)

Init application.

schemadiff(excludeTables=None)

Generate a schema diff.

invenio.ext.sqlalchemy.autocommit_on_checkin(dbapi_con, con_record)

Call autocommit on raw mysql connection for fixing bug in MySQL 5.5.

invenio.ext.sqlalchemy.compile_text(element, compiler, **kw)

Redefine VARBINARY filed type for PostgreSQL.

invenio.ext.sqlalchemy.db = <SQLAlchemy engine=mysql://invenio:***@db:3306/invenio>

Provides access to SQLAlchemy instance.

invenio.ext.sqlalchemy.setup_app(app)

Setup SQLAlchemy extension.