getSommeColumnsWithTableName method
Like getSomeColumnsFrom but takes an arbitrary table name (or a join
expression). Useful for non-entity tables or join queries.
Implementation
Future<List<Map<String, Object?>>> getSommeColumnsWithTableName(
String listDesColonne,
String table, {
String? afterWhere,
}) async {
final String whereClause =
afterWhere != null ? 'WHERE ${_sanitizeWhere(afterWhere)}' : '';
return (await db).transaction(
(txn) => txn.rawQuery('SELECT $listDesColonne FROM $table $whereClause'),
);
}