QueryResult constructor
const
QueryResult({
- required List<
String> columns, - required List<
List> rows, - required int rowCount,
- List outputParamValues = const <dynamic>[],
- List<
QueryResult> refCursorResults = const <QueryResult>[], - List<
DirectedMultiItem> additionalResults = const <DirectedMultiItem>[], - 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,
});