pub struct RunStore { /* private fields */ }Expand description
Where a run’s files go in the target path, for one Binding (<report>/<binding>):
compiled/ (rendered SQL), run/ (outputs and run_results.json) and schema/ (the schema
snapshot drift is checked against).
Implementations§
Source§impl RunStore
impl RunStore
pub fn new(target: &Path) -> RunStore
Sourcepub fn concurrent(target: &Path) -> RunStore
pub fn concurrent(target: &Path) -> RunStore
A store for Bindings running at once, which refuses a destination path two of them use.
Sourcepub fn claim(&self, profile: &str, path: &str, binding: &str) -> Option<String>
pub fn claim(&self, profile: &str, path: &str, binding: &str) -> Option<String>
Claim profile’s path for binding; the Binding that already has it, if another.
Sourcepub fn compiled_dir(&self, report: &str, binding: &str) -> PathBuf
pub fn compiled_dir(&self, report: &str, binding: &str) -> PathBuf
Where a Binding’s rendered SQL goes.
Sourcepub fn run_dir(&self, report: &str, binding: &str) -> PathBuf
pub fn run_dir(&self, report: &str, binding: &str) -> PathBuf
Where a Binding’s outputs and run_results.json go.
Sourcepub fn schema_dir(&self, report: &str, binding: &str) -> PathBuf
pub fn schema_dir(&self, report: &str, binding: &str) -> PathBuf
Where a Binding’s schema snapshot goes.
Sourcepub fn write_results(&self, run_dir: &Path, results: &RunResults) -> Result<()>
pub fn write_results(&self, run_dir: &Path, results: &RunResults) -> Result<()>
Write a Binding’s run_results.json into its run folder (secrets masked).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunStore
impl RefUnwindSafe for RunStore
impl Send for RunStore
impl Sync for RunStore
impl Unpin for RunStore
impl UnsafeUnpin for RunStore
impl UnwindSafe for RunStore
Blanket Implementations§
impl<T> Allocation for T
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