Repository navigation
Table Query and Diff Engine
Andrew Paolucci edited this page Nov 26, 2026
·
3 revisions
guap-table (#![forbid(unsafe_code)]) standardizes how every GUAP suite represents, queries, sorts, paginates, and compares forensic and system telemetry records.
-
TableSchema&ColumnDef(ColumnType): Declares typed columns (String, numeric, boolean, timestamp, bytes) with display widths, visibility defaults, and alignment. -
CellValue&Row: Preserves structured typed cell values alongside optionaldetail_jsonmetadata and raw-byte slices for inspector/hex panes without lossy stringification. -
TableProviderTrait: Downstream crates implement a single trait exposing schema metadata, row generation, andis_read_only()declaration.
GetNirQuery provides uniform CLI --filter, --sort, --columns, --limit, and --offset behavior across every suite:
-
Comparison Operators:
==,!=,<,<=,>,>=, case-insensitivecontains, and regex~. -
Boolean Logic & Safety Bounds: Combines clauses with
AND,OR,NOTand parenthesized grouping while enforcing recursion/nesting caps against adversarial expressions and preserving exact integer precision above$2^{53}$ (u64/i64comparisons do not truncate tof64). -
Sorting & Projection: Supports multi-column sort specifications (e.g.,
"timestamp:desc,event_id:asc"or"-pid") and explicit column subsets (--columns).
Used by suite diff / data diff commands (for example comparing two offline registry snapshots, process captures, or CSV/TSV/JSONL exports):
- Compares baseline vs. target row sets keyed by primary columns.
- Rejects duplicate keys deterministically before diffing so silent collisions cannot mask tampered records.
- Classifies rows cleanly into
Added,Removed,Modified(with per-column deltas), andUnchanged.
guap-kit (v0.1.0) • GUAP Ecosystem (guap.ca) • 5 Crates • Rust 2024 Edition (1.89+) • Apache-2.0 License • Repository • Security Policy