store

package
v0.0.0-...-fb968ec Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Store is the package that manages the database connection and migrations. It is used by other packages that need access to the database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sql.DB
}

func New

func New(logger *slog.Logger, pgURL *url.URL) (*DB, error)

New creates a new Directory, connecting it to the postgres server on the URL provided.

Jump to

Keyboard shortcuts

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