QueryResult constructor

const QueryResult({
  1. required List<String> columns,
  2. required List<List> rows,
  3. required int rowCount,
  4. List outputParamValues = const <dynamic>[],
  5. List<QueryResult> refCursorResults = const <QueryResult>[],
  6. List<DirectedMultiItem> additionalResults = const <DirectedMultiItem>[],
  7. List<ColumnMetadata>? columnsMetadata,
})

Creates a new QueryResult instance.

The columns list must match the order of values in each row of rows. The rowCount should equal the length of rows.

columnsMetadata is optional rich metadata (type discriminant via ColumnMetadata) populated by the parser when available; legacy callers and ad-hoc construction can leave it null.

Implementation

const QueryResult({
  required this.columns,
  required this.rows,
  required this.rowCount,
  this.outputParamValues = const <dynamic>[],
  this.refCursorResults = const <QueryResult>[],
  this.additionalResults = const <DirectedMultiItem>[],
  this.columnsMetadata,
});