DatabaseContextUtils extension
Utility methods that can be used on any DatabaseContext.
Methods
-
any(
DataBean bean, {Filter filter = Filter.empty}) → Future< bool> - Checks if there are any entries that match the filter.
-
count(
DataBean bean, {Filter filter = Filter.empty}) → Future< int> -
Returns the number of elements that match the
filter
. -
first<
TDao> (QuerySource< TDao> source, {Filter filter = Filter.empty, List<QuerySelect> distinct = const <QuerySelect>[], Sort sort = Sort.empty, int offset = 0, bool forUpdate = false}) → Future<TDao?> - Returns the first entry of the query.