database

package
v0.27.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package database migrates the application's tables and background jobs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JobDriver

func JobDriver(pool *pgxpool.Pool) *hopperpgx.Driver

JobDriver keeps background jobs in the application's schema.

func Migrate

func Migrate(ctx context.Context, pool *pgxpool.Pool, logger *slog.Logger) error

Migrate is safe to call from several replicas at once.

Types

This section is empty.

Jump to

Keyboard shortcuts

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