fingerprint

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(expected, actual *SchemaFingerprint) error

Compare compares two schema fingerprints and returns an error if they don't match

Types

type SchemaFingerprint

type SchemaFingerprint struct {
	Hash string `json:"hash"` // SHA256 of normalized IR
}

SchemaFingerprint represents a fingerprint of a database schema state

func ComputeFingerprint

func ComputeFingerprint(schemaIR *ir.IR, schemaName string) (*SchemaFingerprint, error)

ComputeFingerprint generates a fingerprint for the given IR and schema

func (*SchemaFingerprint) String

func (f *SchemaFingerprint) String() string

String returns a human-readable representation of the fingerprint

Jump to

Keyboard shortcuts

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