recorder

command
v0.0.0-...-e06baaf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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:

  1. driver-level
  2. connector-level
  3. 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL