all method
Return all rows from table.
var userEloquent = UserEloquent();
//similar to userEloquent.get() but no matter what options you specify, they will be ignored and all rows will be returned.
userEloquent.all();
//orderBy, limit will be ignored
userEloquent.orderBy('name').limit(1).all();
Implementation
@override
Future<List<Map<String, Object?>>> all() async {
String query = 'SELECT ';
try {
Database _db = await getDatabase;
resetAll();
query += generateQuery('* from $tableName');
return await _db.rawQuery(query);
} catch (e) {
throw Exception('Generated query: "$query" \n' + e.toString());
}
}