parseWithOutputs static method

ParsedQueryMessage parseWithOutputs(
  1. Uint8List data, {
  2. bool lazyStrings = false,
})

Parses a full buffer into rows/columns and optional OUT1 outputs.

Supports v1 row-major, v2 columnar, optional OUT1 trailer, optional RC1\0 ref-cursor trailer (each sub-message is a full v1 buffer).

When lazyStrings is true, text cells are wrapped in LazyString instead of eagerly decoded. See parse for the rationale.

Implementation

static ParsedQueryMessage parseWithOutputs(
  Uint8List data, {
  bool lazyStrings = false,
}) {
  final previousLazy = _lazyStringsActive;
  _lazyStringsActive = lazyStrings;
  try {
    return _parseWithOutputsInternal(data);
  } finally {
    _lazyStringsActive = previousLazy;
  }
}