sqlchaos

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(driverName string, original driver.Driver, mgr *config.Manager)

Types

type WrapperConn

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

func (*WrapperConn) Begin

func (c *WrapperConn) Begin() (driver.Tx, error)

func (*WrapperConn) BeginTx added in v1.5.1

func (c *WrapperConn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)

func (*WrapperConn) Close

func (c *WrapperConn) Close() error

func (*WrapperConn) ExecContext

func (c *WrapperConn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)

func (*WrapperConn) Prepare

func (c *WrapperConn) Prepare(query string) (driver.Stmt, error)

func (*WrapperConn) PrepareContext added in v1.5.1

func (c *WrapperConn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)

func (*WrapperConn) QueryContext

func (c *WrapperConn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)

type WrapperConnector added in v1.6.0

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

func (*WrapperConnector) Connect added in v1.6.0

func (c *WrapperConnector) Connect(ctx context.Context) (driver.Conn, error)

func (*WrapperConnector) Driver added in v1.6.0

func (c *WrapperConnector) Driver() driver.Driver

type WrapperDriver

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

func (*WrapperDriver) Open

func (d *WrapperDriver) Open(name string) (driver.Conn, error)

func (*WrapperDriver) OpenConnector added in v1.6.0

func (d *WrapperDriver) OpenConnector(name string) (driver.Connector, error)

type WrapperStmt added in v1.5.1

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

func (*WrapperStmt) Close added in v1.5.1

func (s *WrapperStmt) Close() error

func (*WrapperStmt) Exec added in v1.5.1

func (s *WrapperStmt) Exec(args []driver.Value) (driver.Result, error)

func (*WrapperStmt) ExecContext added in v1.5.1

func (s *WrapperStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)

func (*WrapperStmt) NumInput added in v1.5.1

func (s *WrapperStmt) NumInput() int

func (*WrapperStmt) Query added in v1.5.1

func (s *WrapperStmt) Query(args []driver.Value) (driver.Rows, error)

func (*WrapperStmt) QueryContext added in v1.5.1

func (s *WrapperStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)

type WrapperTx added in v1.8.0

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

func (*WrapperTx) Commit added in v1.8.0

func (t *WrapperTx) Commit() error

func (*WrapperTx) Rollback added in v1.8.0

func (t *WrapperTx) Rollback() error

Jump to

Keyboard shortcuts

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