Documentation ¶
Index ¶
- type ColumnConverter
- type ConnBeginTx
- type ConnPrepareContext
- type Connector
- type DriverContext
- type Execer
- type ExecerContext
- type FakeConn
- type FakeDriver
- type FakeRows
- type FakeStmt
- type NamedValueChecker
- type Pinger
- type Queryer
- type QueryerContext
- type Result
- type RowsColumnTypeDatabaseTypeName
- type RowsColumnTypeLength
- type RowsColumnTypeNullable
- type RowsColumnTypePrecisionScale
- type RowsColumnTypeScanType
- type RowsNextResultSet
- type SessionResetter
- type StmtExecContext
- type StmtQueryContext
- type Tx
- type Validator
- type ValueConverter
- type Valuer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnConverter ¶
ColumnConverter is an autogenerated mock type for the ColumnConverter type
func NewColumnConverter ¶
func NewColumnConverter(t mockConstructorTestingTNewColumnConverter) *ColumnConverter
NewColumnConverter creates a new instance of ColumnConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ColumnConverter) ColumnConverter ¶
func (_m *ColumnConverter) ColumnConverter(idx int) driver.ValueConverter
ColumnConverter provides a mock function with given fields: idx
type ConnBeginTx ¶
ConnBeginTx is an autogenerated mock type for the ConnBeginTx type
func NewConnBeginTx ¶
func NewConnBeginTx(t mockConstructorTestingTNewConnBeginTx) *ConnBeginTx
NewConnBeginTx creates a new instance of ConnBeginTx. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ConnPrepareContext ¶
ConnPrepareContext is an autogenerated mock type for the ConnPrepareContext type
func NewConnPrepareContext ¶
func NewConnPrepareContext(t mockConstructorTestingTNewConnPrepareContext) *ConnPrepareContext
NewConnPrepareContext creates a new instance of ConnPrepareContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConnPrepareContext) PrepareContext ¶
func (_m *ConnPrepareContext) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)
PrepareContext provides a mock function with given fields: ctx, query
type Connector ¶
Connector is an autogenerated mock type for the Connector type
func NewConnector ¶
func NewConnector(t mockConstructorTestingTNewConnector) *Connector
NewConnector creates a new instance of Connector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type DriverContext ¶
DriverContext is an autogenerated mock type for the DriverContext type
func NewDriverContext ¶
func NewDriverContext(t mockConstructorTestingTNewDriverContext) *DriverContext
NewDriverContext creates a new instance of DriverContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DriverContext) OpenConnector ¶
func (_m *DriverContext) OpenConnector(name string) (driver.Connector, error)
OpenConnector provides a mock function with given fields: name
type Execer ¶
Execer is an autogenerated mock type for the Execer type
type ExecerContext ¶
ExecerContext is an autogenerated mock type for the ExecerContext type
func NewExecerContext ¶
func NewExecerContext(t mockConstructorTestingTNewExecerContext) *ExecerContext
NewExecerContext creates a new instance of ExecerContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExecerContext) ExecContext ¶
func (_m *ExecerContext) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
ExecContext provides a mock function with given fields: ctx, query, args
type FakeConn ¶
FakeConn is an autogenerated mock type for the FakeConn type
func NewFakeConn ¶
func NewFakeConn(t mockConstructorTestingTNewConn) *FakeConn
NewFakeConn creates a new instance of FakeConn. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type FakeDriver ¶
FakeDriver is an autogenerated mock type for the FakeDriver type
func NewDriver ¶
func NewDriver(t mockConstructorTestingTNewDriver) *FakeDriver
NewDriver creates a new instance of FakeDriver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type FakeRows ¶
FakeRows is an autogenerated mock type for the FakeRows type
func NewFakeRows ¶
func NewFakeRows(t mockConstructorTestingTNewRows) *FakeRows
NewFakeRows creates a new instance of FakeRows. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type FakeStmt ¶
FakeStmt is an autogenerated mock type for the FakeStmt type
func NewFakeStmt ¶
func NewFakeStmt(t mockConstructorTestingTNewStmt) *FakeStmt
NewFakeStmt creates a new instance of FakeStmt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type NamedValueChecker ¶
NamedValueChecker is an autogenerated mock type for the NamedValueChecker type
func NewNamedValueChecker ¶
func NewNamedValueChecker(t mockConstructorTestingTNewNamedValueChecker) *NamedValueChecker
NewNamedValueChecker creates a new instance of NamedValueChecker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NamedValueChecker) CheckNamedValue ¶
func (_m *NamedValueChecker) CheckNamedValue(_a0 *driver.NamedValue) error
CheckNamedValue provides a mock function with given fields: _a0
type Pinger ¶
Pinger is an autogenerated mock type for the Pinger type
type Queryer ¶
Queryer is an autogenerated mock type for the Queryer type
func NewQueryer ¶
func NewQueryer(t mockConstructorTestingTNewQueryer) *Queryer
NewQueryer creates a new instance of Queryer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type QueryerContext ¶
QueryerContext is an autogenerated mock type for the QueryerContext type
func NewQueryerContext ¶
func NewQueryerContext(t mockConstructorTestingTNewQueryerContext) *QueryerContext
NewQueryerContext creates a new instance of QueryerContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*QueryerContext) QueryContext ¶
func (_m *QueryerContext) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
QueryContext provides a mock function with given fields: ctx, query, args
type Result ¶
Result is an autogenerated mock type for the Result type
func NewResult ¶
func NewResult(t mockConstructorTestingTNewResult) *Result
NewResult creates a new instance of Result. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Result) LastInsertId ¶
LastInsertId provides a mock function with given fields:
func (*Result) RowsAffected ¶
RowsAffected provides a mock function with given fields:
type RowsColumnTypeDatabaseTypeName ¶
RowsColumnTypeDatabaseTypeName is an autogenerated mock type for the RowsColumnTypeDatabaseTypeName type
func NewRowsColumnTypeDatabaseTypeName ¶
func NewRowsColumnTypeDatabaseTypeName(t mockConstructorTestingTNewRowsColumnTypeDatabaseTypeName) *RowsColumnTypeDatabaseTypeName
NewRowsColumnTypeDatabaseTypeName creates a new instance of RowsColumnTypeDatabaseTypeName. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RowsColumnTypeDatabaseTypeName) Close ¶
func (_m *RowsColumnTypeDatabaseTypeName) Close() error
Close provides a mock function with given fields:
func (*RowsColumnTypeDatabaseTypeName) ColumnTypeDatabaseTypeName ¶
func (_m *RowsColumnTypeDatabaseTypeName) ColumnTypeDatabaseTypeName(index int) string
ColumnTypeDatabaseTypeName provides a mock function with given fields: index
func (*RowsColumnTypeDatabaseTypeName) Columns ¶
func (_m *RowsColumnTypeDatabaseTypeName) Columns() []string
Columns provides a mock function with given fields:
type RowsColumnTypeLength ¶
RowsColumnTypeLength is an autogenerated mock type for the RowsColumnTypeLength type
func NewRowsColumnTypeLength ¶
func NewRowsColumnTypeLength(t mockConstructorTestingTNewRowsColumnTypeLength) *RowsColumnTypeLength
NewRowsColumnTypeLength creates a new instance of RowsColumnTypeLength. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RowsColumnTypeLength) Close ¶
func (_m *RowsColumnTypeLength) Close() error
Close provides a mock function with given fields:
func (*RowsColumnTypeLength) ColumnTypeLength ¶
func (_m *RowsColumnTypeLength) ColumnTypeLength(index int) (int64, bool)
ColumnTypeLength provides a mock function with given fields: index
func (*RowsColumnTypeLength) Columns ¶
func (_m *RowsColumnTypeLength) Columns() []string
Columns provides a mock function with given fields:
type RowsColumnTypeNullable ¶
RowsColumnTypeNullable is an autogenerated mock type for the RowsColumnTypeNullable type
func NewRowsColumnTypeNullable ¶
func NewRowsColumnTypeNullable(t mockConstructorTestingTNewRowsColumnTypeNullable) *RowsColumnTypeNullable
NewRowsColumnTypeNullable creates a new instance of RowsColumnTypeNullable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RowsColumnTypeNullable) Close ¶
func (_m *RowsColumnTypeNullable) Close() error
Close provides a mock function with given fields:
func (*RowsColumnTypeNullable) ColumnTypeNullable ¶
func (_m *RowsColumnTypeNullable) ColumnTypeNullable(index int) (bool, bool)
ColumnTypeNullable provides a mock function with given fields: index
func (*RowsColumnTypeNullable) Columns ¶
func (_m *RowsColumnTypeNullable) Columns() []string
Columns provides a mock function with given fields:
type RowsColumnTypePrecisionScale ¶
RowsColumnTypePrecisionScale is an autogenerated mock type for the RowsColumnTypePrecisionScale type
func NewRowsColumnTypePrecisionScale ¶
func NewRowsColumnTypePrecisionScale(t mockConstructorTestingTNewRowsColumnTypePrecisionScale) *RowsColumnTypePrecisionScale
NewRowsColumnTypePrecisionScale creates a new instance of RowsColumnTypePrecisionScale. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RowsColumnTypePrecisionScale) Close ¶
func (_m *RowsColumnTypePrecisionScale) Close() error
Close provides a mock function with given fields:
func (*RowsColumnTypePrecisionScale) ColumnTypePrecisionScale ¶
func (_m *RowsColumnTypePrecisionScale) ColumnTypePrecisionScale(index int) (int64, int64, bool)
ColumnTypePrecisionScale provides a mock function with given fields: index
func (*RowsColumnTypePrecisionScale) Columns ¶
func (_m *RowsColumnTypePrecisionScale) Columns() []string
Columns provides a mock function with given fields:
type RowsColumnTypeScanType ¶
RowsColumnTypeScanType is an autogenerated mock type for the RowsColumnTypeScanType type
func NewRowsColumnTypeScanType ¶
func NewRowsColumnTypeScanType(t mockConstructorTestingTNewRowsColumnTypeScanType) *RowsColumnTypeScanType
NewRowsColumnTypeScanType creates a new instance of RowsColumnTypeScanType. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RowsColumnTypeScanType) Close ¶
func (_m *RowsColumnTypeScanType) Close() error
Close provides a mock function with given fields:
func (*RowsColumnTypeScanType) ColumnTypeScanType ¶
func (_m *RowsColumnTypeScanType) ColumnTypeScanType(index int) reflect.Type
ColumnTypeScanType provides a mock function with given fields: index
func (*RowsColumnTypeScanType) Columns ¶
func (_m *RowsColumnTypeScanType) Columns() []string
Columns provides a mock function with given fields:
type RowsNextResultSet ¶
RowsNextResultSet is an autogenerated mock type for the RowsNextResultSet type
func NewRowsNextResultSet ¶
func NewRowsNextResultSet(t mockConstructorTestingTNewRowsNextResultSet) *RowsNextResultSet
NewRowsNextResultSet creates a new instance of RowsNextResultSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*RowsNextResultSet) Close ¶
func (_m *RowsNextResultSet) Close() error
Close provides a mock function with given fields:
func (*RowsNextResultSet) Columns ¶
func (_m *RowsNextResultSet) Columns() []string
Columns provides a mock function with given fields:
func (*RowsNextResultSet) HasNextResultSet ¶
func (_m *RowsNextResultSet) HasNextResultSet() bool
HasNextResultSet provides a mock function with given fields:
func (*RowsNextResultSet) Next ¶
func (_m *RowsNextResultSet) Next(dest []driver.Value) error
Next provides a mock function with given fields: dest
func (*RowsNextResultSet) NextResultSet ¶
func (_m *RowsNextResultSet) NextResultSet() error
NextResultSet provides a mock function with given fields:
type SessionResetter ¶
SessionResetter is an autogenerated mock type for the SessionResetter type
func NewSessionResetter ¶
func NewSessionResetter(t mockConstructorTestingTNewSessionResetter) *SessionResetter
NewSessionResetter creates a new instance of SessionResetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SessionResetter) ResetSession ¶
func (_m *SessionResetter) ResetSession(ctx context.Context) error
ResetSession provides a mock function with given fields: ctx
type StmtExecContext ¶
StmtExecContext is an autogenerated mock type for the StmtExecContext type
func NewStmtExecContext ¶
func NewStmtExecContext(t mockConstructorTestingTNewStmtExecContext) *StmtExecContext
NewStmtExecContext creates a new instance of StmtExecContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StmtExecContext) ExecContext ¶
func (_m *StmtExecContext) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
ExecContext provides a mock function with given fields: ctx, args
type StmtQueryContext ¶
StmtQueryContext is an autogenerated mock type for the StmtQueryContext type
func NewStmtQueryContext ¶
func NewStmtQueryContext(t mockConstructorTestingTNewStmtQueryContext) *StmtQueryContext
NewStmtQueryContext creates a new instance of StmtQueryContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*StmtQueryContext) QueryContext ¶
func (_m *StmtQueryContext) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
QueryContext provides a mock function with given fields: ctx, args
type Tx ¶
Tx is an autogenerated mock type for the Tx type
type Validator ¶
Validator is an autogenerated mock type for the Validator type
func NewValidator ¶
func NewValidator(t mockConstructorTestingTNewValidator) *Validator
NewValidator creates a new instance of Validator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
type ValueConverter ¶
ValueConverter is an autogenerated mock type for the ValueConverter type
func NewValueConverter ¶
func NewValueConverter(t mockConstructorTestingTNewValueConverter) *ValueConverter
NewValueConverter creates a new instance of ValueConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ValueConverter) ConvertValue ¶
func (_m *ValueConverter) ConvertValue(v interface{}) (driver.Value, error)
ConvertValue provides a mock function with given fields: v
Source Files ¶
- ColumnConverter.go
- Conn.go
- ConnBeginTx.go
- ConnPrepareContext.go
- Connector.go
- Driver.go
- DriverContext.go
- Execer.go
- ExecerContext.go
- NamedValueChecker.go
- Pinger.go
- Queryer.go
- QueryerContext.go
- Result.go
- Rows.go
- RowsColumnTypeDatabaseTypeName.go
- RowsColumnTypeLength.go
- RowsColumnTypeNullable.go
- RowsColumnTypePrecisionScale.go
- RowsColumnTypeScanType.go
- RowsNextResultSet.go
- SessionResetter.go
- Stmt.go
- StmtExecContext.go
- StmtQueryContext.go
- Tx.go
- Validator.go
- ValueConverter.go
- Valuer.go
- decimalDecompose.go