tracer

package
v1.296.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor

type Interceptor struct {
	// contains filtered or unexported fields
}

Interceptor for tracer.

func NewInterceptor

func NewInterceptor(driver string, tracer trace.Tracer, interceptor sqlmw.Interceptor) *Interceptor

NewInterceptor for tracer.

func (*Interceptor) ConnBeginTx

func (i *Interceptor) ConnBeginTx(ctx context.Context, conn driver.ConnBeginTx, txOpts driver.TxOptions) (context.Context, driver.Tx, error)

func (*Interceptor) ConnExecContext

func (i *Interceptor) ConnExecContext(ctx context.Context, conn driver.ExecerContext, query string, args []driver.NamedValue) (driver.Result, error)

func (*Interceptor) ConnPing

func (i *Interceptor) ConnPing(ctx context.Context, conn driver.Pinger) error

func (*Interceptor) ConnPrepareContext

func (i *Interceptor) ConnPrepareContext(ctx context.Context, conn driver.ConnPrepareContext, query string) (context.Context, driver.Stmt, error)

func (*Interceptor) ConnQueryContext

func (i *Interceptor) ConnQueryContext(ctx context.Context, conn driver.QueryerContext, query string, args []driver.NamedValue) (context.Context, driver.Rows, error)

func (*Interceptor) ConnectorConnect

func (i *Interceptor) ConnectorConnect(ctx context.Context, connect driver.Connector) (driver.Conn, error)

func (*Interceptor) ResultLastInsertId

func (i *Interceptor) ResultLastInsertId(res driver.Result) (int64, error)

func (*Interceptor) ResultRowsAffected

func (i *Interceptor) ResultRowsAffected(res driver.Result) (int64, error)

func (*Interceptor) RowsClose

func (i *Interceptor) RowsClose(ctx context.Context, rows driver.Rows) error

func (*Interceptor) RowsNext

func (i *Interceptor) RowsNext(ctx context.Context, rows driver.Rows, dest []driver.Value) error

func (*Interceptor) StmtClose

func (i *Interceptor) StmtClose(ctx context.Context, stmt driver.Stmt) error

func (*Interceptor) StmtExecContext

func (i *Interceptor) StmtExecContext(ctx context.Context, stmt driver.StmtExecContext, query string, args []driver.NamedValue) (driver.Result, error)

func (*Interceptor) StmtQueryContext

func (i *Interceptor) StmtQueryContext(ctx context.Context, stmt driver.StmtQueryContext, query string, args []driver.NamedValue) (context.Context, driver.Rows, error)

func (*Interceptor) TxCommit

func (i *Interceptor) TxCommit(ctx context.Context, tx driver.Tx) error

func (*Interceptor) TxRollback

func (i *Interceptor) TxRollback(ctx context.Context, tx driver.Tx) error

Jump to

Keyboard shortcuts

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