mocks

package
v2.22.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_database is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Follower

type Follower struct {
	// contains filtered or unexported fields
}

Follower is a mock of Follower interface.

func NewFollower

func NewFollower(ctrl *gomock.Controller) *Follower

NewFollower creates a new mock instance.

func (*Follower) EXPECT

func (m *Follower) EXPECT() *FollowerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Follower) Get

func (m *Follower) Get(dest interface{}, query string, args ...interface{}) error

Get mocks base method.

func (*Follower) GetContext

func (m *Follower) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

GetContext mocks base method.

func (*Follower) NamedQuery

func (m *Follower) NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)

NamedQuery mocks base method.

func (*Follower) NamedQueryContext

func (m *Follower) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*sqlx.Rows, error)

NamedQueryContext mocks base method.

func (*Follower) Query

func (m *Follower) Query(query string, args ...interface{}) (*sql.Rows, error)

Query mocks base method.

func (*Follower) QueryContext

func (m *Follower) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

QueryContext mocks base method.

func (*Follower) QueryRow

func (m *Follower) QueryRow(query string, args ...interface{}) *sql.Row

QueryRow mocks base method.

func (*Follower) QueryRowContext

func (m *Follower) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row

QueryRowContext mocks base method.

func (*Follower) QueryRowxContext

func (m *Follower) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *sqlx.Row

QueryRowxContext mocks base method.

func (*Follower) QueryxContext

func (m *Follower) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)

QueryxContext mocks base method.

func (*Follower) Select

func (m *Follower) Select(dest interface{}, query string, args ...interface{}) error

Select mocks base method.

func (*Follower) SelectContext

func (m *Follower) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

SelectContext mocks base method.

type FollowerMockRecorder

type FollowerMockRecorder struct {
	// contains filtered or unexported fields
}

FollowerMockRecorder is the mock recorder for Follower.

func (*FollowerMockRecorder) Get

func (mr *FollowerMockRecorder) Get(dest, query interface{}, args ...interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*FollowerMockRecorder) GetContext

func (mr *FollowerMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call

GetContext indicates an expected call of GetContext.

func (*FollowerMockRecorder) NamedQuery

func (mr *FollowerMockRecorder) NamedQuery(query, arg interface{}) *gomock.Call

NamedQuery indicates an expected call of NamedQuery.

func (*FollowerMockRecorder) NamedQueryContext

func (mr *FollowerMockRecorder) NamedQueryContext(ctx, query, arg interface{}) *gomock.Call

NamedQueryContext indicates an expected call of NamedQueryContext.

func (*FollowerMockRecorder) Query

func (mr *FollowerMockRecorder) Query(query interface{}, args ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*FollowerMockRecorder) QueryContext

func (mr *FollowerMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryContext indicates an expected call of QueryContext.

func (*FollowerMockRecorder) QueryRow

func (mr *FollowerMockRecorder) QueryRow(query interface{}, args ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*FollowerMockRecorder) QueryRowContext

func (mr *FollowerMockRecorder) QueryRowContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

func (*FollowerMockRecorder) QueryRowxContext

func (mr *FollowerMockRecorder) QueryRowxContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryRowxContext indicates an expected call of QueryRowxContext.

func (*FollowerMockRecorder) QueryxContext

func (mr *FollowerMockRecorder) QueryxContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryxContext indicates an expected call of QueryxContext.

func (*FollowerMockRecorder) Select

func (mr *FollowerMockRecorder) Select(dest, query interface{}, args ...interface{}) *gomock.Call

Select indicates an expected call of Select.

func (*FollowerMockRecorder) SelectContext

func (mr *FollowerMockRecorder) SelectContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call

SelectContext indicates an expected call of SelectContext.

type Master

type Master struct {
	// contains filtered or unexported fields
}

Master is a mock of Master interface.

func NewMaster

func NewMaster(ctrl *gomock.Controller) *Master

NewMaster creates a new mock instance.

func (*Master) Begin

func (m *Master) Begin() (*sql.Tx, error)

Begin mocks base method.

func (*Master) BeginTx

func (m *Master) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

BeginTx mocks base method.

func (*Master) BindNamed

func (m *Master) BindNamed(query string, arg interface{}) (string, []interface{}, error)

BindNamed mocks base method.

func (*Master) EXPECT

func (m *Master) EXPECT() *MasterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Master) Exec

func (m *Master) Exec(query string, args ...interface{}) (sql.Result, error)

Exec mocks base method.

func (*Master) ExecContext

func (m *Master) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

ExecContext mocks base method.

func (*Master) NamedExec

func (m *Master) NamedExec(query string, arg interface{}) (sql.Result, error)

NamedExec mocks base method.

func (*Master) NamedExecContext

func (m *Master) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)

NamedExecContext mocks base method.

func (*Master) Rebind

func (m *Master) Rebind(sql string) string

Rebind mocks base method.

type MasterMockRecorder

type MasterMockRecorder struct {
	// contains filtered or unexported fields
}

MasterMockRecorder is the mock recorder for Master.

func (*MasterMockRecorder) Begin

func (mr *MasterMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin.

func (*MasterMockRecorder) BeginTx

func (mr *MasterMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MasterMockRecorder) BindNamed

func (mr *MasterMockRecorder) BindNamed(query, arg interface{}) *gomock.Call

BindNamed indicates an expected call of BindNamed.

func (*MasterMockRecorder) Exec

func (mr *MasterMockRecorder) Exec(query interface{}, args ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MasterMockRecorder) ExecContext

func (mr *MasterMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MasterMockRecorder) NamedExec

func (mr *MasterMockRecorder) NamedExec(query, arg interface{}) *gomock.Call

NamedExec indicates an expected call of NamedExec.

func (*MasterMockRecorder) NamedExecContext

func (mr *MasterMockRecorder) NamedExecContext(ctx, query, arg interface{}) *gomock.Call

NamedExecContext indicates an expected call of NamedExecContext.

func (*MasterMockRecorder) Rebind

func (mr *MasterMockRecorder) Rebind(sql interface{}) *gomock.Call

Rebind indicates an expected call of Rebind.

type MockFollower added in v2.22.1

type MockFollower struct {
	// contains filtered or unexported fields
}

MockFollower is a mock of Follower interface.

func NewMockFollower added in v2.22.1

func NewMockFollower(ctrl *gomock.Controller) *MockFollower

NewMockFollower creates a new mock instance.

func (*MockFollower) EXPECT added in v2.22.1

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFollower) Get added in v2.22.1

func (m *MockFollower) Get(dest any, query string, args ...any) error

Get mocks base method.

func (*MockFollower) GetContext added in v2.22.1

func (m *MockFollower) GetContext(ctx context.Context, dest any, query string, args ...any) error

GetContext mocks base method.

func (*MockFollower) NamedQuery added in v2.22.1

func (m *MockFollower) NamedQuery(query string, arg any) (*sqlx.Rows, error)

NamedQuery mocks base method.

func (*MockFollower) NamedQueryContext added in v2.22.1

func (m *MockFollower) NamedQueryContext(ctx context.Context, query string, arg any) (*sqlx.Rows, error)

NamedQueryContext mocks base method.

func (*MockFollower) Query added in v2.22.1

func (m *MockFollower) Query(query string, args ...any) (*sql.Rows, error)

Query mocks base method.

func (*MockFollower) QueryContext added in v2.22.1

func (m *MockFollower) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)

QueryContext mocks base method.

func (*MockFollower) QueryRow added in v2.22.1

func (m *MockFollower) QueryRow(query string, args ...any) *sql.Row

QueryRow mocks base method.

func (*MockFollower) QueryRowContext added in v2.22.1

func (m *MockFollower) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row

QueryRowContext mocks base method.

func (*MockFollower) QueryRowxContext added in v2.22.1

func (m *MockFollower) QueryRowxContext(ctx context.Context, query string, args ...any) *sqlx.Row

QueryRowxContext mocks base method.

func (*MockFollower) QueryxContext added in v2.22.1

func (m *MockFollower) QueryxContext(ctx context.Context, query string, args ...any) (*sqlx.Rows, error)

QueryxContext mocks base method.

func (*MockFollower) Rebind added in v2.22.1

func (m *MockFollower) Rebind(sql string) string

Rebind mocks base method.

func (*MockFollower) Select added in v2.22.1

func (m *MockFollower) Select(dest any, query string, args ...any) error

Select mocks base method.

func (*MockFollower) SelectContext added in v2.22.1

func (m *MockFollower) SelectContext(ctx context.Context, dest any, query string, args ...any) error

SelectContext mocks base method.

type MockFollowerMockRecorder added in v2.22.1

type MockFollowerMockRecorder struct {
	// contains filtered or unexported fields
}

MockFollowerMockRecorder is the mock recorder for MockFollower.

func (*MockFollowerMockRecorder) Get added in v2.22.1

func (mr *MockFollowerMockRecorder) Get(dest, query any, args ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockFollowerMockRecorder) GetContext added in v2.22.1

func (mr *MockFollowerMockRecorder) GetContext(ctx, dest, query any, args ...any) *gomock.Call

GetContext indicates an expected call of GetContext.

func (*MockFollowerMockRecorder) NamedQuery added in v2.22.1

func (mr *MockFollowerMockRecorder) NamedQuery(query, arg any) *gomock.Call

NamedQuery indicates an expected call of NamedQuery.

func (*MockFollowerMockRecorder) NamedQueryContext added in v2.22.1

func (mr *MockFollowerMockRecorder) NamedQueryContext(ctx, query, arg any) *gomock.Call

NamedQueryContext indicates an expected call of NamedQueryContext.

func (*MockFollowerMockRecorder) Query added in v2.22.1

func (mr *MockFollowerMockRecorder) Query(query any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockFollowerMockRecorder) QueryContext added in v2.22.1

func (mr *MockFollowerMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call

QueryContext indicates an expected call of QueryContext.

func (*MockFollowerMockRecorder) QueryRow added in v2.22.1

func (mr *MockFollowerMockRecorder) QueryRow(query any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockFollowerMockRecorder) QueryRowContext added in v2.22.1

func (mr *MockFollowerMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

func (*MockFollowerMockRecorder) QueryRowxContext added in v2.22.1

func (mr *MockFollowerMockRecorder) QueryRowxContext(ctx, query any, args ...any) *gomock.Call

QueryRowxContext indicates an expected call of QueryRowxContext.

func (*MockFollowerMockRecorder) QueryxContext added in v2.22.1

func (mr *MockFollowerMockRecorder) QueryxContext(ctx, query any, args ...any) *gomock.Call

QueryxContext indicates an expected call of QueryxContext.

func (*MockFollowerMockRecorder) Rebind added in v2.22.1

func (mr *MockFollowerMockRecorder) Rebind(sql any) *gomock.Call

Rebind indicates an expected call of Rebind.

func (*MockFollowerMockRecorder) Select added in v2.22.1

func (mr *MockFollowerMockRecorder) Select(dest, query any, args ...any) *gomock.Call

Select indicates an expected call of Select.

func (*MockFollowerMockRecorder) SelectContext added in v2.22.1

func (mr *MockFollowerMockRecorder) SelectContext(ctx, dest, query any, args ...any) *gomock.Call

SelectContext indicates an expected call of SelectContext.

type MockISQL added in v2.22.1

type MockISQL struct {
	// contains filtered or unexported fields
}

MockISQL is a mock of ISQL interface.

func NewMockISQL added in v2.22.1

func NewMockISQL(ctrl *gomock.Controller) *MockISQL

NewMockISQL creates a new mock instance.

func (*MockISQL) Begin added in v2.22.1

func (m *MockISQL) Begin() (*sql.Tx, error)

Begin mocks base method.

func (*MockISQL) BeginTx added in v2.22.1

func (m *MockISQL) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

BeginTx mocks base method.

func (*MockISQL) Beginx added in v2.22.1

func (m *MockISQL) Beginx() (*sqlx.Tx, error)

Beginx mocks base method.

func (*MockISQL) BindNamed added in v2.22.1

func (m *MockISQL) BindNamed(query string, arg any) (string, []any, error)

BindNamed mocks base method.

func (*MockISQL) EXPECT added in v2.22.1

func (m *MockISQL) EXPECT() *MockISQLMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockISQL) Exec added in v2.22.1

func (m *MockISQL) Exec(query string, args ...any) (sql.Result, error)

Exec mocks base method.

func (*MockISQL) ExecContext added in v2.22.1

func (m *MockISQL) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)

ExecContext mocks base method.

func (*MockISQL) Get added in v2.22.1

func (m *MockISQL) Get(dest any, query string, args ...any) error

Get mocks base method.

func (*MockISQL) GetContext added in v2.22.1

func (m *MockISQL) GetContext(ctx context.Context, dest any, query string, args ...any) error

GetContext mocks base method.

func (*MockISQL) GetTransaction added in v2.22.1

func (m *MockISQL) GetTransaction() database.Transactions

GetTransaction mocks base method.

func (*MockISQL) NamedExec added in v2.22.1

func (m *MockISQL) NamedExec(query string, arg any) (sql.Result, error)

NamedExec mocks base method.

func (*MockISQL) NamedExecContext added in v2.22.1

func (m *MockISQL) NamedExecContext(ctx context.Context, query string, arg any) (sql.Result, error)

NamedExecContext mocks base method.

func (*MockISQL) NamedQuery added in v2.22.1

func (m *MockISQL) NamedQuery(query string, arg any) (*sqlx.Rows, error)

NamedQuery mocks base method.

func (*MockISQL) NamedQueryContext added in v2.22.1

func (m *MockISQL) NamedQueryContext(ctx context.Context, query string, arg any) (*sqlx.Rows, error)

NamedQueryContext mocks base method.

func (*MockISQL) Query added in v2.22.1

func (m *MockISQL) Query(query string, args ...any) (*sql.Rows, error)

Query mocks base method.

func (*MockISQL) QueryContext added in v2.22.1

func (m *MockISQL) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)

QueryContext mocks base method.

func (*MockISQL) QueryRow added in v2.22.1

func (m *MockISQL) QueryRow(query string, args ...any) *sql.Row

QueryRow mocks base method.

func (*MockISQL) QueryRowContext added in v2.22.1

func (m *MockISQL) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row

QueryRowContext mocks base method.

func (*MockISQL) QueryRowxContext added in v2.22.1

func (m *MockISQL) QueryRowxContext(ctx context.Context, query string, args ...any) *sqlx.Row

QueryRowxContext mocks base method.

func (*MockISQL) QueryxContext added in v2.22.1

func (m *MockISQL) QueryxContext(ctx context.Context, query string, args ...any) (*sqlx.Rows, error)

QueryxContext mocks base method.

func (*MockISQL) Read added in v2.22.1

func (m *MockISQL) Read(ctx context.Context, opts *database.QueryOpts, additionalParams ...any) error

Read mocks base method.

func (*MockISQL) Rebind added in v2.22.1

func (m *MockISQL) Rebind(sql string) string

Rebind mocks base method.

func (*MockISQL) Select added in v2.22.1

func (m *MockISQL) Select(dest any, query string, args ...any) error

Select mocks base method.

func (*MockISQL) SelectContext added in v2.22.1

func (m *MockISQL) SelectContext(ctx context.Context, dest any, query string, args ...any) error

SelectContext mocks base method.

func (*MockISQL) Write added in v2.22.1

func (m *MockISQL) Write(ctx context.Context, opts *database.QueryOpts, isSoftDelete ...bool) (*database.CUDResponse, error)

Write mocks base method.

type MockISQLMockRecorder added in v2.22.1

type MockISQLMockRecorder struct {
	// contains filtered or unexported fields
}

MockISQLMockRecorder is the mock recorder for MockISQL.

func (*MockISQLMockRecorder) Begin added in v2.22.1

func (mr *MockISQLMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin.

func (*MockISQLMockRecorder) BeginTx added in v2.22.1

func (mr *MockISQLMockRecorder) BeginTx(ctx, opts any) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockISQLMockRecorder) Beginx added in v2.22.1

func (mr *MockISQLMockRecorder) Beginx() *gomock.Call

Beginx indicates an expected call of Beginx.

func (*MockISQLMockRecorder) BindNamed added in v2.22.1

func (mr *MockISQLMockRecorder) BindNamed(query, arg any) *gomock.Call

BindNamed indicates an expected call of BindNamed.

func (*MockISQLMockRecorder) Exec added in v2.22.1

func (mr *MockISQLMockRecorder) Exec(query any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockISQLMockRecorder) ExecContext added in v2.22.1

func (mr *MockISQLMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockISQLMockRecorder) Get added in v2.22.1

func (mr *MockISQLMockRecorder) Get(dest, query any, args ...any) *gomock.Call

Get indicates an expected call of Get.

func (*MockISQLMockRecorder) GetContext added in v2.22.1

func (mr *MockISQLMockRecorder) GetContext(ctx, dest, query any, args ...any) *gomock.Call

GetContext indicates an expected call of GetContext.

func (*MockISQLMockRecorder) GetTransaction added in v2.22.1

func (mr *MockISQLMockRecorder) GetTransaction() *gomock.Call

GetTransaction indicates an expected call of GetTransaction.

func (*MockISQLMockRecorder) NamedExec added in v2.22.1

func (mr *MockISQLMockRecorder) NamedExec(query, arg any) *gomock.Call

NamedExec indicates an expected call of NamedExec.

func (*MockISQLMockRecorder) NamedExecContext added in v2.22.1

func (mr *MockISQLMockRecorder) NamedExecContext(ctx, query, arg any) *gomock.Call

NamedExecContext indicates an expected call of NamedExecContext.

func (*MockISQLMockRecorder) NamedQuery added in v2.22.1

func (mr *MockISQLMockRecorder) NamedQuery(query, arg any) *gomock.Call

NamedQuery indicates an expected call of NamedQuery.

func (*MockISQLMockRecorder) NamedQueryContext added in v2.22.1

func (mr *MockISQLMockRecorder) NamedQueryContext(ctx, query, arg any) *gomock.Call

NamedQueryContext indicates an expected call of NamedQueryContext.

func (*MockISQLMockRecorder) Query added in v2.22.1

func (mr *MockISQLMockRecorder) Query(query any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockISQLMockRecorder) QueryContext added in v2.22.1

func (mr *MockISQLMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call

QueryContext indicates an expected call of QueryContext.

func (*MockISQLMockRecorder) QueryRow added in v2.22.1

func (mr *MockISQLMockRecorder) QueryRow(query any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockISQLMockRecorder) QueryRowContext added in v2.22.1

func (mr *MockISQLMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

func (*MockISQLMockRecorder) QueryRowxContext added in v2.22.1

func (mr *MockISQLMockRecorder) QueryRowxContext(ctx, query any, args ...any) *gomock.Call

QueryRowxContext indicates an expected call of QueryRowxContext.

func (*MockISQLMockRecorder) QueryxContext added in v2.22.1

func (mr *MockISQLMockRecorder) QueryxContext(ctx, query any, args ...any) *gomock.Call

QueryxContext indicates an expected call of QueryxContext.

func (*MockISQLMockRecorder) Read added in v2.22.1

func (mr *MockISQLMockRecorder) Read(ctx, opts any, additionalParams ...any) *gomock.Call

Read indicates an expected call of Read.

func (*MockISQLMockRecorder) Rebind added in v2.22.1

func (mr *MockISQLMockRecorder) Rebind(sql any) *gomock.Call

Rebind indicates an expected call of Rebind.

func (*MockISQLMockRecorder) Select added in v2.22.1

func (mr *MockISQLMockRecorder) Select(dest, query any, args ...any) *gomock.Call

Select indicates an expected call of Select.

func (*MockISQLMockRecorder) SelectContext added in v2.22.1

func (mr *MockISQLMockRecorder) SelectContext(ctx, dest, query any, args ...any) *gomock.Call

SelectContext indicates an expected call of SelectContext.

func (*MockISQLMockRecorder) Write added in v2.22.1

func (mr *MockISQLMockRecorder) Write(ctx, opts any, isSoftDelete ...any) *gomock.Call

Write indicates an expected call of Write.

type MockMaster added in v2.22.1

type MockMaster struct {
	// contains filtered or unexported fields
}

MockMaster is a mock of Master interface.

func NewMockMaster added in v2.22.1

func NewMockMaster(ctrl *gomock.Controller) *MockMaster

NewMockMaster creates a new mock instance.

func (*MockMaster) Begin added in v2.22.1

func (m *MockMaster) Begin() (*sql.Tx, error)

Begin mocks base method.

func (*MockMaster) BeginTx added in v2.22.1

func (m *MockMaster) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

BeginTx mocks base method.

func (*MockMaster) Beginx added in v2.22.1

func (m *MockMaster) Beginx() (*sqlx.Tx, error)

Beginx mocks base method.

func (*MockMaster) BindNamed added in v2.22.1

func (m *MockMaster) BindNamed(query string, arg any) (string, []any, error)

BindNamed mocks base method.

func (*MockMaster) EXPECT added in v2.22.1

func (m *MockMaster) EXPECT() *MockMasterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMaster) Exec added in v2.22.1

func (m *MockMaster) Exec(query string, args ...any) (sql.Result, error)

Exec mocks base method.

func (*MockMaster) ExecContext added in v2.22.1

func (m *MockMaster) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)

ExecContext mocks base method.

func (*MockMaster) NamedExec added in v2.22.1

func (m *MockMaster) NamedExec(query string, arg any) (sql.Result, error)

NamedExec mocks base method.

func (*MockMaster) NamedExecContext added in v2.22.1

func (m *MockMaster) NamedExecContext(ctx context.Context, query string, arg any) (sql.Result, error)

NamedExecContext mocks base method.

func (*MockMaster) QueryRow added in v2.22.1

func (m *MockMaster) QueryRow(query string, args ...any) *sql.Row

QueryRow mocks base method.

func (*MockMaster) QueryRowContext added in v2.22.1

func (m *MockMaster) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row

QueryRowContext mocks base method.

func (*MockMaster) Rebind added in v2.22.1

func (m *MockMaster) Rebind(sql string) string

Rebind mocks base method.

type MockMasterMockRecorder added in v2.22.1

type MockMasterMockRecorder struct {
	// contains filtered or unexported fields
}

MockMasterMockRecorder is the mock recorder for MockMaster.

func (*MockMasterMockRecorder) Begin added in v2.22.1

func (mr *MockMasterMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin.

func (*MockMasterMockRecorder) BeginTx added in v2.22.1

func (mr *MockMasterMockRecorder) BeginTx(ctx, opts any) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockMasterMockRecorder) Beginx added in v2.22.1

func (mr *MockMasterMockRecorder) Beginx() *gomock.Call

Beginx indicates an expected call of Beginx.

func (*MockMasterMockRecorder) BindNamed added in v2.22.1

func (mr *MockMasterMockRecorder) BindNamed(query, arg any) *gomock.Call

BindNamed indicates an expected call of BindNamed.

func (*MockMasterMockRecorder) Exec added in v2.22.1

func (mr *MockMasterMockRecorder) Exec(query any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockMasterMockRecorder) ExecContext added in v2.22.1

func (mr *MockMasterMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockMasterMockRecorder) NamedExec added in v2.22.1

func (mr *MockMasterMockRecorder) NamedExec(query, arg any) *gomock.Call

NamedExec indicates an expected call of NamedExec.

func (*MockMasterMockRecorder) NamedExecContext added in v2.22.1

func (mr *MockMasterMockRecorder) NamedExecContext(ctx, query, arg any) *gomock.Call

NamedExecContext indicates an expected call of NamedExecContext.

func (*MockMasterMockRecorder) QueryRow added in v2.22.1

func (mr *MockMasterMockRecorder) QueryRow(query any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockMasterMockRecorder) QueryRowContext added in v2.22.1

func (mr *MockMasterMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

func (*MockMasterMockRecorder) Rebind added in v2.22.1

func (mr *MockMasterMockRecorder) Rebind(sql any) *gomock.Call

Rebind indicates an expected call of Rebind.

type MockcommonDB added in v2.22.1

type MockcommonDB struct {
	// contains filtered or unexported fields
}

MockcommonDB is a mock of commonDB interface.

func NewMockcommonDB added in v2.22.1

func NewMockcommonDB(ctrl *gomock.Controller) *MockcommonDB

NewMockcommonDB creates a new mock instance.

func (*MockcommonDB) EXPECT added in v2.22.1

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockcommonDB) QueryRow added in v2.22.1

func (m *MockcommonDB) QueryRow(query string, args ...any) *sql.Row

QueryRow mocks base method.

func (*MockcommonDB) QueryRowContext added in v2.22.1

func (m *MockcommonDB) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row

QueryRowContext mocks base method.

func (*MockcommonDB) Rebind added in v2.22.1

func (m *MockcommonDB) Rebind(sql string) string

Rebind mocks base method.

type MockcommonDBMockRecorder added in v2.22.1

type MockcommonDBMockRecorder struct {
	// contains filtered or unexported fields
}

MockcommonDBMockRecorder is the mock recorder for MockcommonDB.

func (*MockcommonDBMockRecorder) QueryRow added in v2.22.1

func (mr *MockcommonDBMockRecorder) QueryRow(query any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockcommonDBMockRecorder) QueryRowContext added in v2.22.1

func (mr *MockcommonDBMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

func (*MockcommonDBMockRecorder) Rebind added in v2.22.1

func (mr *MockcommonDBMockRecorder) Rebind(sql any) *gomock.Call

Rebind indicates an expected call of Rebind.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL