hasItems method
Implementation
Future<bool> hasItems(ISQLiteItem item) async {
var db = await getOpenDatabase();
var exist = await tableExists(item.getTableName());
if (!exist) {
return false; // If the table doesn't exist, return false
}
var result = await db.rawQuery(
'SELECT EXISTS (SELECT 1 FROM ${item.getTableName()} LIMIT 1)');
return result.isNotEmpty && result.first.values.first == 1;
}