Documentation
¶
Overview ¶
Package postgres contains repository implementations using PostgreSQL as the underlying database.
Index ¶
- func Migration() *migrate.MemoryMigrationSource
- func NewBindingRepository(db postgres.Database, log *slog.Logger) bootstrap.BindingStore
- func NewBootstrapChallengeRepository(db postgres.Database) bootstrap.BootstrapChallengeRepository
- func NewConfigRepository(db postgres.Database, log *slog.Logger) bootstrap.ConfigRepository
- func NewProfileRepository(db postgres.Database, log *slog.Logger) bootstrap.ProfileRepository
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
NewBindingRepository instantiates a PostgreSQL implementation of BindingStore.
func NewBootstrapChallengeRepository ¶ added in v1.0.0
func NewBootstrapChallengeRepository(db postgres.Database) bootstrap.BootstrapChallengeRepository
func NewConfigRepository ¶
NewConfigRepository instantiates a PostgreSQL implementation of config repository.
func NewProfileRepository ¶ added in v0.30.0
NewProfileRepository instantiates a PostgreSQL implementation of ProfileRepository.
Types ¶
This section is empty.