database

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package database is a generated GoMock package.

Package database is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

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

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) Begin

func (m *MockDatabase) Begin(arg0 context.Context) (context.Context, error)

Begin mocks base method.

func (*MockDatabase) Close

func (m *MockDatabase) Close() error

Close mocks base method.

func (*MockDatabase) Commit

func (m *MockDatabase) Commit(arg0 context.Context) error

Commit mocks base method.

func (*MockDatabase) EXPECT

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

func (*MockDatabase) GetError

func (m *MockDatabase) GetError(arg0 error) error

GetError mocks base method.

func (*MockDatabase) Ping

func (m *MockDatabase) Ping() error

Ping mocks base method.

func (*MockDatabase) Rollback

func (m *MockDatabase) Rollback(arg0 context.Context) error

Rollback mocks base method.

func (*MockDatabase) SetMaxIdleConns

func (m *MockDatabase) SetMaxIdleConns(arg0 int)

SetMaxIdleConns mocks base method.

func (*MockDatabase) SetMaxOpenConns

func (m *MockDatabase) SetMaxOpenConns(arg0 int)

SetMaxOpenConns mocks base method.

func (*MockDatabase) Tx

func (m *MockDatabase) Tx(arg0 context.Context) (*sqlx.Tx, error)

Tx mocks base method.

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) Begin

func (mr *MockDatabaseMockRecorder) Begin(arg0 any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockDatabaseMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockDatabaseMockRecorder) Commit

func (mr *MockDatabaseMockRecorder) Commit(arg0 any) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockDatabaseMockRecorder) GetError

func (mr *MockDatabaseMockRecorder) GetError(arg0 any) *gomock.Call

GetError indicates an expected call of GetError.

func (*MockDatabaseMockRecorder) Ping

func (mr *MockDatabaseMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping.

func (*MockDatabaseMockRecorder) Rollback

func (mr *MockDatabaseMockRecorder) Rollback(arg0 any) *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockDatabaseMockRecorder) SetMaxIdleConns

func (mr *MockDatabaseMockRecorder) SetMaxIdleConns(arg0 any) *gomock.Call

SetMaxIdleConns indicates an expected call of SetMaxIdleConns.

func (*MockDatabaseMockRecorder) SetMaxOpenConns

func (mr *MockDatabaseMockRecorder) SetMaxOpenConns(arg0 any) *gomock.Call

SetMaxOpenConns indicates an expected call of SetMaxOpenConns.

func (*MockDatabaseMockRecorder) Tx

func (mr *MockDatabaseMockRecorder) Tx(arg0 any) *gomock.Call

Tx indicates an expected call of Tx.

type MockManager

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

MockManager is a mock of Manager interface.

func NewMockManager

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) CheckDB

func (m *MockManager) CheckDB(arg0 database.Database) error

CheckDB mocks base method.

func (*MockManager) EXPECT

func (m *MockManager) EXPECT() *MockManagerMockRecorder

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

func (*MockManager) Open

func (m *MockManager) Open(arg0, arg1 string) (database.Database, error)

Open mocks base method.

func (*MockManager) OpenConfig

func (m *MockManager) OpenConfig(arg0 *database.Config) (database.Database, error)

OpenConfig mocks base method.

type MockManagerMockRecorder

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

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) CheckDB

func (mr *MockManagerMockRecorder) CheckDB(arg0 any) *gomock.Call

CheckDB indicates an expected call of CheckDB.

func (*MockManagerMockRecorder) Open

func (mr *MockManagerMockRecorder) Open(arg0, arg1 any) *gomock.Call

Open indicates an expected call of Open.

func (*MockManagerMockRecorder) OpenConfig

func (mr *MockManagerMockRecorder) OpenConfig(arg0 any) *gomock.Call

OpenConfig indicates an expected call of OpenConfig.

Jump to

Keyboard shortcuts

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