query abstract method
Execute sql
query with positional params
.
Parameters may be referenced in the sql
query using $1
, $2
, ...
Returns a stream of rows, where each row is a list columns. If there are no data to be returned, this yields an empty stream.
The following types can be passed in and out.
Throws DatabaseException, if the query fails.
The returned Stream must disregard back-pressure to avoid deadlocks in the transaction. In practice this can be done by buffering all results in a List and return a Stream wrapping said list.
Implementation
@override
Stream<RowReader> query(String sql, List<Object?> params);