queryTables method
查询数据库中所有的表
Implementation
Future<List<String>> queryTables() async {
List<Map<String, Object?>> maps =
await _database!.rawQuery("select name from sqlite_master where type='table' order by name;");
List<String> _tables = [];
for (Map<String, Object?> map in maps) {
_tables.add(map['name'].toString());
}
return _tables;
}