resource

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectDBs added in v0.4.0

func DetectDBs() error

func GetDBManager

func GetDBManager(appid string) proto.DBManager

func RegisterDBManager added in v0.4.0

func RegisterDBManager(appid string, dataSources []*config.DataSource, factory func(dbName, dsn string) pools.Factory)

func SetDBManager

func SetDBManager(appid string, manager proto.DBManager)

Types

type DBManager

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

func (*DBManager) GetDB

func (manager *DBManager) GetDB(name string) proto.DB

Jump to

Keyboard shortcuts

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