Documentation ¶
Overview ¶
Package mock_sqlc is a generated GoMock package.
Package mock_sqlc is a generated GoMock package.
Package mock_sqlc is a generated GoMock package.
Index ¶
- type MockDBTX
- func (m *MockDBTX) EXPECT() *MockDBTXMockRecorder
- func (m *MockDBTX) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)
- func (m *MockDBTX) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
- func (m *MockDBTX) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) pgx.Row
- type MockDBTXMockRecorder
- type MockQuerier
- func (m *MockQuerier) CreateUser(ctx context.Context, arg sqlc.CreateUserParams) (sqlc.User, error)
- func (m *MockQuerier) DeleteUser(ctx context.Context, id int64) error
- func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder
- func (m *MockQuerier) GetUser(ctx context.Context, id int64) (sqlc.User, error)
- func (m *MockQuerier) ListUsers(ctx context.Context, arg sqlc.ListUsersParams) ([]sqlc.User, error)
- func (m *MockQuerier) UpdateUser(ctx context.Context, arg sqlc.UpdateUserParams) (sqlc.User, error)
- type MockQuerierMockRecorder
- func (mr *MockQuerierMockRecorder) CreateUser(ctx, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) DeleteUser(ctx, id interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) GetUser(ctx, id interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) ListUsers(ctx, arg interface{}) *gomock.Call
- func (mr *MockQuerierMockRecorder) UpdateUser(ctx, arg interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDBTX ¶
type MockDBTX struct {
// contains filtered or unexported fields
}
MockDBTX is a mock of DBTX interface.
func NewMockDBTX ¶
func NewMockDBTX(ctrl *gomock.Controller) *MockDBTX
NewMockDBTX creates a new mock instance.
func (*MockDBTX) EXPECT ¶
func (m *MockDBTX) EXPECT() *MockDBTXMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBTX) Exec ¶
func (m *MockDBTX) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)
Exec mocks base method.
type MockDBTXMockRecorder ¶
type MockDBTXMockRecorder struct {
// contains filtered or unexported fields
}
MockDBTXMockRecorder is the mock recorder for MockDBTX.
func (*MockDBTXMockRecorder) Exec ¶
func (mr *MockDBTXMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockDBTXMockRecorder) Query ¶
func (mr *MockDBTXMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockDBTXMockRecorder) QueryRow ¶
func (mr *MockDBTXMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
type MockQuerier ¶
type MockQuerier struct {
// contains filtered or unexported fields
}
MockQuerier is a mock of Querier interface.
func NewMockQuerier ¶
func NewMockQuerier(ctrl *gomock.Controller) *MockQuerier
NewMockQuerier creates a new mock instance.
func (*MockQuerier) CreateUser ¶
func (m *MockQuerier) CreateUser(ctx context.Context, arg sqlc.CreateUserParams) (sqlc.User, error)
CreateUser mocks base method.
func (*MockQuerier) DeleteUser ¶
func (m *MockQuerier) DeleteUser(ctx context.Context, id int64) error
DeleteUser mocks base method.
func (*MockQuerier) EXPECT ¶
func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQuerier) ListUsers ¶
func (m *MockQuerier) ListUsers(ctx context.Context, arg sqlc.ListUsersParams) ([]sqlc.User, error)
ListUsers mocks base method.
func (*MockQuerier) UpdateUser ¶
func (m *MockQuerier) UpdateUser(ctx context.Context, arg sqlc.UpdateUserParams) (sqlc.User, error)
UpdateUser mocks base method.
type MockQuerierMockRecorder ¶
type MockQuerierMockRecorder struct {
// contains filtered or unexported fields
}
MockQuerierMockRecorder is the mock recorder for MockQuerier.
func (*MockQuerierMockRecorder) CreateUser ¶
func (mr *MockQuerierMockRecorder) CreateUser(ctx, arg interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockQuerierMockRecorder) DeleteUser ¶
func (mr *MockQuerierMockRecorder) DeleteUser(ctx, id interface{}) *gomock.Call
DeleteUser indicates an expected call of DeleteUser.
func (*MockQuerierMockRecorder) GetUser ¶
func (mr *MockQuerierMockRecorder) GetUser(ctx, id interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockQuerierMockRecorder) ListUsers ¶
func (mr *MockQuerierMockRecorder) ListUsers(ctx, arg interface{}) *gomock.Call
ListUsers indicates an expected call of ListUsers.
func (*MockQuerierMockRecorder) UpdateUser ¶
func (mr *MockQuerierMockRecorder) UpdateUser(ctx, arg interface{}) *gomock.Call
UpdateUser indicates an expected call of UpdateUser.