cache

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package cache (de)serializes the introspected Catalog so pdbq can boot without touching pg_catalog: gzip-compressed JSON with a format version and a content hash for drift detection (`pdbq schema dump|check`).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(path string, live *introspect.Catalog) (string, error)

Check compares a live catalog against a cache file; returns a non-empty description on drift.

func Load

func Load(path string) (*introspect.Catalog, error)

Load reads a catalog written by Save, verifying version and hash.

func Save

func Save(path string, cat *introspect.Catalog) error

Save writes the catalog to path as gzipped JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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