postgres

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package postgres contains repository implementations using PostgreSQL as the underlying database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migration

func Migration() *migrate.MemoryMigrationSource

Migration of bootstrap service.

sql-migrate orders migrations lexicographically unless the id starts with a number, so the sequence is zero padded: without the padding "configs_10" would sort before "configs_2". Keep the same width when adding migrations, and never renumber an id that has already shipped.

func NewBindingRepository added in v0.30.0

func NewBindingRepository(db postgres.Database, log *slog.Logger) bootstrap.BindingStore

NewBindingRepository instantiates a PostgreSQL implementation of BindingStore.

func NewBootstrapChallengeRepository added in v1.0.0

func NewBootstrapChallengeRepository(db postgres.Database) bootstrap.BootstrapChallengeRepository

func NewConfigRepository

func NewConfigRepository(db postgres.Database, log *slog.Logger) bootstrap.ConfigRepository

NewConfigRepository instantiates a PostgreSQL implementation of config repository.

func NewProfileRepository added in v0.30.0

func NewProfileRepository(db postgres.Database, log *slog.Logger) bootstrap.ProfileRepository

NewProfileRepository instantiates a PostgreSQL implementation of ProfileRepository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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