psql

package
v0.19.783 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllModels

func AllModels() []any

declare all models in the correct order they should be migrated.

func AsPSQL

func AsPSQL(f any) any

func FetchIamTokenPassword

func FetchIamTokenPassword(ctx context.Context, cfg database) (string, error)

FetchIamTokenPassword fetches an iam token which can be used as a password using the default aws credentials provider

func New

func New(v *validator.Validate,
	l zapgorm2.Logger,
	metricsWriter metrics.Writer,
	lc fx.Lifecycle,
	cfg *internal.Config,
) (*gorm.DB, error)

func NewPSQLMigrator

func NewPSQLMigrator(p PSQLParams, lc fx.Lifecycle) *migrations.Migrator

Types

type PSQLParams

type PSQLParams struct {
	fx.In

	Migrations   *psqlmigrations.Migrations
	MigrationsDB *gorm.DB `name:"psql"`
	DB           *gorm.DB `name:"psql"`

	L             *zap.Logger
	Cfg           *internal.Config
	MetricsWriter metrics.Writer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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