Add delete

This commit is contained in:
Moshe Dicker 2024-04-01 01:20:36 -04:00
parent 21d841de63
commit 76fea2ac28
1 changed files with 2 additions and 1 deletions

View File

@ -230,6 +230,7 @@ abstract class BaseTableManager<
/// Create a new [BaseTableManager] instance
const BaseTableManager(this.state);
Future<int> delete() => state.buildDeleteStatement().go();
}
/// Mixin for adding select functionality to a table manager
@ -258,7 +259,7 @@ mixin ProcessedTableManagerMixin<
@override
Stream<D?> watchSingleOrNull() =>
state.buildSelectStatement().watchSingleOrNull();
// Future<int> delete() => state.buildDeleteStatement().go();
Future<int> delete() => state.buildDeleteStatement().go();
}
/// A table manager that only has functions to return items based on the state build by parent managers