utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractDBAndMigration

func ExtractDBAndMigration(databaseURL string, dbSettings DBSettings, logger *zap.Logger) (*sql.DB, func(*sql.DB) error, error)

ExtractDBAndMigration will return a database connection, and migration function that should be used depending on a database connection string

func NewQueries added in v0.9.0

func NewQueries(tbl string, db *sql.DB) (*persistence.Queries, error)

Types

type DBSettings

type DBSettings struct {
}

DBSettings hold db specific configuration settings required during the db initialization

Jump to

Keyboard shortcuts

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