storage

package
v0.0.0-...-ea7ac5c Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	*sqlx.DB
}

Postgres contains all methods for querying data from the PostgreSQL database.

func NewPostgres

func NewPostgres(ctx context.Context, cfg *config.Config) (*Postgres, error)

NewPostgres connects to the PostgreSQL database, applies database migrations and returns an opened connection or an error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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