firebird.driver.hooks¶
This module contains firebird-driver hooks. Uses hook mechanism from firebird-base package.
Imports from firebird.base.hooks: register_class,
get_callbacks, add_hook and
hook_manager.
Enums¶
- class firebird.driver.hooks.APIHook(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
EnumHooks related to the loading and initialization of the underlying Firebird client API.
- LOADED = 1¶
Called after the Firebird client library has been successfully loaded and basic interfaces obtained.
- class firebird.driver.hooks.ConnectionHook(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
EnumHooks related to the lifecycle of a database connection (attachment, detachment, dropping).
- ATTACHED = 2¶
Called after a database connection (attachment) has been successfully established.
- ATTACH_REQUEST = 1¶
Called before attempting to attach to a database, allows interception or modification.
- CLOSED = 4¶
Called after a database connection has been successfully closed (detached).
- DETACH_REQUEST = 3¶
Called before attempting to detach from a database, allows cancellation.
- DROPPED = 5¶
Called after a database has been successfully dropped.