dbmock

package
v0.1.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package dbmock is a generated GoMock package.

Package dbmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBeginner

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

MockBeginner is a mock of Beginner interface.

func NewMockBeginner

func NewMockBeginner(ctrl *gomock.Controller) *MockBeginner

NewMockBeginner creates a new mock instance.

func (*MockBeginner) Begin

Begin mocks base method.

func (*MockBeginner) EXPECT

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

type MockBeginnerMockRecorder

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

MockBeginnerMockRecorder is the mock recorder for MockBeginner.

func (*MockBeginnerMockRecorder) Begin

func (mr *MockBeginnerMockRecorder) Begin(ctx, opts any) *gomock.Call

Begin indicates an expected call of Begin.

type MockCollectableRows

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

MockCollectableRows is a mock of CollectableRows interface.

func NewMockCollectableRows

func NewMockCollectableRows(ctrl *gomock.Controller) *MockCollectableRows

NewMockCollectableRows creates a new mock instance.

func (*MockCollectableRows) Collect

func (m *MockCollectableRows) Collect(dest any) error

Collect mocks base method.

func (*MockCollectableRows) CollectExactlyOneRow

func (m *MockCollectableRows) CollectExactlyOneRow(dest any) error

CollectExactlyOneRow mocks base method.

func (*MockCollectableRows) CollectFirst

func (m *MockCollectableRows) CollectFirst(dest any) error

CollectFirst mocks base method.

func (*MockCollectableRows) EXPECT

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

type MockCollectableRowsMockRecorder

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

MockCollectableRowsMockRecorder is the mock recorder for MockCollectableRows.

func (*MockCollectableRowsMockRecorder) Collect

func (mr *MockCollectableRowsMockRecorder) Collect(dest any) *gomock.Call

Collect indicates an expected call of Collect.

func (*MockCollectableRowsMockRecorder) CollectExactlyOneRow

func (mr *MockCollectableRowsMockRecorder) CollectExactlyOneRow(dest any) *gomock.Call

CollectExactlyOneRow indicates an expected call of CollectExactlyOneRow.

func (*MockCollectableRowsMockRecorder) CollectFirst

func (mr *MockCollectableRowsMockRecorder) CollectFirst(dest any) *gomock.Call

CollectFirst indicates an expected call of CollectFirst.

type MockConnection

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

MockConnection is a mock of Connection interface.

func NewMockConnection

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

NewMockConnection creates a new mock instance.

func (*MockConnection) Begin

Begin mocks base method.

func (*MockConnection) EXPECT

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

func (*MockConnection) Exec

func (m *MockConnection) Exec(ctx context.Context, stmt string, args ...any) (int64, error)

Exec mocks base method.

func (*MockConnection) Migrate

func (m *MockConnection) Migrate(ctx context.Context) error

Migrate mocks base method.

func (*MockConnection) Ping

func (m *MockConnection) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockConnection) Query

func (m *MockConnection) Query(ctx context.Context, stmt string, args ...any) (database.Rows, error)

Query mocks base method.

func (*MockConnection) QueryRow

func (m *MockConnection) QueryRow(ctx context.Context, stmt string, args ...any) database.Row

QueryRow mocks base method.

func (*MockConnection) Release

func (m *MockConnection) Release(ctx context.Context) error

Release mocks base method.

type MockConnectionMockRecorder

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

MockConnectionMockRecorder is the mock recorder for MockConnection.

func (*MockConnectionMockRecorder) Begin

func (mr *MockConnectionMockRecorder) Begin(ctx, opts any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockConnectionMockRecorder) Exec

func (mr *MockConnectionMockRecorder) Exec(ctx, stmt any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockConnectionMockRecorder) Migrate

func (mr *MockConnectionMockRecorder) Migrate(ctx any) *gomock.Call

Migrate indicates an expected call of Migrate.

func (*MockConnectionMockRecorder) Ping

func (mr *MockConnectionMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockConnectionMockRecorder) Query

func (mr *MockConnectionMockRecorder) Query(ctx, stmt any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockConnectionMockRecorder) QueryRow

func (mr *MockConnectionMockRecorder) QueryRow(ctx, stmt any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockConnectionMockRecorder) Release

func (mr *MockConnectionMockRecorder) Release(ctx any) *gomock.Call

Release indicates an expected call of Release.

type MockExecutor

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

MockExecutor is a mock of Executor interface.

func NewMockExecutor

func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor

NewMockExecutor creates a new mock instance.

func (*MockExecutor) EXPECT

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

func (*MockExecutor) Exec

func (m *MockExecutor) Exec(ctx context.Context, stmt string, args ...any) (int64, error)

Exec mocks base method.

type MockExecutorMockRecorder

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

MockExecutorMockRecorder is the mock recorder for MockExecutor.

func (*MockExecutorMockRecorder) Exec

func (mr *MockExecutorMockRecorder) Exec(ctx, stmt any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

type MockPool

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

MockPool is a mock of Pool interface.

func NewMockPool

func NewMockPool(ctrl *gomock.Controller) *MockPool

NewMockPool creates a new mock instance.

func (*MockPool) Acquire

func (m *MockPool) Acquire(ctx context.Context) (database.Connection, error)

Acquire mocks base method.

func (*MockPool) Begin

Begin mocks base method.

func (*MockPool) Close

func (m *MockPool) Close(ctx context.Context) error

Close mocks base method.

func (*MockPool) EXPECT

func (m *MockPool) EXPECT() *MockPoolMockRecorder

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

func (*MockPool) Exec

func (m *MockPool) Exec(ctx context.Context, stmt string, args ...any) (int64, error)

Exec mocks base method.

func (*MockPool) Migrate

func (m *MockPool) Migrate(ctx context.Context) error

Migrate mocks base method.

func (*MockPool) Ping

func (m *MockPool) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockPool) Query

func (m *MockPool) Query(ctx context.Context, stmt string, args ...any) (database.Rows, error)

Query mocks base method.

func (*MockPool) QueryRow

func (m *MockPool) QueryRow(ctx context.Context, stmt string, args ...any) database.Row

QueryRow mocks base method.

type MockPoolMockRecorder

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

MockPoolMockRecorder is the mock recorder for MockPool.

func (*MockPoolMockRecorder) Acquire

func (mr *MockPoolMockRecorder) Acquire(ctx any) *gomock.Call

Acquire indicates an expected call of Acquire.

func (*MockPoolMockRecorder) Begin

func (mr *MockPoolMockRecorder) Begin(ctx, opts any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockPoolMockRecorder) Close

func (mr *MockPoolMockRecorder) Close(ctx any) *gomock.Call

Close indicates an expected call of Close.

func (*MockPoolMockRecorder) Exec

func (mr *MockPoolMockRecorder) Exec(ctx, stmt any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockPoolMockRecorder) Migrate

func (mr *MockPoolMockRecorder) Migrate(ctx any) *gomock.Call

Migrate indicates an expected call of Migrate.

func (*MockPoolMockRecorder) Ping

func (mr *MockPoolMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockPoolMockRecorder) Query

func (mr *MockPoolMockRecorder) Query(ctx, stmt any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockPoolMockRecorder) QueryRow

func (mr *MockPoolMockRecorder) QueryRow(ctx, stmt any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

type MockPoolTest

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

MockPoolTest is a mock of PoolTest interface.

func NewMockPoolTest

func NewMockPoolTest(ctrl *gomock.Controller) *MockPoolTest

NewMockPoolTest creates a new mock instance.

func (*MockPoolTest) Acquire

func (m *MockPoolTest) Acquire(ctx context.Context) (database.Connection, error)

Acquire mocks base method.

func (*MockPoolTest) Begin

Begin mocks base method.

func (*MockPoolTest) Close

func (m *MockPoolTest) Close(ctx context.Context) error

Close mocks base method.

func (*MockPoolTest) EXPECT

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

func (*MockPoolTest) Exec

func (m *MockPoolTest) Exec(ctx context.Context, stmt string, args ...any) (int64, error)

Exec mocks base method.

func (*MockPoolTest) Migrate

func (m *MockPoolTest) Migrate(ctx context.Context) error

Migrate mocks base method.

func (*MockPoolTest) MigrateTest

func (m *MockPoolTest) MigrateTest(ctx context.Context) error

MigrateTest mocks base method.

func (*MockPoolTest) Ping

func (m *MockPoolTest) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockPoolTest) Query

func (m *MockPoolTest) Query(ctx context.Context, stmt string, args ...any) (database.Rows, error)

Query mocks base method.

func (*MockPoolTest) QueryRow

func (m *MockPoolTest) QueryRow(ctx context.Context, stmt string, args ...any) database.Row

QueryRow mocks base method.

func (*MockPoolTest) RawDB

func (m *MockPoolTest) RawDB() *sql.DB

RawDB mocks base method.

type MockPoolTestMockRecorder

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

MockPoolTestMockRecorder is the mock recorder for MockPoolTest.

func (*MockPoolTestMockRecorder) Acquire

func (mr *MockPoolTestMockRecorder) Acquire(ctx any) *gomock.Call

Acquire indicates an expected call of Acquire.

func (*MockPoolTestMockRecorder) Begin

func (mr *MockPoolTestMockRecorder) Begin(ctx, opts any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockPoolTestMockRecorder) Close

func (mr *MockPoolTestMockRecorder) Close(ctx any) *gomock.Call

Close indicates an expected call of Close.

func (*MockPoolTestMockRecorder) Exec

func (mr *MockPoolTestMockRecorder) Exec(ctx, stmt any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockPoolTestMockRecorder) Migrate

func (mr *MockPoolTestMockRecorder) Migrate(ctx any) *gomock.Call

Migrate indicates an expected call of Migrate.

func (*MockPoolTestMockRecorder) MigrateTest

func (mr *MockPoolTestMockRecorder) MigrateTest(ctx any) *gomock.Call

MigrateTest indicates an expected call of MigrateTest.

func (*MockPoolTestMockRecorder) Ping

func (mr *MockPoolTestMockRecorder) Ping(ctx any) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockPoolTestMockRecorder) Query

func (mr *MockPoolTestMockRecorder) Query(ctx, stmt any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockPoolTestMockRecorder) QueryRow

func (mr *MockPoolTestMockRecorder) QueryRow(ctx, stmt any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockPoolTestMockRecorder) RawDB

func (mr *MockPoolTestMockRecorder) RawDB() *gomock.Call

RawDB indicates an expected call of RawDB.

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) EXPECT

func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder

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

func (*MockQuerier) Query

func (m *MockQuerier) Query(ctx context.Context, stmt string, args ...any) (database.Rows, error)

Query mocks base method.

func (*MockQuerier) QueryRow

func (m *MockQuerier) QueryRow(ctx context.Context, stmt string, args ...any) database.Row

QueryRow mocks base method.

type MockQuerierMockRecorder

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

MockQuerierMockRecorder is the mock recorder for MockQuerier.

func (*MockQuerierMockRecorder) Query

func (mr *MockQuerierMockRecorder) Query(ctx, stmt any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockQuerierMockRecorder) QueryRow

func (mr *MockQuerierMockRecorder) QueryRow(ctx, stmt any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

type MockQueryExecutor

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

MockQueryExecutor is a mock of QueryExecutor interface.

func NewMockQueryExecutor

func NewMockQueryExecutor(ctrl *gomock.Controller) *MockQueryExecutor

NewMockQueryExecutor creates a new mock instance.

func (*MockQueryExecutor) EXPECT

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

func (*MockQueryExecutor) Exec

func (m *MockQueryExecutor) Exec(ctx context.Context, stmt string, args ...any) (int64, error)

Exec mocks base method.

func (*MockQueryExecutor) Query

func (m *MockQueryExecutor) Query(ctx context.Context, stmt string, args ...any) (database.Rows, error)

Query mocks base method.

func (*MockQueryExecutor) QueryRow

func (m *MockQueryExecutor) QueryRow(ctx context.Context, stmt string, args ...any) database.Row

QueryRow mocks base method.

type MockQueryExecutorMockRecorder

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

MockQueryExecutorMockRecorder is the mock recorder for MockQueryExecutor.

func (*MockQueryExecutorMockRecorder) Exec

func (mr *MockQueryExecutorMockRecorder) Exec(ctx, stmt any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockQueryExecutorMockRecorder) Query

func (mr *MockQueryExecutorMockRecorder) Query(ctx, stmt any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockQueryExecutorMockRecorder) QueryRow

func (mr *MockQueryExecutorMockRecorder) QueryRow(ctx, stmt any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

type MockRow

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

MockRow is a mock of Row interface.

func NewMockRow

func NewMockRow(ctrl *gomock.Controller) *MockRow

NewMockRow creates a new mock instance.

func (*MockRow) EXPECT

func (m *MockRow) EXPECT() *MockRowMockRecorder

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

func (*MockRow) Scan

func (m *MockRow) Scan(dest ...any) error

Scan mocks base method.

type MockRowMockRecorder

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

MockRowMockRecorder is the mock recorder for MockRow.

func (*MockRowMockRecorder) Scan

func (mr *MockRowMockRecorder) Scan(dest ...any) *gomock.Call

Scan indicates an expected call of Scan.

type MockRows

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

MockRows is a mock of Rows interface.

func NewMockRows

func NewMockRows(ctrl *gomock.Controller) *MockRows

NewMockRows creates a new mock instance.

func (*MockRows) Close

func (m *MockRows) Close() error

Close mocks base method.

func (*MockRows) EXPECT

func (m *MockRows) EXPECT() *MockRowsMockRecorder

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

func (*MockRows) Err

func (m *MockRows) Err() error

Err mocks base method.

func (*MockRows) Next

func (m *MockRows) Next() bool

Next mocks base method.

func (*MockRows) Scan

func (m *MockRows) Scan(dest ...any) error

Scan mocks base method.

type MockRowsMockRecorder

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

MockRowsMockRecorder is the mock recorder for MockRows.

func (*MockRowsMockRecorder) Close

func (mr *MockRowsMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockRowsMockRecorder) Err

func (mr *MockRowsMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockRowsMockRecorder) Next

func (mr *MockRowsMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next.

func (*MockRowsMockRecorder) Scan

func (mr *MockRowsMockRecorder) Scan(dest ...any) *gomock.Call

Scan indicates an expected call of Scan.

type MockScanner

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

MockScanner is a mock of Scanner interface.

func NewMockScanner

func NewMockScanner(ctrl *gomock.Controller) *MockScanner

NewMockScanner creates a new mock instance.

func (*MockScanner) EXPECT

func (m *MockScanner) EXPECT() *MockScannerMockRecorder

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

func (*MockScanner) Scan

func (m *MockScanner) Scan(dest ...any) error

Scan mocks base method.

type MockScannerMockRecorder

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

MockScannerMockRecorder is the mock recorder for MockScanner.

func (*MockScannerMockRecorder) Scan

func (mr *MockScannerMockRecorder) Scan(dest ...any) *gomock.Call

Scan indicates an expected call of Scan.

type MockTransaction

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

MockTransaction is a mock of Transaction interface.

func NewMockTransaction

func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction

NewMockTransaction creates a new mock instance.

func (*MockTransaction) Begin

Begin mocks base method.

func (*MockTransaction) Commit

func (m *MockTransaction) Commit(ctx context.Context) error

Commit mocks base method.

func (*MockTransaction) EXPECT

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

func (*MockTransaction) End

func (m *MockTransaction) End(ctx context.Context, err error) error

End mocks base method.

func (*MockTransaction) Exec

func (m *MockTransaction) Exec(ctx context.Context, stmt string, args ...any) (int64, error)

Exec mocks base method.

func (*MockTransaction) Query

func (m *MockTransaction) Query(ctx context.Context, stmt string, args ...any) (database.Rows, error)

Query mocks base method.

func (*MockTransaction) QueryRow

func (m *MockTransaction) QueryRow(ctx context.Context, stmt string, args ...any) database.Row

QueryRow mocks base method.

func (*MockTransaction) Rollback

func (m *MockTransaction) Rollback(ctx context.Context) error

Rollback mocks base method.

type MockTransactionMockRecorder

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

MockTransactionMockRecorder is the mock recorder for MockTransaction.

func (*MockTransactionMockRecorder) Begin

func (mr *MockTransactionMockRecorder) Begin(ctx, opts any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockTransactionMockRecorder) Commit

func (mr *MockTransactionMockRecorder) Commit(ctx any) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTransactionMockRecorder) End

func (mr *MockTransactionMockRecorder) End(ctx, err any) *gomock.Call

End indicates an expected call of End.

func (*MockTransactionMockRecorder) Exec

func (mr *MockTransactionMockRecorder) Exec(ctx, stmt any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockTransactionMockRecorder) Query

func (mr *MockTransactionMockRecorder) Query(ctx, stmt any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockTransactionMockRecorder) QueryRow

func (mr *MockTransactionMockRecorder) QueryRow(ctx, stmt any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockTransactionMockRecorder) Rollback

func (mr *MockTransactionMockRecorder) Rollback(ctx any) *gomock.Call

Rollback indicates an expected call of Rollback.

Jump to

Keyboard shortcuts

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