Expand description
Export the audit_log SQLite table in four formats with matching
hash sidecars.
Produces four files under a caller-chosen directory, each named
audit-<UTC>.ext where <UTC> is %Y-%m-%dT%H-%M-%SZ:
| Format | Extension | Builder |
|---|---|---|
| JSON | .json | serde_json::to_vec_pretty |
| CSV | .csv | hand-rolled RFC 4180 writer |
| SARIF | .sarif | hand-rolled SARIF 2.1.0 via serde |
| Markdown | .md | hand-rolled GFM table |
For each payload the three hash sidecars mandated by CLAUDE.md
(.sha-256, .sha-512, .sha3-512) are emitted via
crate::sidecar::write_sidecar_files_for, controlled by the
matching Settings.sidecar_* toggles.
Structs§
- Audit
Export Options - Which formats to emit on an audit-log export.
- Audit
Export Result - Result of an
export_audit_logcall.
Functions§
- export_
audit_ log - Export the audit log from the supplied sqlite pool.