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