tableListing method
Lists tables from the snapshot (optionally schema-qualified).
Implementation
List<String> tableListing({String? schema, bool schemaQualified = true}) {
final snapshot = _requireSnapshot();
final schemaTarget = schema?.toLowerCase();
return snapshot.tables
.where((table) {
final entrySchema = table.schema?.toLowerCase();
return schemaTarget == null || entrySchema == schemaTarget;
})
.map(
(table) => schemaQualified ? table.schemaQualifiedName : table.name,
)
.toList(growable: false);
}