db

package
v0.0.0-...-05e3125 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	*pgxpool.Pool
}

func New

func New(ctx context.Context, url string) (*Database, error)

func Setup

func Setup(ctx context.Context, url string) (*Database, error)

Setup applies all migrations and creates a pgxpool. If the context is canceled, it will gracefully stop the migrations.

Directories

Path Synopsis
repositories

Jump to

Keyboard shortcuts

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