findRecordKey method
Future<SdbIndexRecordKey<K, V, I> ?>
findRecordKey(
- SdbClient client, {
- SdbBoundaries<
I> ? boundaries, - SdbFilter? filter,
- int? offset,
- bool? descending,
- SdbFindOptions<
I> ? options,
Find first record key.
Implementation
Future<SdbIndexRecordKey<K, V, I>?> findRecordKey(
SdbClient client, {
SdbBoundaries<I>? boundaries,
/// Optional filter, performed in memory
SdbFilter? filter,
int? offset,
/// Optional descending order
bool? descending,
/// New API, supersedes the other parameters
SdbFindOptions<I>? options,
}) async {
options = sdbFindOptionsMerge(
options,
limit: null,
filter: filter,
boundaries: boundaries,
offset: offset,
descending: descending,
).copyWith(limit: 1);
var records = await findRecordKeys(client, options: options);
return records.firstOrNull;
}