Documentation
¶
Index ¶
- func UnwrapConn(w driver.Conn) driver.Conn
- func UnwrapConnector(w driver.Connector) driver.Connector
- func UnwrapDriver(w driver.Driver) driver.Driver
- func UnwrapRows(w driver.Rows) driver.Rows
- func UnwrapStmt(w driver.Stmt) driver.Stmt
- func UnwrapTx(w driver.Tx) driver.Tx
- func WrapConn(wrapped driver.Conn, interceptor ConnInterceptor) driver.Conn
- func WrapConnector(wrapped driver.Connector, interceptor ConnectorInterceptor) driver.Connector
- func WrapDriver(wrapped driver.Driver, interceptor DriverInterceptor) driver.Driver
- func WrapRows(wrapped driver.Rows, interceptor RowsInterceptor) driver.Rows
- func WrapStmt(wrapped driver.Stmt, interceptor StmtInterceptor) driver.Stmt
- func WrapTx(wrapped driver.Tx, interceptor TxInterceptor) driver.Tx
- type ConnInterceptor
- type ConnUnwrapper
- type ConnWrapper
- func (w *ConnWrapper) Begin() (driver.Tx, error)
- func (w *ConnWrapper) BeginTx(a0 context.Context, a1 driver.TxOptions) (driver.Tx, error)
- func (w *ConnWrapper) CheckNamedValue(a0 *driver.NamedValue) error
- func (w *ConnWrapper) Close() error
- func (w *ConnWrapper) Exec(a0 string, a1 []driver.Value) (driver.Result, error)
- func (w *ConnWrapper) ExecContext(a0 context.Context, a1 string, a2 []driver.NamedValue) (driver.Result, error)
- func (w *ConnWrapper) IsValid() bool
- func (w *ConnWrapper) Ping(a0 context.Context) error
- func (w *ConnWrapper) Prepare(a0 string) (driver.Stmt, error)
- func (w *ConnWrapper) PrepareContext(a0 context.Context, a1 string) (driver.Stmt, error)
- func (w *ConnWrapper) Query(a0 string, a1 []driver.Value) (driver.Rows, error)
- func (w *ConnWrapper) QueryContext(a0 context.Context, a1 string, a2 []driver.NamedValue) (driver.Rows, error)
- func (w *ConnWrapper) ResetSession(a0 context.Context) error
- func (w *ConnWrapper) UnwrapConn() driver.Conn
- type Conn_Begin
- type Conn_BeginTx
- type Conn_CheckNamedValue
- type Conn_Close
- type Conn_Exec
- type Conn_ExecContext
- type Conn_IsValid
- type Conn_Ping
- type Conn_Prepare
- type Conn_PrepareContext
- type Conn_Query
- type Conn_QueryContext
- type Conn_ResetSession
- type ConnectorInterceptor
- type ConnectorUnwrapper
- type ConnectorWrapper
- type Connector_Close
- type Connector_Connect
- type Connector_Driver
- type DriverInterceptor
- type DriverUnwrapper
- type DriverWrapper
- type Driver_Open
- type Driver_OpenConnector
- type RowsInterceptor
- type RowsUnwrapper
- type RowsWrapper
- func (w *RowsWrapper) Close() error
- func (w *RowsWrapper) ColumnTypeDatabaseTypeName(a0 int) string
- func (w *RowsWrapper) ColumnTypeLength(a0 int) (int64, bool)
- func (w *RowsWrapper) ColumnTypeNullable(a0 int) (bool, bool)
- func (w *RowsWrapper) ColumnTypePrecisionScale(a0 int) (int64, int64, bool)
- func (w *RowsWrapper) ColumnTypeScanType(a0 int) reflect.Type
- func (w *RowsWrapper) Columns() []string
- func (w *RowsWrapper) HasNextResultSet() bool
- func (w *RowsWrapper) Next(a0 []driver.Value) error
- func (w *RowsWrapper) NextResultSet() error
- func (w *RowsWrapper) UnwrapRows() driver.Rows
- type Rows_Close
- type Rows_ColumnTypeDatabaseTypeName
- type Rows_ColumnTypeLength
- type Rows_ColumnTypeNullable
- type Rows_ColumnTypePrecisionScale
- type Rows_ColumnTypeScanType
- type Rows_Columns
- type Rows_HasNextResultSet
- type Rows_Next
- type Rows_NextResultSet
- type StmtInterceptor
- type StmtUnwrapper
- type StmtWrapper
- func (w *StmtWrapper) CheckNamedValue(a0 *driver.NamedValue) error
- func (w *StmtWrapper) Close() error
- func (w *StmtWrapper) ColumnConverter(a0 int) driver.ValueConverter
- func (w *StmtWrapper) Exec(a0 []driver.Value) (driver.Result, error)
- func (w *StmtWrapper) ExecContext(a0 context.Context, a1 []driver.NamedValue) (driver.Result, error)
- func (w *StmtWrapper) NumInput() int
- func (w *StmtWrapper) Query(a0 []driver.Value) (driver.Rows, error)
- func (w *StmtWrapper) QueryContext(a0 context.Context, a1 []driver.NamedValue) (driver.Rows, error)
- func (w *StmtWrapper) UnwrapStmt() driver.Stmt
- type Stmt_CheckNamedValue
- type Stmt_Close
- type Stmt_ColumnConverter
- type Stmt_Exec
- type Stmt_ExecContext
- type Stmt_NumInput
- type Stmt_Query
- type Stmt_QueryContext
- type TxInterceptor
- type TxUnwrapper
- type TxWrapper
- type Tx_Commit
- type Tx_Rollback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapConnector ¶
func WrapConnector(wrapped driver.Connector, interceptor ConnectorInterceptor) driver.Connector
func WrapDriver ¶
func WrapDriver(wrapped driver.Driver, interceptor DriverInterceptor) driver.Driver
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 ConnWrapper ¶
type ConnWrapper struct {
// contains filtered or unexported fields
}
func (*ConnWrapper) CheckNamedValue ¶
func (w *ConnWrapper) CheckNamedValue(a0 *driver.NamedValue) error
func (*ConnWrapper) Close ¶
func (w *ConnWrapper) Close() 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) PrepareContext ¶
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_CheckNamedValue ¶
type Conn_CheckNamedValue func(*driver.NamedValue) error
type Conn_Close ¶
type Conn_Close func() error
type Conn_ExecContext ¶
type Conn_IsValid ¶
type Conn_IsValid func() bool
type Conn_PrepareContext ¶
type Conn_QueryContext ¶
type Conn_ResetSession ¶
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 ConnectorWrapper ¶
type ConnectorWrapper struct {
// contains filtered or unexported fields
}
func (*ConnectorWrapper) Close ¶
func (w *ConnectorWrapper) Close() 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_Driver ¶
type DriverInterceptor ¶
type DriverInterceptor struct { Open func(Driver_Open) Driver_Open OpenConnector func(Driver_OpenConnector) Driver_OpenConnector }
type DriverUnwrapper ¶
type DriverWrapper ¶
type DriverWrapper struct {
// contains filtered or unexported fields
}
func (*DriverWrapper) OpenConnector ¶
func (w *DriverWrapper) OpenConnector(a0 string) (driver.Connector, error)
func (*DriverWrapper) UnwrapDriver ¶
func (w *DriverWrapper) UnwrapDriver() driver.Driver
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 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) 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_ColumnTypeLength ¶
type Rows_ColumnTypeNullable ¶
type Rows_ColumnTypeScanType ¶
type Rows_Columns ¶
type Rows_Columns func() []string
type Rows_HasNextResultSet ¶
type Rows_HasNextResultSet func() bool
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 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) ExecContext ¶
func (w *StmtWrapper) ExecContext(a0 context.Context, a1 []driver.NamedValue) (driver.Result, error)
func (*StmtWrapper) NumInput ¶
func (w *StmtWrapper) NumInput() int
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_ExecContext ¶
type Stmt_NumInput ¶
type Stmt_NumInput func() int
type Stmt_QueryContext ¶
type TxInterceptor ¶
type TxInterceptor struct { Commit func(Tx_Commit) Tx_Commit Rollback func(Tx_Rollback) Tx_Rollback }
type TxUnwrapper ¶
type Tx_Rollback ¶
type Tx_Rollback func() error
Click to show internal directories.
Click to hide internal directories.