sql

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("operation unsupported by the underlying driver")

ErrUnsupported is an error returned when the underlying driver doesn't provide a given function.

Functions

func WrapDriver

func WrapDriver(d driver.Driver, options ...Option) driver.Driver

Wraps the current sql driver to add instrumentation

Types

type Option

type Option func(*instrumentedDriver)

func WithStatements

func WithStatements() Option

Enable statement instrumentation

Source Files

  • conn.go
  • driver.go
  • stmt.go
  • tx.go
  • vendor.go
  • vendor_mysql.go
  • vendor_postgres.go

Jump to

Keyboard shortcuts

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