dbimpl

package
v11.1.4-modfix Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidUTF8Sequence = errors.New("invalid UTF-8 sequence")
)

Functions

func MakeDSN

func MakeDSN(m map[string]string) (string, error)

MakeDSN creates a DSN from the given key/value pair. It validates the strings form valid UTF-8 sequences and escapes values if needed.

func NewDB

func NewDB(d *sql.DB, driverName string) entitydb.DB

Types

type EntityDB

type EntityDB struct {
	// contains filtered or unexported fields
}

func ProvideEntityDB

func ProvideEntityDB(db db.DB, cfg *setting.Cfg, features featuremgmt.FeatureToggles, tracer tracing.Tracer) (*EntityDB, error)

func (*EntityDB) GetCfg

func (db *EntityDB) GetCfg() *setting.Cfg

func (*EntityDB) GetDB

func (db *EntityDB) GetDB() (entitydb.DB, error)

func (*EntityDB) GetEngine

func (db *EntityDB) GetEngine() (*xorm.Engine, error)

func (*EntityDB) GetSession

func (db *EntityDB) GetSession() (*session.SessionDB, error)

func (*EntityDB) Init

func (db *EntityDB) Init() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL