db

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: AGPL-3.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(conf *cfg.Config) (*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, exitAfter bool, log *zerolog.Logger) error

func IsNotNull added in v0.8.0

func IsNotNull(value interface{}) bool

IsNotNull returns true if a value is not "nullish" falsity is not considered nullish

func Migrate

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

func Sanitize added in v0.7.2

func Sanitize(s []string) []string

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
JackTT - Gopher 🇻🇳