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) async {
  final results = await Transaction.current.db.query(sql);

  final rows = <Row>[];
  for (final row in results.rows) {
    rows.add(Row(row));
  }
  return rows;
}