Documentation ¶
Overview ¶
Package mock_sql is a generated GoMock package.
Package mock_sql is a generated GoMock package.
Package mock_sql is a generated GoMock package.
Package mock_sql is a generated GoMock package.
Index ¶
- type MockCommand
- func (m *MockCommand) BeginTx(ctx context.Context, name string, opts sql0.TxOptions) (sql0.CommandTx, error)
- func (m *MockCommand) Close() error
- func (m *MockCommand) EXPECT() *MockCommandMockRecorder
- func (m *MockCommand) Exec(ctx context.Context, name, query string, args ...any) (sql.Result, error)
- func (m *MockCommand) Get(ctx context.Context, name, query string, dest any, args ...any) error
- func (m *MockCommand) In(query string, args ...any) (string, []any, error)
- func (m *MockCommand) NamedExec(ctx context.Context, name, query string, args any) (sql.Result, error)
- func (m *MockCommand) NamedQuery(ctx context.Context, name, query string, arg any) (*sqlx.Rows, error)
- func (m *MockCommand) Ping(ctx context.Context) error
- func (m *MockCommand) Prepare(ctx context.Context, name, query string) (sql0.CommandStmt, error)
- func (m *MockCommand) Query(ctx context.Context, name, query string, args ...any) (*sqlx.Rows, error)
- func (m *MockCommand) QueryIn(ctx context.Context, name, query string, args ...any) (*sqlx.Rows, error)
- func (m *MockCommand) QueryRow(ctx context.Context, name, query string, args ...any) (*sqlx.Row, error)
- func (m *MockCommand) Rebind(query string) string
- type MockCommandMockRecorder
- func (mr *MockCommandMockRecorder) BeginTx(ctx, name, opts any) *gomock.Call
- func (mr *MockCommandMockRecorder) Close() *gomock.Call
- func (mr *MockCommandMockRecorder) Exec(ctx, name, query any, args ...any) *gomock.Call
- func (mr *MockCommandMockRecorder) Get(ctx, name, query, dest any, args ...any) *gomock.Call
- func (mr *MockCommandMockRecorder) In(query any, args ...any) *gomock.Call
- func (mr *MockCommandMockRecorder) NamedExec(ctx, name, query, args any) *gomock.Call
- func (mr *MockCommandMockRecorder) NamedQuery(ctx, name, query, arg any) *gomock.Call
- func (mr *MockCommandMockRecorder) Ping(ctx any) *gomock.Call
- func (mr *MockCommandMockRecorder) Prepare(ctx, name, query any) *gomock.Call
- func (mr *MockCommandMockRecorder) Query(ctx, name, query any, args ...any) *gomock.Call
- func (mr *MockCommandMockRecorder) QueryIn(ctx, name, query any, args ...any) *gomock.Call
- func (mr *MockCommandMockRecorder) QueryRow(ctx, name, query any, args ...any) *gomock.Call
- func (mr *MockCommandMockRecorder) Rebind(query any) *gomock.Call
- type MockCommandStmt
- func (m *MockCommandStmt) Close() error
- func (m *MockCommandStmt) EXPECT() *MockCommandStmtMockRecorder
- func (m *MockCommandStmt) Exec(name string, args ...any) (sql.Result, error)
- func (m *MockCommandStmt) Get(name string, dest any, args ...any) error
- func (m *MockCommandStmt) Query(name string, args ...any) (*sqlx.Rows, error)
- func (m *MockCommandStmt) QueryRow(name string, args ...any) (*sqlx.Row, error)
- func (m *MockCommandStmt) Select(name string, dest any, args ...any) error
- type MockCommandStmtMockRecorder
- func (mr *MockCommandStmtMockRecorder) Close() *gomock.Call
- func (mr *MockCommandStmtMockRecorder) Exec(name any, args ...any) *gomock.Call
- func (mr *MockCommandStmtMockRecorder) Get(name, dest any, args ...any) *gomock.Call
- func (mr *MockCommandStmtMockRecorder) Query(name any, args ...any) *gomock.Call
- func (mr *MockCommandStmtMockRecorder) QueryRow(name any, args ...any) *gomock.Call
- func (mr *MockCommandStmtMockRecorder) Select(name, dest any, args ...any) *gomock.Call
- type MockCommandTx
- func (m *MockCommandTx) Commit() error
- func (m *MockCommandTx) EXPECT() *MockCommandTxMockRecorder
- func (m *MockCommandTx) Exec(name, query string, args ...any) (sql.Result, error)
- func (m *MockCommandTx) Get(name, query string, dest any, args ...any) error
- func (m *MockCommandTx) NamedExec(name, query string, args any) (sql.Result, error)
- func (m *MockCommandTx) Prepare(name, query string) (sql0.CommandStmt, error)
- func (m *MockCommandTx) Query(name, query string, args ...any) (*sqlx.Rows, error)
- func (m *MockCommandTx) QueryRow(name, query string, args ...any) (*sqlx.Row, error)
- func (m *MockCommandTx) Rebind(query string) string
- func (m *MockCommandTx) Rollback()
- func (m *MockCommandTx) Select(name, query string, dest any, args ...any) error
- func (m *MockCommandTx) Stmt(name string, stmt *sqlx.Stmt) sql0.CommandStmt
- type MockCommandTxMockRecorder
- func (mr *MockCommandTxMockRecorder) Commit() *gomock.Call
- func (mr *MockCommandTxMockRecorder) Exec(name, query any, args ...any) *gomock.Call
- func (mr *MockCommandTxMockRecorder) Get(name, query, dest any, args ...any) *gomock.Call
- func (mr *MockCommandTxMockRecorder) NamedExec(name, query, args any) *gomock.Call
- func (mr *MockCommandTxMockRecorder) Prepare(name, query any) *gomock.Call
- func (mr *MockCommandTxMockRecorder) Query(name, query any, args ...any) *gomock.Call
- func (mr *MockCommandTxMockRecorder) QueryRow(name, query any, args ...any) *gomock.Call
- func (mr *MockCommandTxMockRecorder) Rebind(query any) *gomock.Call
- func (mr *MockCommandTxMockRecorder) Rollback() *gomock.Call
- func (mr *MockCommandTxMockRecorder) Select(name, query, dest any, args ...any) *gomock.Call
- func (mr *MockCommandTxMockRecorder) Stmt(name, stmt any) *gomock.Call
- type MockInterface
- type MockInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommand ¶
type MockCommand struct {
// contains filtered or unexported fields
}
MockCommand is a mock of Command interface.
func NewMockCommand ¶
func NewMockCommand(ctrl *gomock.Controller) *MockCommand
NewMockCommand creates a new mock instance.
func (*MockCommand) BeginTx ¶
func (m *MockCommand) BeginTx(ctx context.Context, name string, opts sql0.TxOptions) (sql0.CommandTx, error)
BeginTx mocks base method.
func (*MockCommand) EXPECT ¶
func (m *MockCommand) EXPECT() *MockCommandMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommand) Exec ¶
func (m *MockCommand) Exec(ctx context.Context, name, query string, args ...any) (sql.Result, error)
Exec mocks base method.
func (*MockCommand) NamedExec ¶
func (m *MockCommand) NamedExec(ctx context.Context, name, query string, args any) (sql.Result, error)
NamedExec mocks base method.
func (*MockCommand) NamedQuery ¶
func (m *MockCommand) NamedQuery(ctx context.Context, name, query string, arg any) (*sqlx.Rows, error)
NamedQuery mocks base method.
func (*MockCommand) Ping ¶
func (m *MockCommand) Ping(ctx context.Context) error
Ping mocks base method.
func (*MockCommand) Prepare ¶
func (m *MockCommand) Prepare(ctx context.Context, name, query string) (sql0.CommandStmt, error)
Prepare mocks base method.
func (*MockCommand) Query ¶
func (m *MockCommand) Query(ctx context.Context, name, query string, args ...any) (*sqlx.Rows, error)
Query mocks base method.
func (*MockCommand) QueryIn ¶
func (m *MockCommand) QueryIn(ctx context.Context, name, query string, args ...any) (*sqlx.Rows, error)
QueryIn mocks base method.
func (*MockCommand) QueryRow ¶
func (m *MockCommand) QueryRow(ctx context.Context, name, query string, args ...any) (*sqlx.Row, error)
QueryRow mocks base method.
func (*MockCommand) Rebind ¶
func (m *MockCommand) Rebind(query string) string
Rebind mocks base method.
type MockCommandMockRecorder ¶
type MockCommandMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandMockRecorder is the mock recorder for MockCommand.
func (*MockCommandMockRecorder) BeginTx ¶
func (mr *MockCommandMockRecorder) BeginTx(ctx, name, opts any) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MockCommandMockRecorder) Close ¶
func (mr *MockCommandMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockCommandMockRecorder) Exec ¶
func (mr *MockCommandMockRecorder) Exec(ctx, name, query any, args ...any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockCommandMockRecorder) Get ¶
func (mr *MockCommandMockRecorder) Get(ctx, name, query, dest any, args ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockCommandMockRecorder) In ¶
func (mr *MockCommandMockRecorder) In(query any, args ...any) *gomock.Call
In indicates an expected call of In.
func (*MockCommandMockRecorder) NamedExec ¶
func (mr *MockCommandMockRecorder) NamedExec(ctx, name, query, args any) *gomock.Call
NamedExec indicates an expected call of NamedExec.
func (*MockCommandMockRecorder) NamedQuery ¶
func (mr *MockCommandMockRecorder) NamedQuery(ctx, name, query, arg any) *gomock.Call
NamedQuery indicates an expected call of NamedQuery.
func (*MockCommandMockRecorder) Ping ¶
func (mr *MockCommandMockRecorder) Ping(ctx any) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockCommandMockRecorder) Prepare ¶
func (mr *MockCommandMockRecorder) Prepare(ctx, name, query any) *gomock.Call
Prepare indicates an expected call of Prepare.
func (*MockCommandMockRecorder) Query ¶
func (mr *MockCommandMockRecorder) Query(ctx, name, query any, args ...any) *gomock.Call
Query indicates an expected call of Query.
func (*MockCommandMockRecorder) QueryIn ¶
func (mr *MockCommandMockRecorder) QueryIn(ctx, name, query any, args ...any) *gomock.Call
QueryIn indicates an expected call of QueryIn.
type MockCommandStmt ¶
type MockCommandStmt struct {
// contains filtered or unexported fields
}
MockCommandStmt is a mock of CommandStmt interface.
func NewMockCommandStmt ¶
func NewMockCommandStmt(ctrl *gomock.Controller) *MockCommandStmt
NewMockCommandStmt creates a new mock instance.
func (*MockCommandStmt) EXPECT ¶
func (m *MockCommandStmt) EXPECT() *MockCommandStmtMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommandStmt) Get ¶
func (m *MockCommandStmt) Get(name string, dest any, args ...any) error
Get mocks base method.
type MockCommandStmtMockRecorder ¶
type MockCommandStmtMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandStmtMockRecorder is the mock recorder for MockCommandStmt.
func (*MockCommandStmtMockRecorder) Close ¶
func (mr *MockCommandStmtMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockCommandStmtMockRecorder) Exec ¶
func (mr *MockCommandStmtMockRecorder) Exec(name any, args ...any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockCommandStmtMockRecorder) Get ¶
func (mr *MockCommandStmtMockRecorder) Get(name, dest any, args ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockCommandStmtMockRecorder) Query ¶
func (mr *MockCommandStmtMockRecorder) Query(name any, args ...any) *gomock.Call
Query indicates an expected call of Query.
type MockCommandTx ¶
type MockCommandTx struct {
// contains filtered or unexported fields
}
MockCommandTx is a mock of CommandTx interface.
func NewMockCommandTx ¶
func NewMockCommandTx(ctrl *gomock.Controller) *MockCommandTx
NewMockCommandTx creates a new mock instance.
func (*MockCommandTx) EXPECT ¶
func (m *MockCommandTx) EXPECT() *MockCommandTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommandTx) Get ¶
func (m *MockCommandTx) Get(name, query string, dest any, args ...any) error
Get mocks base method.
func (*MockCommandTx) Prepare ¶
func (m *MockCommandTx) Prepare(name, query string) (sql0.CommandStmt, error)
Prepare mocks base method.
func (*MockCommandTx) Rebind ¶
func (m *MockCommandTx) Rebind(query string) string
Rebind mocks base method.
func (*MockCommandTx) Select ¶
func (m *MockCommandTx) Select(name, query string, dest any, args ...any) error
Select mocks base method.
func (*MockCommandTx) Stmt ¶
func (m *MockCommandTx) Stmt(name string, stmt *sqlx.Stmt) sql0.CommandStmt
Stmt mocks base method.
type MockCommandTxMockRecorder ¶
type MockCommandTxMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandTxMockRecorder is the mock recorder for MockCommandTx.
func (*MockCommandTxMockRecorder) Commit ¶
func (mr *MockCommandTxMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockCommandTxMockRecorder) Exec ¶
func (mr *MockCommandTxMockRecorder) Exec(name, query any, args ...any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockCommandTxMockRecorder) Get ¶
func (mr *MockCommandTxMockRecorder) Get(name, query, dest any, args ...any) *gomock.Call
Get indicates an expected call of Get.
func (*MockCommandTxMockRecorder) NamedExec ¶
func (mr *MockCommandTxMockRecorder) NamedExec(name, query, args any) *gomock.Call
NamedExec indicates an expected call of NamedExec.
func (*MockCommandTxMockRecorder) Prepare ¶
func (mr *MockCommandTxMockRecorder) Prepare(name, query any) *gomock.Call
Prepare indicates an expected call of Prepare.
func (*MockCommandTxMockRecorder) Query ¶
func (mr *MockCommandTxMockRecorder) Query(name, query any, args ...any) *gomock.Call
Query indicates an expected call of Query.
func (*MockCommandTxMockRecorder) QueryRow ¶
func (mr *MockCommandTxMockRecorder) QueryRow(name, query any, args ...any) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockCommandTxMockRecorder) Rebind ¶
func (mr *MockCommandTxMockRecorder) Rebind(query any) *gomock.Call
Rebind indicates an expected call of Rebind.
func (*MockCommandTxMockRecorder) Rollback ¶
func (mr *MockCommandTxMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback.
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) Follower ¶
func (m *MockInterface) Follower() sql.Command
Follower mocks base method.
func (*MockInterface) Leader ¶
func (m *MockInterface) Leader() sql.Command
Leader mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) Follower ¶
func (mr *MockInterfaceMockRecorder) Follower() *gomock.Call
Follower indicates an expected call of Follower.
func (*MockInterfaceMockRecorder) Leader ¶
func (mr *MockInterfaceMockRecorder) Leader() *gomock.Call
Leader indicates an expected call of Leader.
func (*MockInterfaceMockRecorder) Stop ¶
func (mr *MockInterfaceMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.