Versions in this module Expand all Collapse all v0 v0.0.1 Nov 4, 2022 Changes in this version + func MockSQLWithAnyArgs(sql string, argsCount int) []interface + type FakeRDbConn struct + func NewFakeRDbConn() *FakeRDbConn + func (conn *FakeRDbConn) Begin() (rdb.Tx, error) + func (conn *FakeRDbConn) Exec(sql string, args ...interface{}) (rdb.ExecResult, error) + func (conn *FakeRDbConn) Query(sql string, args ...interface{}) (rdb.RowsResult, error) + func (conn *FakeRDbConn) QueryRow(sql string, args ...interface{}) rdb.RowResult + func (conn *FakeRDbConn) ToHandle() *rdb.Handle + type FakeRDbExecResult struct + func (result *FakeRDbExecResult) IsDelete() bool + func (result *FakeRDbExecResult) IsInsert() bool + func (result *FakeRDbExecResult) IsSelect() bool + func (result *FakeRDbExecResult) IsUpdate() bool + func (result *FakeRDbExecResult) RowsAffected() int64 + func (result *FakeRDbExecResult) String() string + type FakeRDbNtobReader struct + func (reader *FakeRDbNtobReader) Parse() (*big.Int, error) + func (reader *FakeRDbNtobReader) ScannableArg() interface{} + type FakeRDbRowResult struct + func (result *FakeRDbRowResult) Scan(dest ...interface{}) error + type FakeRDbRowsResult struct + func (result *FakeRDbRowsResult) Close() + func (result *FakeRDbRowsResult) Err() error + func (result *FakeRDbRowsResult) ExecResult() rdb.ExecResult + func (result *FakeRDbRowsResult) Next() bool + func (result *FakeRDbRowsResult) Scan(dest ...interface{}) error + type FakeRDbTx struct + func (tx *FakeRDbTx) Commit() error + func (tx *FakeRDbTx) Exec(sql string, args ...interface{}) (rdb.ExecResult, error) + func (tx *FakeRDbTx) Query(sql string, args ...interface{}) (rdb.RowsResult, error) + func (tx *FakeRDbTx) QueryRow(sql string, args ...interface{}) rdb.RowResult + func (tx *FakeRDbTx) Rollback() error + func (tx *FakeRDbTx) ToHandle() *rdb.Handle + type FakeRDbTypeConv struct + func (conv *FakeRDbTypeConv) Bton(bigInt *big.Int) interface{} + func (conv *FakeRDbTypeConv) Iton(i int) interface{} + func (conv *FakeRDbTypeConv) NtobReader() rdb.NtobReader + type MockRDbConn struct + func NewMockRDbConn() *MockRDbConn + func (conn *MockRDbConn) Begin() (rdb.Tx, error) + func (conn *MockRDbConn) BeginTx() (rdb.Tx, error) + func (conn *MockRDbConn) Exec(sql string, args ...interface{}) (rdb.ExecResult, error) + func (conn *MockRDbConn) Query(sql string, args ...interface{}) (rdb.RowsResult, error) + func (conn *MockRDbConn) QueryRow(sql string, args ...interface{}) rdb.RowResult + func (conn *MockRDbConn) ToHandle() *rdb.Handle + type MockRDbExecResult struct + func (result *MockRDbExecResult) IsDelete() bool + func (result *MockRDbExecResult) IsInsert() bool + func (result *MockRDbExecResult) IsSelect() bool + func (result *MockRDbExecResult) IsUpdate() bool + func (result *MockRDbExecResult) RowsAffected() int64 + func (result *MockRDbExecResult) String() string + type MockRDbNtobReader struct + func (reader *MockRDbNtobReader) Parse() (*big.Int, error) + func (reader *MockRDbNtobReader) ScannableArg() interface{} + type MockRDbRowResult struct + func (result *MockRDbRowResult) Scan(dest ...interface{}) error + type MockRDbRowsResult struct + func (result *MockRDbRowsResult) Close() + func (result *MockRDbRowsResult) Err() error + func (result *MockRDbRowsResult) ExecResult() rdb.ExecResult + func (result *MockRDbRowsResult) Next() bool + func (result *MockRDbRowsResult) Scan(dest ...interface{}) error + type MockRDbTx struct + func (tx *MockRDbTx) Commit() error + func (tx *MockRDbTx) Exec(sql string, args ...interface{}) (rdb.ExecResult, error) + func (tx *MockRDbTx) Query(sql string, args ...interface{}) (rdb.RowsResult, error) + func (tx *MockRDbTx) QueryRow(sql string, args ...interface{}) rdb.RowResult + func (tx *MockRDbTx) Rollback() error + func (tx *MockRDbTx) ToHandle() *rdb.Handle + type MockRDbTypeConv struct + func NewMockRDbTypeConv() *MockRDbTypeConv + func (conv *MockRDbTypeConv) Bton(bigInt *big.Int) interface{} + func (conv *MockRDbTypeConv) Iton(i int) interface{} + func (conv *MockRDbTypeConv) NtobReader() rdb.NtobReader