embedded

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbeddedPostgres

type EmbeddedPostgres struct {
	*MinimalPostgres
	Version string
	TempDir string
}

EmbeddedPostgres manages an embedded PostgreSQL instance for schema generation

func NewEmbeddedPostgres

func NewEmbeddedPostgres(version string) (*EmbeddedPostgres, error)

NewEmbeddedPostgres creates a new embedded PostgreSQL instance for schema generation Note: This currently requires PostgreSQL to be installed on the system

func (*EmbeddedPostgres) Cleanup

func (e *EmbeddedPostgres) Cleanup() error

Cleanup removes the embedded PostgreSQL installation

type MinimalPostgres

type MinimalPostgres struct {
	BinDir string
}

MinimalPostgres provides just the functionality needed for schema generation

func (*MinimalPostgres) DescribeConfig

func (p *MinimalPostgres) DescribeConfig() ([]schemas.Param, error)

DescribeConfig executes `postgres --describe-config` and returns parsed parameters

Jump to

Keyboard shortcuts

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