streamQueryNamed method

  1. @override
Stream<Result<QueryResult>> streamQueryNamed(
  1. String connectionId,
  2. String sql,
  3. Map<String, Object?> namedParams
)
override

Executes a named-parameter query and returns results as a stream.

Supports @name and :name syntax. Because the parameterized execute path does not support incremental batched streaming at the FFI level, the result is buffered and yielded as a single QueryResult chunk. On failure, emits a single Failure item and closes the stream.

Implementation

@override
Stream<Result<QueryResult>> streamQueryNamed(
  String connectionId,
  String sql,
  Map<String, Object?> namedParams,
) {
  return _repository.streamQueryNamed(connectionId, sql, namedParams);
}