query method

Future<PostgreSQLResult> query(
  1. String fmtString, {
  2. Map<String, Object?>? values,
  3. bool allowReuse = true,
  4. int? timeoutInSeconds,
})

Implementation

Future<PostgreSQLResult> query(String fmtString,
    {Map<String, Object?>? values,
    bool allowReuse = true,
    int? timeoutInSeconds}) async {
  assert(_assertCorrectValues(values));
  try {
    // _logger.finest('QUERY: $fmtString');
    return _conn.query(fmtString,
        substitutionValues: values,
        allowReuse: allowReuse,
        timeoutInSeconds: timeoutInSeconds);
  } catch (e, stackTrace) {
    _logger.warning(
        'Error while running statement $fmtString', e, stackTrace);
    rethrow;
  }
}