dbtest

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeDB

type FakeDB struct {
	ExpectedError error
}

func NewFakeDB

func NewFakeDB() *FakeDB

func (*FakeDB) GetDBType

func (f *FakeDB) GetDBType() core.DbType

func (*FakeDB) GetDialect

func (f *FakeDB) GetDialect() migrator.Dialect

func (*FakeDB) GetEngine

func (f *FakeDB) GetEngine() *xorm.Engine

func (*FakeDB) GetSqlxSession

func (f *FakeDB) GetSqlxSession() *session.SessionDB

func (*FakeDB) InTransaction

func (f *FakeDB) InTransaction(ctx context.Context, fn func(ctx context.Context) error) error

func (*FakeDB) Quote

func (f *FakeDB) Quote(value string) string

func (*FakeDB) RecursiveQueriesAreSupported

func (f *FakeDB) RecursiveQueriesAreSupported() (bool, error)

func (*FakeDB) UpdateTempUserWithEmailSent

func (f *FakeDB) UpdateTempUserWithEmailSent(ctx context.Context, cmd *tempuser.UpdateTempUserWithEmailSentCommand) error

TODO: service-specific methods not yet split out ; to be removed

func (*FakeDB) WithDbSession

func (f *FakeDB) WithDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error

func (*FakeDB) WithNewDbSession

func (f *FakeDB) WithNewDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error

func (*FakeDB) WithTransactionalDbSession

func (f *FakeDB) WithTransactionalDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error

Jump to

Keyboard shortcuts

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