Fixing tag selection
This commit is contained in:
1 parent
a20c72eb9d
commit
7715aaff3b
5 files changed
+39
-626
No files matched your search
@@ -283,7 +283,7 @@ impl<T: Clone + EntityData, D: DbLayer<T>> Deref for DataRepository<T, D> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: EntityData + Clone, D: DbLayer<T>> DataRepositoryInner<T, D> {
|
||||
impl<T: EntityData + Clone + std::marker::Send + std::marker::Sync, D: DbLayer<T>> DataRepositoryInner<T, D> {
|
||||
pub fn query_par(
|
||||
&self,
|
||||
rule: Arc<dyn Fn(&T) -> bool + Send + Sync>,
|
||||
@@ -344,6 +344,10 @@ impl<T: EntityData + Clone, D: DbLayer<T>> DataRepositoryInner<T, D> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn full_query(&self) -> Query<T, DataRepositoryInner<T, D>, D> {
|
||||
self.query(Arc::new(|_| true))
|
||||
}
|
||||
|
||||
pub fn len(&self) -> usize {
|
||||
self.cache.len() + self.temporal.len()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user