dbfactory

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configs = configset.Set[Config]{
	Default: &Config{
		SlowQueryThreshold: 300 * time.Millisecond,
		Type:               gormkitteh.RequireExplicitDSNType,
	},
	Dev: &Config{
		DSN: "sqlite:file:" + filepath.Join(xdg.DataHomeDir(), "autokitteh.sqlite"),
	},
	Test: &Config{},
}

Functions

func New

func New(z *zap.Logger, cfg *Config) (db.DB, error)

func NewTest added in v0.4.0

func NewTest(t *testing.T, objs []sdktypes.Object) db.DB

Types

type Config

type Config = gormkitteh.Config

Jump to

Keyboard shortcuts

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