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¶
firebird.driver.hooks.APIHook
¶
firebird.driver.hooks.ConnectionHook
¶
Bases: Enum
Hooks related to the lifecycle of a database connection (attachment, detachment, dropping).
Source code in firebird/driver/hooks.py
ATTACHED
class-attribute
instance-attribute
¶
Called after a database connection (attachment) has been successfully established.
ATTACH_REQUEST
class-attribute
instance-attribute
¶
Called before attempting to attach to a database, allows interception or modification.
CLOSED
class-attribute
instance-attribute
¶
Called after a database connection has been successfully closed (detached).
DETACH_REQUEST
class-attribute
instance-attribute
¶
Called before attempting to detach from a database, allows cancellation.
DROPPED
class-attribute
instance-attribute
¶
Called after a database has been successfully dropped.