db

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverFieldName = "db.driver"

	MySQLDriver  = "mysql"
	SQLiteDriver = "sqlite"
)

Variables

View Source
var (
	RecordNotFoundError = errors.New("record not found")
)

Functions

func NewDB

func NewDB(config *Config, informer log.Informer, mysqlConfig *mysql.Config, sqliteConfig *sqlite.Config) (goqu.SQLDatabase, error)

func WithConfigurator

func WithConfigurator(
	config *Config,
	configurator configurator.Configurator,
	informer log.Informer,
	mysqlConfig *mysql.Config,
	sqliteConfig *sqlite.Config,
) (goqu.SQLDatabase, error)

Types

type Config

type Config struct {
	Driver string
}

func NewConfig

func NewConfig() *Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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