ids property

  1. @override
Future<List> get ids
override

ids gets id list of a table

Implementation

@override
Future<List<dynamic>> get ids async {
  final builder =
      _copyQueryWith(columns: ['${schema.table}.${schema.primaryKey}']);

  final completer = Completer<List<Map<String, dynamic>>>()
    ..complete(database!.rawQuery(builder.sql, builder.arguments));

  if (isLogger!) Logger.query(type, completer.future, builder);
  final result = await completer.future;

  return result.expand((item) => item.values).toList();
}