governedpostgres

package module
v0.3.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Overview

Package governedpostgres provides Modary's governed PostgreSQL profile and River-backed transactional task service.

Stability: alpha. Consumers should pin an exact pre-v1 Modary version.

Index

Constants

View Source
const ModuleID = "postgres"

ModuleID is the stable Module manifest and migration owner identifier.

Variables

This section is empty.

Functions

func Module

func Module(options Options) (module.Registration, error)

Module returns a side-effect-free PostgreSQL registration. Network and database work starts only when the Host invokes Start.

Types

type Options

type Options struct {
	URL                   string
	ApplicationSchema     string
	QueueSchema           string
	MaxOpenConnections    int
	MaxIdleConnections    int
	ConnectionMaxLifetime time.Duration
}

Options explicitly configures the PostgreSQL durable profile. URL is required and may be a PostgreSQL URL or pgx keyword/value connection string. The two schemas are created if absent and must be distinct. No option is read from process environment or global configuration.

Jump to

Keyboard shortcuts

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