databasesqlwrapper

package
v0.0.0-...-b01301b Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnwrapConn

func UnwrapConn(w driver.Conn) driver.Conn

func UnwrapConnector

func UnwrapConnector(w driver.Connector) driver.Connector

func UnwrapDriver

func UnwrapDriver(w driver.Driver) driver.Driver

func UnwrapRows

func UnwrapRows(w driver.Rows) driver.Rows

func UnwrapStmt

func UnwrapStmt(w driver.Stmt) driver.Stmt

func UnwrapTx

func UnwrapTx(w driver.Tx) driver.Tx

func WrapConn

func WrapConn(wrapped driver.Conn, interceptor ConnInterceptor) driver.Conn

func WrapConnector

func WrapConnector(wrapped driver.Connector, interceptor ConnectorInterceptor) driver.Connector

func WrapDriver

func WrapDriver(wrapped driver.Driver, interceptor DriverInterceptor) driver.Driver

func WrapRows

func WrapRows(wrapped driver.Rows, interceptor RowsInterceptor) driver.Rows

func WrapStmt

func WrapStmt(wrapped driver.Stmt, interceptor StmtInterceptor) driver.Stmt

func WrapTx

func WrapTx(wrapped driver.Tx, interceptor TxInterceptor) driver.Tx

Types

type ConnInterceptor

type ConnInterceptor struct {
	Begin           func(Conn_Begin) Conn_Begin
	Close           func(Conn_Close) Conn_Close
	Prepare         func(Conn_Prepare) Conn_Prepare
	BeginTx         func(Conn_BeginTx) Conn_BeginTx
	PrepareContext  func(Conn_PrepareContext) Conn_PrepareContext
	Exec            func(Conn_Exec) Conn_Exec
	ExecContext     func(Conn_ExecContext) Conn_ExecContext
	CheckNamedValue func(Conn_CheckNamedValue) Conn_CheckNamedValue
	Ping            func(Conn_Ping) Conn_Ping
	Query           func(Conn_Query) Conn_Query
	QueryContext    func(Conn_QueryContext) Conn_QueryContext
	ResetSession    func(Conn_ResetSession) Conn_ResetSession
	IsValid         func(Conn_IsValid) Conn_IsValid
}

type ConnUnwrapper

type ConnUnwrapper interface {
	UnwrapConn() driver.Conn
}

type ConnWrapper

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

func (*ConnWrapper) Begin

func (w *ConnWrapper) Begin() (driver.Tx, error)

func (*ConnWrapper) BeginTx

func (w *ConnWrapper) BeginTx(a0 context.Context, a1 driver.TxOptions) (driver.Tx, error)

func (*ConnWrapper) CheckNamedValue

func (w *ConnWrapper) CheckNamedValue(a0 *driver.NamedValue) error

func (*ConnWrapper) Close

func (w *ConnWrapper) Close() error

func (*ConnWrapper) Exec

func (w *ConnWrapper) Exec(a0 string, a1 []driver.Value) (driver.Result, error)

func (*ConnWrapper) ExecContext

func (w *ConnWrapper) ExecContext(a0 context.Context, a1 string, a2 []driver.NamedValue) (driver.Result, error)

func (*ConnWrapper) IsValid

func (w *ConnWrapper) IsValid() bool

func (*ConnWrapper) Ping

func (w *ConnWrapper) Ping(a0 context.Context) error

func (*ConnWrapper) Prepare

func (w *ConnWrapper) Prepare(a0 string) (driver.Stmt, error)

func (*ConnWrapper) PrepareContext

func (w *ConnWrapper) PrepareContext(a0 context.Context, a1 string) (driver.Stmt, error)

func (*ConnWrapper) Query

func (w *ConnWrapper) Query(a0 string, a1 []driver.Value) (driver.Rows, error)

func (*ConnWrapper) QueryContext

func (w *ConnWrapper) QueryContext(a0 context.Context, a1 string, a2 []driver.NamedValue) (driver.Rows, error)

func (*ConnWrapper) ResetSession

func (w *ConnWrapper) ResetSession(a0 context.Context) error

func (*ConnWrapper) UnwrapConn

func (w *ConnWrapper) UnwrapConn() driver.Conn

type Conn_Begin

type Conn_Begin func() (driver.Tx, error)

type Conn_BeginTx

type Conn_BeginTx func(context.Context, driver.TxOptions) (driver.Tx, error)

type Conn_CheckNamedValue

type Conn_CheckNamedValue func(*driver.NamedValue) error

type Conn_Close

type Conn_Close func() error

type Conn_Exec

type Conn_Exec func(string, []driver.Value) (driver.Result, error)

type Conn_ExecContext

type Conn_ExecContext func(context.Context, string, []driver.NamedValue) (driver.Result, error)

type Conn_IsValid

type Conn_IsValid func() bool

type Conn_Ping

type Conn_Ping func(context.Context) error

type Conn_Prepare

type Conn_Prepare func(string) (driver.Stmt, error)

type Conn_PrepareContext

type Conn_PrepareContext func(context.Context, string) (driver.Stmt, error)

type Conn_Query

type Conn_Query func(string, []driver.Value) (driver.Rows, error)

type Conn_QueryContext

type Conn_QueryContext func(context.Context, string, []driver.NamedValue) (driver.Rows, error)

type Conn_ResetSession

type Conn_ResetSession func(context.Context) error

type ConnectorInterceptor

type ConnectorInterceptor struct {
	Connect func(Connector_Connect) Connector_Connect
	Driver  func(Connector_Driver) Connector_Driver
	Close   func(Connector_Close) Connector_Close
}

type ConnectorUnwrapper

type ConnectorUnwrapper interface {
	UnwrapConnector() driver.Connector
}

type ConnectorWrapper

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

func (*ConnectorWrapper) Close

func (w *ConnectorWrapper) Close() error

func (*ConnectorWrapper) Connect

func (w *ConnectorWrapper) Connect(a0 context.Context) (driver.Conn, error)

func (*ConnectorWrapper) Driver

func (w *ConnectorWrapper) Driver() driver.Driver

func (*ConnectorWrapper) UnwrapConnector

func (w *ConnectorWrapper) UnwrapConnector() driver.Connector

type Connector_Close

type Connector_Close func() error

type Connector_Connect

type Connector_Connect func(context.Context) (driver.Conn, error)

type Connector_Driver

type Connector_Driver func() driver.Driver

type DriverInterceptor

type DriverInterceptor struct {
	Open          func(Driver_Open) Driver_Open
	OpenConnector func(Driver_OpenConnector) Driver_OpenConnector
}

type DriverUnwrapper

type DriverUnwrapper interface {
	UnwrapDriver() driver.Driver
}

type DriverWrapper

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

func (*DriverWrapper) Open

func (w *DriverWrapper) Open(a0 string) (driver.Conn, error)

func (*DriverWrapper) OpenConnector

func (w *DriverWrapper) OpenConnector(a0 string) (driver.Connector, error)

func (*DriverWrapper) UnwrapDriver

func (w *DriverWrapper) UnwrapDriver() driver.Driver

type Driver_Open

type Driver_Open func(string) (driver.Conn, error)

type Driver_OpenConnector

type Driver_OpenConnector func(string) (driver.Connector, error)

type RowsInterceptor

type RowsInterceptor struct {
	Close                      func(Rows_Close) Rows_Close
	Columns                    func(Rows_Columns) Rows_Columns
	Next                       func(Rows_Next) Rows_Next
	ColumnTypeDatabaseTypeName func(Rows_ColumnTypeDatabaseTypeName) Rows_ColumnTypeDatabaseTypeName
	ColumnTypeLength           func(Rows_ColumnTypeLength) Rows_ColumnTypeLength
	ColumnTypeNullable         func(Rows_ColumnTypeNullable) Rows_ColumnTypeNullable
	ColumnTypePrecisionScale   func(Rows_ColumnTypePrecisionScale) Rows_ColumnTypePrecisionScale
	ColumnTypeScanType         func(Rows_ColumnTypeScanType) Rows_ColumnTypeScanType
	HasNextResultSet           func(Rows_HasNextResultSet) Rows_HasNextResultSet
	NextResultSet              func(Rows_NextResultSet) Rows_NextResultSet
}

type RowsUnwrapper

type RowsUnwrapper interface {
	UnwrapRows() driver.Rows
}

type RowsWrapper

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

func (*RowsWrapper) Close

func (w *RowsWrapper) Close() error

func (*RowsWrapper) ColumnTypeDatabaseTypeName

func (w *RowsWrapper) ColumnTypeDatabaseTypeName(a0 int) string

func (*RowsWrapper) ColumnTypeLength

func (w *RowsWrapper) ColumnTypeLength(a0 int) (int64, bool)

func (*RowsWrapper) ColumnTypeNullable

func (w *RowsWrapper) ColumnTypeNullable(a0 int) (bool, bool)

func (*RowsWrapper) ColumnTypePrecisionScale

func (w *RowsWrapper) ColumnTypePrecisionScale(a0 int) (int64, int64, bool)

func (*RowsWrapper) ColumnTypeScanType

func (w *RowsWrapper) ColumnTypeScanType(a0 int) reflect.Type

func (*RowsWrapper) Columns

func (w *RowsWrapper) Columns() []string

func (*RowsWrapper) HasNextResultSet

func (w *RowsWrapper) HasNextResultSet() bool

func (*RowsWrapper) Next

func (w *RowsWrapper) Next(a0 []driver.Value) error

func (*RowsWrapper) NextResultSet

func (w *RowsWrapper) NextResultSet() error

func (*RowsWrapper) UnwrapRows

func (w *RowsWrapper) UnwrapRows() driver.Rows

type Rows_Close

type Rows_Close func() error

type Rows_ColumnTypeDatabaseTypeName

type Rows_ColumnTypeDatabaseTypeName func(int) string

type Rows_ColumnTypeLength

type Rows_ColumnTypeLength func(int) (int64, bool)

type Rows_ColumnTypeNullable

type Rows_ColumnTypeNullable func(int) (bool, bool)

type Rows_ColumnTypePrecisionScale

type Rows_ColumnTypePrecisionScale func(int) (int64, int64, bool)

type Rows_ColumnTypeScanType

type Rows_ColumnTypeScanType func(int) reflect.Type

type Rows_Columns

type Rows_Columns func() []string

type Rows_HasNextResultSet

type Rows_HasNextResultSet func() bool

type Rows_Next

type Rows_Next func([]driver.Value) error

type Rows_NextResultSet

type Rows_NextResultSet func() error

type StmtInterceptor

type StmtInterceptor struct {
	Close           func(Stmt_Close) Stmt_Close
	Exec            func(Stmt_Exec) Stmt_Exec
	NumInput        func(Stmt_NumInput) Stmt_NumInput
	Query           func(Stmt_Query) Stmt_Query
	ColumnConverter func(Stmt_ColumnConverter) Stmt_ColumnConverter
	CheckNamedValue func(Stmt_CheckNamedValue) Stmt_CheckNamedValue
	ExecContext     func(Stmt_ExecContext) Stmt_ExecContext
	QueryContext    func(Stmt_QueryContext) Stmt_QueryContext
}

type StmtUnwrapper

type StmtUnwrapper interface {
	UnwrapStmt() driver.Stmt
}

type StmtWrapper

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

func (*StmtWrapper) CheckNamedValue

func (w *StmtWrapper) CheckNamedValue(a0 *driver.NamedValue) error

func (*StmtWrapper) Close

func (w *StmtWrapper) Close() error

func (*StmtWrapper) ColumnConverter

func (w *StmtWrapper) ColumnConverter(a0 int) driver.ValueConverter

func (*StmtWrapper) Exec

func (w *StmtWrapper) Exec(a0 []driver.Value) (driver.Result, error)

func (*StmtWrapper) ExecContext

func (w *StmtWrapper) ExecContext(a0 context.Context, a1 []driver.NamedValue) (driver.Result, error)

func (*StmtWrapper) NumInput

func (w *StmtWrapper) NumInput() int

func (*StmtWrapper) Query

func (w *StmtWrapper) Query(a0 []driver.Value) (driver.Rows, error)

func (*StmtWrapper) QueryContext

func (w *StmtWrapper) QueryContext(a0 context.Context, a1 []driver.NamedValue) (driver.Rows, error)

func (*StmtWrapper) UnwrapStmt

func (w *StmtWrapper) UnwrapStmt() driver.Stmt

type Stmt_CheckNamedValue

type Stmt_CheckNamedValue func(*driver.NamedValue) error

type Stmt_Close

type Stmt_Close func() error

type Stmt_ColumnConverter

type Stmt_ColumnConverter func(int) driver.ValueConverter

type Stmt_Exec

type Stmt_Exec func([]driver.Value) (driver.Result, error)

type Stmt_ExecContext

type Stmt_ExecContext func(context.Context, []driver.NamedValue) (driver.Result, error)

type Stmt_NumInput

type Stmt_NumInput func() int

type Stmt_Query

type Stmt_Query func([]driver.Value) (driver.Rows, error)

type Stmt_QueryContext

type Stmt_QueryContext func(context.Context, []driver.NamedValue) (driver.Rows, error)

type TxInterceptor

type TxInterceptor struct {
	Commit   func(Tx_Commit) Tx_Commit
	Rollback func(Tx_Rollback) Tx_Rollback
}

type TxUnwrapper

type TxUnwrapper interface {
	UnwrapTx() driver.Tx
}

type TxWrapper

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

func (*TxWrapper) Commit

func (w *TxWrapper) Commit() error

func (*TxWrapper) Rollback

func (w *TxWrapper) Rollback() error

func (*TxWrapper) UnwrapTx

func (w *TxWrapper) UnwrapTx() driver.Tx

type Tx_Commit

type Tx_Commit func() error

type Tx_Rollback

type Tx_Rollback func() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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