Repository navigation
v0.5.0 — X12 COPY import and export
X12 interchanges can now be imported, edited in SQL, and written back out.
- Add
read_x12()with every envelope and body segment, positional elements, document order, and delimiters. - Add
COPY FROMand orderedCOPY TOusingFORMAT '<attach_alias>.x12'. - Validate envelope structure, fixed-width ISA, delimiters, trailer counts, and matching control numbers before atomically replacing output.
- Add
recalculate_counts trueto update SE01/GE01/IEA01 after edits without changing control numbers. - Preserve VGI protocol 3.3 compatibility and use filesystem-backed shared storage for COPY batches.
Export supports ASCII X12 text. Inter-segment whitespace is normalized; EDIFACT and binary payload export are unsupported. COPY FROM materializes its input in one Arrow batch. File paths are local to the worker.
Validation covers 50 Rust tests, SQL round trips and invalid-output cases across subprocess, HTTP, and Unix sockets, plus formatting, Clippy, rustdoc, and metadata lint.