pub struct FileEdbSource { /* private fields */ }Expand description
An EDB source that reads facts from a directory of .mgr and .mg files.
.mgrfiles are SimpleRow data files (fast loading)..mgfiles are Mangle programs (compiled + executed to extract facts).
Implementations§
Trait Implementations§
Source§impl EdbSource for FileEdbSource
impl EdbSource for FileEdbSource
Source§fn relations(&self) -> Result<Vec<RelationInfo>>
fn relations(&self) -> Result<Vec<RelationInfo>>
Returns metadata about the relations this source provides.
Source§fn scan(&self, relation: &str) -> Result<Vec<Vec<Value>>>
fn scan(&self, relation: &str) -> Result<Vec<Vec<Value>>>
Returns all tuples for the given relation.
Source§fn fingerprint(&self) -> Result<Option<Fingerprint>>
fn fingerprint(&self) -> Result<Option<Fingerprint>>
Returns a fingerprint for staleness detection.
None means “always recompute” (no caching possible).Auto Trait Implementations§
impl !Freeze for FileEdbSource
impl RefUnwindSafe for FileEdbSource
impl Send for FileEdbSource
impl Sync for FileEdbSource
impl Unpin for FileEdbSource
impl UnsafeUnpin for FileEdbSource
impl UnwindSafe for FileEdbSource
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