* fix: make interpreter methods discoverable by runtime When generating an interface wrapper, lookup existing wrappers by method to get the one with the biggest set of methods implemented by interpreter. A string method is also added to wrappers, in order to provide a string representation of the interpreter value rather than the wrapper itself (at least for %s and %v verbs). This allows the runtime to pickup an interpreter method automatically even if the conversion to the interface is not specified in the script. As in Go spec, it is enough for the type to implement the required methods. A current limitation is that only single wrappers can be instantiated, not allowing to compose interfaces. This limitation can be removed when the Go reflect issue https://github.com/golang/go/issues/15924 is fixed. Fixes #435. * test: add a simpler test
498 lines
23 KiB
Go
498 lines
23 KiB
Go
// Code generated by 'goexports database/sql/driver'. DO NOT EDIT.
|
|
|
|
// +build go1.14,!go1.15
|
|
|
|
package stdlib
|
|
|
|
import (
|
|
"context"
|
|
"database/sql/driver"
|
|
"fmt"
|
|
"reflect"
|
|
)
|
|
|
|
func init() {
|
|
Symbols["database/sql/driver"] = map[string]reflect.Value{
|
|
// function, constant and variable definitions
|
|
"Bool": reflect.ValueOf(&driver.Bool).Elem(),
|
|
"DefaultParameterConverter": reflect.ValueOf(&driver.DefaultParameterConverter).Elem(),
|
|
"ErrBadConn": reflect.ValueOf(&driver.ErrBadConn).Elem(),
|
|
"ErrRemoveArgument": reflect.ValueOf(&driver.ErrRemoveArgument).Elem(),
|
|
"ErrSkip": reflect.ValueOf(&driver.ErrSkip).Elem(),
|
|
"Int32": reflect.ValueOf(&driver.Int32).Elem(),
|
|
"IsScanValue": reflect.ValueOf(driver.IsScanValue),
|
|
"IsValue": reflect.ValueOf(driver.IsValue),
|
|
"ResultNoRows": reflect.ValueOf(&driver.ResultNoRows).Elem(),
|
|
"String": reflect.ValueOf(&driver.String).Elem(),
|
|
|
|
// type definitions
|
|
"ColumnConverter": reflect.ValueOf((*driver.ColumnConverter)(nil)),
|
|
"Conn": reflect.ValueOf((*driver.Conn)(nil)),
|
|
"ConnBeginTx": reflect.ValueOf((*driver.ConnBeginTx)(nil)),
|
|
"ConnPrepareContext": reflect.ValueOf((*driver.ConnPrepareContext)(nil)),
|
|
"Connector": reflect.ValueOf((*driver.Connector)(nil)),
|
|
"Driver": reflect.ValueOf((*driver.Driver)(nil)),
|
|
"DriverContext": reflect.ValueOf((*driver.DriverContext)(nil)),
|
|
"Execer": reflect.ValueOf((*driver.Execer)(nil)),
|
|
"ExecerContext": reflect.ValueOf((*driver.ExecerContext)(nil)),
|
|
"IsolationLevel": reflect.ValueOf((*driver.IsolationLevel)(nil)),
|
|
"NamedValue": reflect.ValueOf((*driver.NamedValue)(nil)),
|
|
"NamedValueChecker": reflect.ValueOf((*driver.NamedValueChecker)(nil)),
|
|
"NotNull": reflect.ValueOf((*driver.NotNull)(nil)),
|
|
"Null": reflect.ValueOf((*driver.Null)(nil)),
|
|
"Pinger": reflect.ValueOf((*driver.Pinger)(nil)),
|
|
"Queryer": reflect.ValueOf((*driver.Queryer)(nil)),
|
|
"QueryerContext": reflect.ValueOf((*driver.QueryerContext)(nil)),
|
|
"Result": reflect.ValueOf((*driver.Result)(nil)),
|
|
"Rows": reflect.ValueOf((*driver.Rows)(nil)),
|
|
"RowsAffected": reflect.ValueOf((*driver.RowsAffected)(nil)),
|
|
"RowsColumnTypeDatabaseTypeName": reflect.ValueOf((*driver.RowsColumnTypeDatabaseTypeName)(nil)),
|
|
"RowsColumnTypeLength": reflect.ValueOf((*driver.RowsColumnTypeLength)(nil)),
|
|
"RowsColumnTypeNullable": reflect.ValueOf((*driver.RowsColumnTypeNullable)(nil)),
|
|
"RowsColumnTypePrecisionScale": reflect.ValueOf((*driver.RowsColumnTypePrecisionScale)(nil)),
|
|
"RowsColumnTypeScanType": reflect.ValueOf((*driver.RowsColumnTypeScanType)(nil)),
|
|
"RowsNextResultSet": reflect.ValueOf((*driver.RowsNextResultSet)(nil)),
|
|
"SessionResetter": reflect.ValueOf((*driver.SessionResetter)(nil)),
|
|
"Stmt": reflect.ValueOf((*driver.Stmt)(nil)),
|
|
"StmtExecContext": reflect.ValueOf((*driver.StmtExecContext)(nil)),
|
|
"StmtQueryContext": reflect.ValueOf((*driver.StmtQueryContext)(nil)),
|
|
"Tx": reflect.ValueOf((*driver.Tx)(nil)),
|
|
"TxOptions": reflect.ValueOf((*driver.TxOptions)(nil)),
|
|
"Value": reflect.ValueOf((*driver.Value)(nil)),
|
|
"ValueConverter": reflect.ValueOf((*driver.ValueConverter)(nil)),
|
|
"Valuer": reflect.ValueOf((*driver.Valuer)(nil)),
|
|
|
|
// interface wrapper definitions
|
|
"_ColumnConverter": reflect.ValueOf((*_database_sql_driver_ColumnConverter)(nil)),
|
|
"_Conn": reflect.ValueOf((*_database_sql_driver_Conn)(nil)),
|
|
"_ConnBeginTx": reflect.ValueOf((*_database_sql_driver_ConnBeginTx)(nil)),
|
|
"_ConnPrepareContext": reflect.ValueOf((*_database_sql_driver_ConnPrepareContext)(nil)),
|
|
"_Connector": reflect.ValueOf((*_database_sql_driver_Connector)(nil)),
|
|
"_Driver": reflect.ValueOf((*_database_sql_driver_Driver)(nil)),
|
|
"_DriverContext": reflect.ValueOf((*_database_sql_driver_DriverContext)(nil)),
|
|
"_Execer": reflect.ValueOf((*_database_sql_driver_Execer)(nil)),
|
|
"_ExecerContext": reflect.ValueOf((*_database_sql_driver_ExecerContext)(nil)),
|
|
"_NamedValueChecker": reflect.ValueOf((*_database_sql_driver_NamedValueChecker)(nil)),
|
|
"_Pinger": reflect.ValueOf((*_database_sql_driver_Pinger)(nil)),
|
|
"_Queryer": reflect.ValueOf((*_database_sql_driver_Queryer)(nil)),
|
|
"_QueryerContext": reflect.ValueOf((*_database_sql_driver_QueryerContext)(nil)),
|
|
"_Result": reflect.ValueOf((*_database_sql_driver_Result)(nil)),
|
|
"_Rows": reflect.ValueOf((*_database_sql_driver_Rows)(nil)),
|
|
"_RowsColumnTypeDatabaseTypeName": reflect.ValueOf((*_database_sql_driver_RowsColumnTypeDatabaseTypeName)(nil)),
|
|
"_RowsColumnTypeLength": reflect.ValueOf((*_database_sql_driver_RowsColumnTypeLength)(nil)),
|
|
"_RowsColumnTypeNullable": reflect.ValueOf((*_database_sql_driver_RowsColumnTypeNullable)(nil)),
|
|
"_RowsColumnTypePrecisionScale": reflect.ValueOf((*_database_sql_driver_RowsColumnTypePrecisionScale)(nil)),
|
|
"_RowsColumnTypeScanType": reflect.ValueOf((*_database_sql_driver_RowsColumnTypeScanType)(nil)),
|
|
"_RowsNextResultSet": reflect.ValueOf((*_database_sql_driver_RowsNextResultSet)(nil)),
|
|
"_SessionResetter": reflect.ValueOf((*_database_sql_driver_SessionResetter)(nil)),
|
|
"_Stmt": reflect.ValueOf((*_database_sql_driver_Stmt)(nil)),
|
|
"_StmtExecContext": reflect.ValueOf((*_database_sql_driver_StmtExecContext)(nil)),
|
|
"_StmtQueryContext": reflect.ValueOf((*_database_sql_driver_StmtQueryContext)(nil)),
|
|
"_Tx": reflect.ValueOf((*_database_sql_driver_Tx)(nil)),
|
|
"_Value": reflect.ValueOf((*_database_sql_driver_Value)(nil)),
|
|
"_ValueConverter": reflect.ValueOf((*_database_sql_driver_ValueConverter)(nil)),
|
|
"_Valuer": reflect.ValueOf((*_database_sql_driver_Valuer)(nil)),
|
|
}
|
|
}
|
|
|
|
// _database_sql_driver_ColumnConverter is an interface wrapper for ColumnConverter type
|
|
type _database_sql_driver_ColumnConverter struct {
|
|
Val interface{}
|
|
WColumnConverter func(idx int) driver.ValueConverter
|
|
}
|
|
|
|
func (W _database_sql_driver_ColumnConverter) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_ColumnConverter) ColumnConverter(idx int) driver.ValueConverter {
|
|
return W.WColumnConverter(idx)
|
|
}
|
|
|
|
// _database_sql_driver_Conn is an interface wrapper for Conn type
|
|
type _database_sql_driver_Conn struct {
|
|
Val interface{}
|
|
WBegin func() (driver.Tx, error)
|
|
WClose func() error
|
|
WPrepare func(query string) (driver.Stmt, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_Conn) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Conn) Begin() (driver.Tx, error) { return W.WBegin() }
|
|
func (W _database_sql_driver_Conn) Close() error { return W.WClose() }
|
|
func (W _database_sql_driver_Conn) Prepare(query string) (driver.Stmt, error) {
|
|
return W.WPrepare(query)
|
|
}
|
|
|
|
// _database_sql_driver_ConnBeginTx is an interface wrapper for ConnBeginTx type
|
|
type _database_sql_driver_ConnBeginTx struct {
|
|
Val interface{}
|
|
WBeginTx func(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_ConnBeginTx) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_ConnBeginTx) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) {
|
|
return W.WBeginTx(ctx, opts)
|
|
}
|
|
|
|
// _database_sql_driver_ConnPrepareContext is an interface wrapper for ConnPrepareContext type
|
|
type _database_sql_driver_ConnPrepareContext struct {
|
|
Val interface{}
|
|
WPrepareContext func(ctx context.Context, query string) (driver.Stmt, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_ConnPrepareContext) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_ConnPrepareContext) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) {
|
|
return W.WPrepareContext(ctx, query)
|
|
}
|
|
|
|
// _database_sql_driver_Connector is an interface wrapper for Connector type
|
|
type _database_sql_driver_Connector struct {
|
|
Val interface{}
|
|
WConnect func(a0 context.Context) (driver.Conn, error)
|
|
WDriver func() driver.Driver
|
|
}
|
|
|
|
func (W _database_sql_driver_Connector) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Connector) Connect(a0 context.Context) (driver.Conn, error) {
|
|
return W.WConnect(a0)
|
|
}
|
|
func (W _database_sql_driver_Connector) Driver() driver.Driver { return W.WDriver() }
|
|
|
|
// _database_sql_driver_Driver is an interface wrapper for Driver type
|
|
type _database_sql_driver_Driver struct {
|
|
Val interface{}
|
|
WOpen func(name string) (driver.Conn, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_Driver) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Driver) Open(name string) (driver.Conn, error) { return W.WOpen(name) }
|
|
|
|
// _database_sql_driver_DriverContext is an interface wrapper for DriverContext type
|
|
type _database_sql_driver_DriverContext struct {
|
|
Val interface{}
|
|
WOpenConnector func(name string) (driver.Connector, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_DriverContext) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_DriverContext) OpenConnector(name string) (driver.Connector, error) {
|
|
return W.WOpenConnector(name)
|
|
}
|
|
|
|
// _database_sql_driver_Execer is an interface wrapper for Execer type
|
|
type _database_sql_driver_Execer struct {
|
|
Val interface{}
|
|
WExec func(query string, args []driver.Value) (driver.Result, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_Execer) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Execer) Exec(query string, args []driver.Value) (driver.Result, error) {
|
|
return W.WExec(query, args)
|
|
}
|
|
|
|
// _database_sql_driver_ExecerContext is an interface wrapper for ExecerContext type
|
|
type _database_sql_driver_ExecerContext struct {
|
|
Val interface{}
|
|
WExecContext func(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_ExecerContext) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_ExecerContext) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) {
|
|
return W.WExecContext(ctx, query, args)
|
|
}
|
|
|
|
// _database_sql_driver_NamedValueChecker is an interface wrapper for NamedValueChecker type
|
|
type _database_sql_driver_NamedValueChecker struct {
|
|
Val interface{}
|
|
WCheckNamedValue func(a0 *driver.NamedValue) error
|
|
}
|
|
|
|
func (W _database_sql_driver_NamedValueChecker) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_NamedValueChecker) CheckNamedValue(a0 *driver.NamedValue) error {
|
|
return W.WCheckNamedValue(a0)
|
|
}
|
|
|
|
// _database_sql_driver_Pinger is an interface wrapper for Pinger type
|
|
type _database_sql_driver_Pinger struct {
|
|
Val interface{}
|
|
WPing func(ctx context.Context) error
|
|
}
|
|
|
|
func (W _database_sql_driver_Pinger) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Pinger) Ping(ctx context.Context) error { return W.WPing(ctx) }
|
|
|
|
// _database_sql_driver_Queryer is an interface wrapper for Queryer type
|
|
type _database_sql_driver_Queryer struct {
|
|
Val interface{}
|
|
WQuery func(query string, args []driver.Value) (driver.Rows, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_Queryer) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Queryer) Query(query string, args []driver.Value) (driver.Rows, error) {
|
|
return W.WQuery(query, args)
|
|
}
|
|
|
|
// _database_sql_driver_QueryerContext is an interface wrapper for QueryerContext type
|
|
type _database_sql_driver_QueryerContext struct {
|
|
Val interface{}
|
|
WQueryContext func(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_QueryerContext) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_QueryerContext) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) {
|
|
return W.WQueryContext(ctx, query, args)
|
|
}
|
|
|
|
// _database_sql_driver_Result is an interface wrapper for Result type
|
|
type _database_sql_driver_Result struct {
|
|
Val interface{}
|
|
WLastInsertId func() (int64, error)
|
|
WRowsAffected func() (int64, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_Result) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Result) LastInsertId() (int64, error) { return W.WLastInsertId() }
|
|
func (W _database_sql_driver_Result) RowsAffected() (int64, error) { return W.WRowsAffected() }
|
|
|
|
// _database_sql_driver_Rows is an interface wrapper for Rows type
|
|
type _database_sql_driver_Rows struct {
|
|
Val interface{}
|
|
WClose func() error
|
|
WColumns func() []string
|
|
WNext func(dest []driver.Value) error
|
|
}
|
|
|
|
func (W _database_sql_driver_Rows) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Rows) Close() error { return W.WClose() }
|
|
func (W _database_sql_driver_Rows) Columns() []string { return W.WColumns() }
|
|
func (W _database_sql_driver_Rows) Next(dest []driver.Value) error { return W.WNext(dest) }
|
|
|
|
// _database_sql_driver_RowsColumnTypeDatabaseTypeName is an interface wrapper for RowsColumnTypeDatabaseTypeName type
|
|
type _database_sql_driver_RowsColumnTypeDatabaseTypeName struct {
|
|
Val interface{}
|
|
WClose func() error
|
|
WColumnTypeDatabaseTypeName func(index int) string
|
|
WColumns func() []string
|
|
WNext func(dest []driver.Value) error
|
|
}
|
|
|
|
func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) String() string {
|
|
return fmt.Sprint(W.Val)
|
|
}
|
|
|
|
func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Close() error { return W.WClose() }
|
|
func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) ColumnTypeDatabaseTypeName(index int) string {
|
|
return W.WColumnTypeDatabaseTypeName(index)
|
|
}
|
|
func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Columns() []string { return W.WColumns() }
|
|
func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Next(dest []driver.Value) error {
|
|
return W.WNext(dest)
|
|
}
|
|
|
|
// _database_sql_driver_RowsColumnTypeLength is an interface wrapper for RowsColumnTypeLength type
|
|
type _database_sql_driver_RowsColumnTypeLength struct {
|
|
Val interface{}
|
|
WClose func() error
|
|
WColumnTypeLength func(index int) (length int64, ok bool)
|
|
WColumns func() []string
|
|
WNext func(dest []driver.Value) error
|
|
}
|
|
|
|
func (W _database_sql_driver_RowsColumnTypeLength) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_RowsColumnTypeLength) Close() error { return W.WClose() }
|
|
func (W _database_sql_driver_RowsColumnTypeLength) ColumnTypeLength(index int) (length int64, ok bool) {
|
|
return W.WColumnTypeLength(index)
|
|
}
|
|
func (W _database_sql_driver_RowsColumnTypeLength) Columns() []string { return W.WColumns() }
|
|
func (W _database_sql_driver_RowsColumnTypeLength) Next(dest []driver.Value) error {
|
|
return W.WNext(dest)
|
|
}
|
|
|
|
// _database_sql_driver_RowsColumnTypeNullable is an interface wrapper for RowsColumnTypeNullable type
|
|
type _database_sql_driver_RowsColumnTypeNullable struct {
|
|
Val interface{}
|
|
WClose func() error
|
|
WColumnTypeNullable func(index int) (nullable bool, ok bool)
|
|
WColumns func() []string
|
|
WNext func(dest []driver.Value) error
|
|
}
|
|
|
|
func (W _database_sql_driver_RowsColumnTypeNullable) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_RowsColumnTypeNullable) Close() error { return W.WClose() }
|
|
func (W _database_sql_driver_RowsColumnTypeNullable) ColumnTypeNullable(index int) (nullable bool, ok bool) {
|
|
return W.WColumnTypeNullable(index)
|
|
}
|
|
func (W _database_sql_driver_RowsColumnTypeNullable) Columns() []string { return W.WColumns() }
|
|
func (W _database_sql_driver_RowsColumnTypeNullable) Next(dest []driver.Value) error {
|
|
return W.WNext(dest)
|
|
}
|
|
|
|
// _database_sql_driver_RowsColumnTypePrecisionScale is an interface wrapper for RowsColumnTypePrecisionScale type
|
|
type _database_sql_driver_RowsColumnTypePrecisionScale struct {
|
|
Val interface{}
|
|
WClose func() error
|
|
WColumnTypePrecisionScale func(index int) (precision int64, scale int64, ok bool)
|
|
WColumns func() []string
|
|
WNext func(dest []driver.Value) error
|
|
}
|
|
|
|
func (W _database_sql_driver_RowsColumnTypePrecisionScale) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_RowsColumnTypePrecisionScale) Close() error { return W.WClose() }
|
|
func (W _database_sql_driver_RowsColumnTypePrecisionScale) ColumnTypePrecisionScale(index int) (precision int64, scale int64, ok bool) {
|
|
return W.WColumnTypePrecisionScale(index)
|
|
}
|
|
func (W _database_sql_driver_RowsColumnTypePrecisionScale) Columns() []string { return W.WColumns() }
|
|
func (W _database_sql_driver_RowsColumnTypePrecisionScale) Next(dest []driver.Value) error {
|
|
return W.WNext(dest)
|
|
}
|
|
|
|
// _database_sql_driver_RowsColumnTypeScanType is an interface wrapper for RowsColumnTypeScanType type
|
|
type _database_sql_driver_RowsColumnTypeScanType struct {
|
|
Val interface{}
|
|
WClose func() error
|
|
WColumnTypeScanType func(index int) reflect.Type
|
|
WColumns func() []string
|
|
WNext func(dest []driver.Value) error
|
|
}
|
|
|
|
func (W _database_sql_driver_RowsColumnTypeScanType) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_RowsColumnTypeScanType) Close() error { return W.WClose() }
|
|
func (W _database_sql_driver_RowsColumnTypeScanType) ColumnTypeScanType(index int) reflect.Type {
|
|
return W.WColumnTypeScanType(index)
|
|
}
|
|
func (W _database_sql_driver_RowsColumnTypeScanType) Columns() []string { return W.WColumns() }
|
|
func (W _database_sql_driver_RowsColumnTypeScanType) Next(dest []driver.Value) error {
|
|
return W.WNext(dest)
|
|
}
|
|
|
|
// _database_sql_driver_RowsNextResultSet is an interface wrapper for RowsNextResultSet type
|
|
type _database_sql_driver_RowsNextResultSet struct {
|
|
Val interface{}
|
|
WClose func() error
|
|
WColumns func() []string
|
|
WHasNextResultSet func() bool
|
|
WNext func(dest []driver.Value) error
|
|
WNextResultSet func() error
|
|
}
|
|
|
|
func (W _database_sql_driver_RowsNextResultSet) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_RowsNextResultSet) Close() error { return W.WClose() }
|
|
func (W _database_sql_driver_RowsNextResultSet) Columns() []string { return W.WColumns() }
|
|
func (W _database_sql_driver_RowsNextResultSet) HasNextResultSet() bool { return W.WHasNextResultSet() }
|
|
func (W _database_sql_driver_RowsNextResultSet) Next(dest []driver.Value) error { return W.WNext(dest) }
|
|
func (W _database_sql_driver_RowsNextResultSet) NextResultSet() error { return W.WNextResultSet() }
|
|
|
|
// _database_sql_driver_SessionResetter is an interface wrapper for SessionResetter type
|
|
type _database_sql_driver_SessionResetter struct {
|
|
Val interface{}
|
|
WResetSession func(ctx context.Context) error
|
|
}
|
|
|
|
func (W _database_sql_driver_SessionResetter) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_SessionResetter) ResetSession(ctx context.Context) error {
|
|
return W.WResetSession(ctx)
|
|
}
|
|
|
|
// _database_sql_driver_Stmt is an interface wrapper for Stmt type
|
|
type _database_sql_driver_Stmt struct {
|
|
Val interface{}
|
|
WClose func() error
|
|
WExec func(args []driver.Value) (driver.Result, error)
|
|
WNumInput func() int
|
|
WQuery func(args []driver.Value) (driver.Rows, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_Stmt) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Stmt) Close() error { return W.WClose() }
|
|
func (W _database_sql_driver_Stmt) Exec(args []driver.Value) (driver.Result, error) {
|
|
return W.WExec(args)
|
|
}
|
|
func (W _database_sql_driver_Stmt) NumInput() int { return W.WNumInput() }
|
|
func (W _database_sql_driver_Stmt) Query(args []driver.Value) (driver.Rows, error) {
|
|
return W.WQuery(args)
|
|
}
|
|
|
|
// _database_sql_driver_StmtExecContext is an interface wrapper for StmtExecContext type
|
|
type _database_sql_driver_StmtExecContext struct {
|
|
Val interface{}
|
|
WExecContext func(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_StmtExecContext) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_StmtExecContext) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) {
|
|
return W.WExecContext(ctx, args)
|
|
}
|
|
|
|
// _database_sql_driver_StmtQueryContext is an interface wrapper for StmtQueryContext type
|
|
type _database_sql_driver_StmtQueryContext struct {
|
|
Val interface{}
|
|
WQueryContext func(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_StmtQueryContext) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_StmtQueryContext) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) {
|
|
return W.WQueryContext(ctx, args)
|
|
}
|
|
|
|
// _database_sql_driver_Tx is an interface wrapper for Tx type
|
|
type _database_sql_driver_Tx struct {
|
|
Val interface{}
|
|
WCommit func() error
|
|
WRollback func() error
|
|
}
|
|
|
|
func (W _database_sql_driver_Tx) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Tx) Commit() error { return W.WCommit() }
|
|
func (W _database_sql_driver_Tx) Rollback() error { return W.WRollback() }
|
|
|
|
// _database_sql_driver_Value is an interface wrapper for Value type
|
|
type _database_sql_driver_Value struct {
|
|
Val interface{}
|
|
}
|
|
|
|
func (W _database_sql_driver_Value) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
// _database_sql_driver_ValueConverter is an interface wrapper for ValueConverter type
|
|
type _database_sql_driver_ValueConverter struct {
|
|
Val interface{}
|
|
WConvertValue func(v interface{}) (driver.Value, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_ValueConverter) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_ValueConverter) ConvertValue(v interface{}) (driver.Value, error) {
|
|
return W.WConvertValue(v)
|
|
}
|
|
|
|
// _database_sql_driver_Valuer is an interface wrapper for Valuer type
|
|
type _database_sql_driver_Valuer struct {
|
|
Val interface{}
|
|
WValue func() (driver.Value, error)
|
|
}
|
|
|
|
func (W _database_sql_driver_Valuer) String() string { return fmt.Sprint(W.Val) }
|
|
|
|
func (W _database_sql_driver_Valuer) Value() (driver.Value, error) { return W.WValue() }
|