Skip to content

sqlalchemy_plugin

Database connectivity and transaction management for the application.

SQLAlchemyHealthCheck

SQLAlchemyHealthCheck()

Bases: AbstractHealthCheck

SQLAlchemy health check.

ready async

ready()

Perform a health check on the database.

Returns:

Type Description
bool

True if healthy.

before_send_handler async

before_send_handler(message, _, scope)

Inspect status of response and commit, or rolls back.

Parameters:

Name Type Description Default
message Message

ASGI message

required
_ State required
scope Scope

ASGI scope

required