mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 12:02:30 +08:00
@ -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
|
||||
|
Reference in New Issue
Block a user