tquery function

Future<List<Row>> tquery(
  1. String sql
)

Lets you run a query outside the scope of a Dao.

Requires an active Transaction.

Implementation

Future<List<Row>> tquery(String sql) =>
    Transaction.current.db.withResults(sql, action: (rs) {
      final rows = <Row>[];
      for (final r in rs.rows) {
        rows.add(Row(r));
      }
      return rows;
    });