postgresmigration

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package postgresmigration owns private deterministic artifact assembly that is shared by the PostgreSQL planner and the portable CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindDataTransforms

func BindDataTransforms(artifact migration.Artifact, transforms []migration.DataTransformDescriptor) (migration.Artifact, error)

BindDataTransforms inserts checksum-only callback identities immediately before the final PostgreSQL schema assertion without changing the artifact format or physical planner contract.

func DataOnlyArtifact

func DataOnlyArtifact(name string, planner migration.Planner, before, after schema.Manifest) (migration.Artifact, error)

DataOnlyArtifact creates the ordinary assertion-only PostgreSQL phase that receives a compiled transform when the manifest itself is unchanged.

func ValidateVersionedTransition

func ValidateVersionedTransition(before, after schema.Snapshot, transforms []migration.DataTransformDescriptor) error

ValidateVersionedTransition refuses transform-backed field changes that would leave retained snapshots on the previous structure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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