Documentation ¶
Index ¶
- type MockDbDriver
- func (m *MockDbDriver) Begin() (driver.Tx, error)
- func (m *MockDbDriver) Close() error
- func (m *MockDbDriver) ColumnTypeLength(i int) (int64, bool)
- func (m *MockDbDriver) ColumnTypeScanType(i int) reflect.Type
- func (m *MockDbDriver) Columns() []string
- func (m *MockDbDriver) Commit() error
- func (m *MockDbDriver) Driver() *MockDbDriver
- func (m *MockDbDriver) Exec(args []driver.Value) (driver.Result, error)
- func (m *MockDbDriver) LastInsertId() (int64, error)
- func (m *MockDbDriver) Next(dest []driver.Value) error
- func (m *MockDbDriver) NumInput() int
- func (m *MockDbDriver) Open(conn string) (driver.Conn, error)
- func (m *MockDbDriver) Prepare(query string) (driver.Stmt, error)
- func (m *MockDbDriver) Query(args []driver.Value) (driver.Rows, error)
- func (m *MockDbDriver) Rollback() error
- func (m *MockDbDriver) RowsAffected() (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDbDriver ¶
type MockDbDriver struct { QueryValue string NumInputValue int LastInsertIDValue int64 RowsAffectedValue int64 ColumnsValue []string ColumnsTypeValue []reflect.Type ColumnsLength []int64 Rows [][]interface{} Cursor int64 }
func (*MockDbDriver) Close ¶
func (m *MockDbDriver) Close() error
func (*MockDbDriver) ColumnTypeLength ¶
func (m *MockDbDriver) ColumnTypeLength(i int) (int64, bool)
func (*MockDbDriver) ColumnTypeScanType ¶
func (m *MockDbDriver) ColumnTypeScanType(i int) reflect.Type
* to fullfill RowsColumnTypeScanType *
func (*MockDbDriver) Columns ¶
func (m *MockDbDriver) Columns() []string
func (*MockDbDriver) Commit ¶
func (m *MockDbDriver) Commit() error
func (*MockDbDriver) Driver ¶
func (m *MockDbDriver) Driver() *MockDbDriver
* MockDbDriver as Connection *
func (*MockDbDriver) LastInsertId ¶
func (m *MockDbDriver) LastInsertId() (int64, error)
* MockDbDriver as Result *
func (*MockDbDriver) Open ¶
func (m *MockDbDriver) Open(conn string) (driver.Conn, error)
* MockDbDriver as Driver *
func (*MockDbDriver) Rollback ¶
func (m *MockDbDriver) Rollback() error
func (*MockDbDriver) RowsAffected ¶
func (m *MockDbDriver) RowsAffected() (int64, error)
Click to show internal directories.
Click to hide internal directories.