move count to base manager

This commit is contained in:
Moshe Dicker 2024-04-17 12:23:42 -04:00
parent 22ec0f77a6
commit f17c251126
1 changed files with 3 additions and 3 deletions

View File

@ -348,6 +348,9 @@ abstract class BaseTableManager<
Future<int> count([bool distinct = true]) {
return $state.copyWith(distinct: true).count();
}
/// Checks whether any rows exist
Future<bool> exists() => $state.exists();
}
/// A table manager that can be used to select rows from a table
@ -368,9 +371,6 @@ abstract class ProcessedTableManager<
/// Create a new [ProcessedTableManager] instance
const ProcessedTableManager(super.$state);
/// Checks whether any rows exist
Future<bool> exists() => $state.exists();
/// Deletes all rows matched by built statement
///
/// Returns the amount of rows that were deleted by this statement directly