database

package
v0.0.0-...-78f4eb6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

database/bootstrap.go

database/database.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(ctx context.Context, queries *generated.Queries, logger *slog.Logger) error

Bootstrap ensures required data exists in the database

Types

type Service

type Service interface {
	Health() map[string]string
	Close()
	Pool() *pgxpool.Pool
	RunMigrations(migrationsDir string) error
}

func New

func New(logger *slog.Logger) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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