pub struct ProjectionService { /* private fields */ }Implementations§
Source§impl ProjectionService
impl ProjectionService
pub fn new(path: impl AsRef<Path>, schema_manager: Arc<SchemaManager>) -> Self
Sourcepub fn rebuild_projections(
&self,
target: ProjectionTarget,
) -> Result<ProjectionRepairReport, EngineError>
pub fn rebuild_projections( &self, target: ProjectionTarget, ) -> Result<ProjectionRepairReport, EngineError>
§Errors
Returns EngineError if the database connection fails or the projection rebuild fails.
Sourcepub fn rebuild_missing_projections(
&self,
) -> Result<ProjectionRepairReport, EngineError>
pub fn rebuild_missing_projections( &self, ) -> Result<ProjectionRepairReport, EngineError>
§Errors
Returns EngineError if the database connection fails or the INSERT query fails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProjectionService
impl RefUnwindSafe for ProjectionService
impl Send for ProjectionService
impl Sync for ProjectionService
impl Unpin for ProjectionService
impl UnsafeUnpin for ProjectionService
impl UnwindSafe for ProjectionService
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