Documentation ¶
Index ¶
- type FakeDB
- func (f *FakeDB) GetDBType() core.DbType
- func (f *FakeDB) GetDialect() migrator.Dialect
- func (f *FakeDB) GetEngine() *xorm.Engine
- func (f *FakeDB) GetSqlxSession() *session.SessionDB
- func (f *FakeDB) InTransaction(ctx context.Context, fn func(ctx context.Context) error) error
- func (f *FakeDB) Quote(value string) string
- func (f *FakeDB) RecursiveQueriesAreSupported() (bool, error)
- func (f *FakeDB) UpdateTempUserWithEmailSent(ctx context.Context, cmd *tempuser.UpdateTempUserWithEmailSentCommand) error
- func (f *FakeDB) WithDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error
- func (f *FakeDB) WithNewDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error
- func (f *FakeDB) WithTransactionalDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDB ¶
type FakeDB struct {
ExpectedError error
}
func (*FakeDB) GetDialect ¶
func (*FakeDB) GetSqlxSession ¶
func (*FakeDB) InTransaction ¶
func (*FakeDB) RecursiveQueriesAreSupported ¶
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 (*FakeDB) WithNewDbSession ¶
func (*FakeDB) WithTransactionalDbSession ¶
Click to show internal directories.
Click to hide internal directories.