Skip to content

v0.5.0 — X12 COPY import and export

Choose a tag to compare

@rustyconover rustyconover released this 13 Nov 04:49
· 13 commits to main since this release

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 FROM and ordered COPY TO using FORMAT '<attach_alias>.x12'.
  • Validate envelope structure, fixed-width ISA, delimiters, trailer counts, and matching control numbers before atomically replacing output.
  • Add recalculate_counts true to 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.

Usage and examples · Full changelog