scratch

package
v1.4.14 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package scratch turns generated DDL and COPY files into a portable Postgres bundle. Purpose: common data path for non-Postgres source adapters. Inputs: trusted generated DDL and validated table/column identifiers. Outputs: target-image archive and canonical manifest hashes. Constraints: ephemeral database lives in the one-shot container's own filesystem, which is removed with the container (a /dev/shm data dir is capped at Docker's 64 MiB default); password only EnvPass.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, cfg *config.Config, ddl string, copies []CopyFile, stage string) (portable.Manifest, error)

Types

type CopyFile

type CopyFile struct {
	Schema, Table, Path string
	Columns             []string
}

Jump to

Keyboard shortcuts

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