listTablesNamesImpl method
Lists the names of the database tables, with connection.
Implemented by the adapters that introspect their schema (see findRelationshipTables). Default: throws UnsupportedError (an adapter that doesn't introspect a database, e.g. DBSQLMemoryAdapter, never calls it).
Implementation
@override
Future<List<String>> listTablesNamesImpl(
DBMySqlConnectionWrapper connection,
) async {
var sql = '''
SHOW TABLES
''';
var results = await connection.query(sql);
var names = results.map((r) => r[0]).map((e) => '$e').toList();
return names;
}