getSommeColumnsWithTableName method

Future<List<Map<String, Object?>>> getSommeColumnsWithTableName(
  1. String listDesColonne,
  2. String table, {
  3. String? afterWhere,
})

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'),
  );
}