postgres

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conn *sql.DB, migrate *migrate.Migrate) providers.Database

New returns a new Database client

func Provider

func Provider(ctx context.Context, cfg *viper.Viper) (providers.Database, error)

Provider is a function that returns a Database client The config key "database.connection_string" must be set to the sqlite connection string If the config key "database.migrations_source" is set, the database will use github.com/golang-migrate/migrate to run migrations from the source set in the config key

Types

This section is empty.

Jump to

Keyboard shortcuts

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