listSqliteTables function
Lists non-sqlite_% tables with bounded row counts (omp's
listTables).
Implementation
List<SqliteTableSummary> listSqliteTables(
SqliteDatabase db, {
int probeCap = rowCountProbeCap,
}) {
final names = db.select(
"SELECT name FROM sqlite_master WHERE type = 'table' AND name NOT LIKE "
"'sqlite_%' ORDER BY name COLLATE NOCASE",
);
return [
for (final row in names.rows)
_probeRowCount(db, row['name']! as String, probeCap),
];
}