mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
9dc82606db
commit
b981a93f9a
@ -19,6 +19,7 @@ type DB interface {
|
||||
GetDBType() core.DbType
|
||||
GetSqlxSession() *session.SessionDB
|
||||
InTransaction(ctx context.Context, fn func(ctx context.Context) error) error
|
||||
Quote(value string) string
|
||||
}
|
||||
|
||||
type Session = sqlstore.DBSession
|
||||
|
@ -47,6 +47,10 @@ func (f *FakeDB) GetSqlxSession() *session.SessionDB {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (f *FakeDB) Quote(value string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// TODO: service-specific methods not yet split out ; to be removed
|
||||
func (f *FakeDB) UpdateTempUserWithEmailSent(ctx context.Context, cmd *models.UpdateTempUserWithEmailSentCommand) error {
|
||||
return f.ExpectedError
|
||||
|
Loading…
Reference in New Issue
Block a user