pub struct BatchExecutor { /* private fields */ }Expand description
Executes operations across multiple projects in dependency order
Implementations§
Source§impl BatchExecutor
impl BatchExecutor
Sourcepub fn new(graph: DependencyGraph, config: BatchExecutionConfig) -> Self
pub fn new(graph: DependencyGraph, config: BatchExecutionConfig) -> Self
Creates a new batch executor
Sourcepub fn with_graph(graph: DependencyGraph) -> Self
pub fn with_graph(graph: DependencyGraph) -> Self
Creates a new batch executor with default configuration
Sourcepub async fn execute_batch(
&self,
projects: Vec<Project>,
operation: Arc<dyn ProjectOperation>,
) -> Result<BatchExecutionResult>
pub async fn execute_batch( &self, projects: Vec<Project>, operation: Arc<dyn ProjectOperation>, ) -> Result<BatchExecutionResult>
Executes an operation on all specified projects
Sourcepub async fn get_transaction(
&self,
transaction_id: &str,
) -> Result<Option<Transaction>>
pub async fn get_transaction( &self, transaction_id: &str, ) -> Result<Option<Transaction>>
Gets a transaction by ID
Sourcepub async fn get_all_transactions(&self) -> Result<Vec<Transaction>>
pub async fn get_all_transactions(&self) -> Result<Vec<Transaction>>
Gets all transactions
Sourcepub async fn clear_transactions(&self) -> Result<()>
pub async fn clear_transactions(&self) -> Result<()>
Clears all transactions
Auto Trait Implementations§
impl Freeze for BatchExecutor
impl !RefUnwindSafe for BatchExecutor
impl Send for BatchExecutor
impl Sync for BatchExecutor
impl Unpin for BatchExecutor
impl !UnwindSafe for BatchExecutor
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