Versions in this module Expand all Collapse all v1 v1.4.15 Oct 19, 2026 v1.4.14 Oct 12, 2026 Changes in this version + var ErrDiskChanged = errors.New("on-disk metadata changed after the drift check") + func DiskFingerprint(projectDir string) (string, error) + func MirrorFunctionIfUnchanged(projectDir, schema, name string, roles []string, want string) (string, bool, error) + type Finding struct + Column string + Function string + Problems []string + Table string + func AuditLive(live []byte, inferred bool) ([]Finding, int, error) v1.4.13 Oct 11, 2026 Changes in this version + const DefaultRole + var ErrUnsupportedLayout = errors.New("on-disk metadata layout is not supported for mirroring") + func CheckFunctionShape(ctx context.Context, run Exec, pg PG, s Spec) error + func InspectColumn(ctx context.Context, run Exec, pg PG, s Spec) (int, error) + func MetadataDrift(ctx context.Context, cfg *config.Config, projectDir string) ([]string, error) + func MirrorFunction(projectDir, schema, name string, roles []string) (file string, changed bool, err error) + func ParseDim(formatType string) (int, error) + func Render(s Spec) (string, error) + type Deps struct + ColumnVisible func(projectDir, schema, table, column string) error + Drift func(ctx context.Context, projectDir string) ([]string, error) + Exec Exec + Now func() time.Time + PG PG + TableTracked func(projectDir, schema, table string) (present, tracked bool, err error) + Track func(ctx context.Context, schema, name, table, column string, roles []string) error + type Distance string + const Cosine + const IP + const L2 + type Exec func(ctx context.Context, container string, cmd []string) (stdout, stderr string, err error) + type Options struct + MigrationDir string + ProjectDir string + Spec Spec + Track bool + type PG struct + Container string + DB string + User string + type Result struct + Column string + Dim int + DiskMetadata string + Distance string + Function string + Migration string + MigrationNew bool + Note string + Roles []string + Table string + Tracked bool + func Run(ctx context.Context, d Deps, o Options) (Result, error) + type Spec struct + Column string + Dim int + Distance Distance + Roles []string + Schema string + Table string + func ParseTarget(target string) (Spec, error) + func (s *Spec) Validate() error + func (s Spec) FunctionName() string + func (s Spec) Operator() string