Documentation ¶
Overview ¶
This example shows how tds.EEDHooks can be utilized to record and inspect a number of tds.EEDPackages received during a transaction.
go-ase supports three ways to add hooks:
- driver-level
- connector-level
- connection-level
Hooks at the driver-level receive EEDPackages from all connections and are added by calling ase.AddEEDHooks.
Connector-level hooks receive EEDPackages from all connections opened through the connector they're attached to and are added by passing them to ase.NewConnectorWithHooks.
Connection-level hooks receive EEDPackages only from their own connection and are added by passing them to ase.NewConnWithHooks.
This example will explore driver- and connector-level hooks.
Click to show internal directories.
Click to hide internal directories.