postgres

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultExtensions = []string{"uuid-ossp", "pgcrypto"}

DefaultExtensions are always installed regardless of POSTGRES_EXTENSIONS config.

Functions

func GenerateInitScript

func GenerateInitScript(workdir string) error

GenerateInitScript creates the basic Postgres initialization SQL script containing the structural schemas required by Nhost containers.

func InstallExtensions

func InstallExtensions(ctx context.Context, dsn string, extras []string) error

InstallExtensions runs CREATE EXTENSION IF NOT EXISTS for DefaultExtensions plus any extras provided. Called from nself start Phase 2 (DB init). Safe to call multiple times — IF NOT EXISTS is idempotent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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