aws_xray_sdk.ext.flask_sqlalchemy.query

Module Contents

class XRayBaseQuery

Bases:flask_sqlalchemy.BaseQuery

__bases__
class XRaySignallingSession(db, autocommit=False, autoflush=True, **options)

Bases:aws_xray_sdk.ext.sqlalchemy.query.XRaySession

New in version 2.0.

New in version 2.1.

The signalling session is the default session that Flask-SQLAlchemy uses. It extends the default session system with bind selection and modification tracking. If you want to use a different session you can override the SQLAlchemy.create_session() function. The binds option was added, which allows a session to be joined to an external transaction.

get_bind(self, mapper=None, clause=None)
class XRayFlaskSqlAlchemy(app=None, use_native_unicode=True, session_options=None, metadata=None, query_class=XRayBaseQuery, model_class=Model)

Bases:flask_sqlalchemy.SQLAlchemy

create_session(self, options)