pub struct DbSet<T: IEntityType> { /* private fields */ }Implementations§
Source§impl<T: IEntityType + IEntitySnapshot> DbSet<T>
impl<T: IEntityType + IEntitySnapshot> DbSet<T>
pub fn new(table_name: impl Into<String>) -> Self
pub fn with_provider( table_name: impl Into<String>, provider: Arc<dyn IDatabaseProvider>, ) -> Self
pub fn set_query_filter(&mut self, filter: BoolExpr)
Sourcepub fn set_filter_map(&mut self, map: Arc<HashMap<String, CompiledFilter>>)
pub fn set_filter_map(&mut self, map: Arc<HashMap<String, CompiledFilter>>)
Sets the global filter map (table_name → BoolExpr) used by NavigationLoader to scope secondary queries.
pub fn set_provider(&mut self, provider: Arc<dyn IDatabaseProvider>)
Sourcepub fn tracked_entries(&self) -> impl Iterator<Item = &T>
pub fn tracked_entries(&self) -> impl Iterator<Item = &T>
Returns an iterator over entity references.
Sourcepub fn tracked_entries_mut(&mut self) -> impl Iterator<Item = &mut T>
pub fn tracked_entries_mut(&mut self) -> impl Iterator<Item = &mut T>
Returns a mutable iterator over entity references.
Sourcepub fn retain(&mut self, f: impl FnMut(&DbSetEntry<T>) -> bool)
pub fn retain(&mut self, f: impl FnMut(&DbSetEntry<T>) -> bool)
Retains entries matching the predicate (drops others).
Sourcepub fn clear_entries(&mut self)
pub fn clear_entries(&mut self)
Convenience inherent method — delegates to IDbSet::clear_entries.
Sourcepub fn query(&self) -> QueryBuilder<T>
pub fn query(&self) -> QueryBuilder<T>
Convenience inherent method — delegates to IQueryable::query.
Sourcepub fn query_ignore_filters(&self) -> QueryBuilder<T>
pub fn query_ignore_filters(&self) -> QueryBuilder<T>
Returns a query builder that bypasses the configured query filter. Use for administrative / cross-tenant queries.
Sourcepub fn filter<F>(&self, apply: F) -> QueryBuilder<T>
pub fn filter<F>(&self, apply: F) -> QueryBuilder<T>
Starts a query filtered by a compile-time LINQ expression tree (linq!())
Trait Implementations§
Source§impl<T: IEntityType + IEntitySnapshot> IDbSet<T> for DbSet<T>
impl<T: IEntityType + IEntitySnapshot> IDbSet<T> for DbSet<T>
Source§impl<T: IEntityType> IQueryable<T> for DbSet<T>
impl<T: IEntityType> IQueryable<T> for DbSet<T>
fn query(&self) -> QueryBuilder<T>
impl<T: IEntityType> LinqSource for DbSet<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for DbSet<T>
impl<T> !UnwindSafe for DbSet<T>
impl<T> Freeze for DbSet<T>
impl<T> Send for DbSet<T>
impl<T> Sync for DbSet<T>
impl<T> Unpin for DbSet<T>where
T: Unpin,
impl<T> UnsafeUnpin for DbSet<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more