config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BaseDSN           string
	BootstrapDatabase string
	Mode              policy.Mode
	DeniedSchemas     []string
	MutationDatabases []string
	ConfirmationTTL   time.Duration
	LogLevel          string
	LogJSON           bool
	QueryTimeout      time.Duration
	ExecTimeout       time.Duration
	IdlePoolTTL       time.Duration
	IdlePoolCleanup   time.Duration
	DefaultMaxRows    int
	MaxMaxRows        int
	DefaultSampleRows int
	MaxSampleRows     int
	PoolMaxConns      int32
	MaxCachedPools    int
}

func Load

func Load() (Config, error)

func LoadFromEnv

func LoadFromEnv(lookup func(string) (string, bool)) (Config, error)

Jump to

Keyboard shortcuts

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