infrastructure/native/protocol/directed_param library

Classes

DirectedParam
A parameter with an explicit ParamDirection for API surfaces that prepare the contract for OUTPUT / INOUT (native engine support is still being rolled in — see doc/notes/TYPE_MAPPING.md §3.1).

Constants

drt1MagicBytes → const List<int>
Little-endian DRT1 magic (Rust: odbc_engine crate bound_param module).
kDirectedParamErrorPrefix → const String
Stable error prefix, aligned with output_aware_params / native ValidationError (TYPE_MAPPING §3.1).

Functions

paramValuesFromDirected(List<DirectedParam> params) List<ParamValue>
Converts DirectedParam rows to a legacy v0 binary ParamValue list (concatenated tags, all treated as INPUT on the wire).
serializeDirectedParams(List<DirectedParam> params) Uint8List
Serialises DirectedParam values to a DRT1 buffer: DRT1 + u32 count and repeated (u8 direction)(ParamValue wire). Prefer IOdbcService.executeQueryDirectedParams or IOdbcRepository.executeQueryParamBuffer with this buffer. Engine mapping: ParamDirection input = 0, output = 1, inOut = 2.
validateDirectedOutInOut(ParamDirection direction, ParamValue pv) → void
Client-side checks for DRT1 OUT / INOUT that the native engine will reject; fails fast with the same slugs as output_aware_params.rs.