77775d548a
* Add test for create method
Co-authored-by: Tania B <10127682+undef1nd@users.noreply.github.com>
* Change structure of entity package to break import cycle
* Update wire file
---------
Co-authored-by: Tania B <10127682+undef1nd@users.noreply.github.com>
17 lines
349 B
Go
Executable File
17 lines
349 B
Go
Executable File
package db
|
|
|
|
import (
|
|
"xorm.io/xorm"
|
|
|
|
// "github.com/grafana/grafana/pkg/services/sqlstore"
|
|
"github.com/grafana/grafana/pkg/services/sqlstore/session"
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
)
|
|
|
|
type EntityDBInterface interface {
|
|
Init() error
|
|
GetSession() (*session.SessionDB, error)
|
|
GetEngine() (*xorm.Engine, error)
|
|
GetCfg() *setting.Cfg
|
|
}
|