dbtest

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 6 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) 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