db

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: AGPL-3.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(conf *cfg.Config, noSubProcess bool) (*sqlx.DB, error)

func ConnectNeo4j added in v0.6.2

func ConnectNeo4j(conf *cfg.Config) (neo4j.DriverWithContext, error)

func CreateDsn

func CreateDsn(dsn *cfg.DBConfig) string

func DBTearDown added in v0.7.0

func DBTearDown(conf *cfg.Config) error

DBTearDown is a helper function to clean up the test database

func InitDB

func InitDB(conf *cfg.Config, noSubProcess, exitAfter bool, log *zerolog.Logger) error

func Migrate

func Migrate(conf *cfg.Config, path string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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