pub struct InitOutcome {
pub data_dir: PathBuf,
pub db_path: PathBuf,
pub config_path: PathBuf,
pub schema_version: u32,
pub tenants_index_path: PathBuf,
pub tenants_index_schema_version: u32,
pub upgraded_from_v071: bool,
}Expand description
Outcome reported back to the CLI layer for human-readable success output.
Fields§
§data_dir: PathBuf§db_path: PathBufPer-tenant DB path. v0.8.0+: <data_dir>/tenants/default.db.
Pre-v0.8.0 callers consumed <data_dir>/solo.db; they continue to
work as long as they treat this purely as “the SQLCipher file to
open.” P2 retires this field in favour of a TenantHandle per
tenant.
config_path: PathBuf§schema_version: u32Highest applied per-tenant schema version. Equal to the highest
version in tenants/default.db::schema_migrations. Not the
same number as the tenants_index schema; that’s tracked via
tenants_index_schema_version below.
tenants_index_path: PathBufPath to the new v0.8.0 tenant registry at
<data_dir>/tenants_index.db. P2 callers open this to enumerate
the tenants present in the data dir.
tenants_index_schema_version: u32Highest applied version in tenants_index.db. As of v0.8.0 this is
4 (the foundation migration). Tracked separately from the
per-tenant schema chain.
upgraded_from_v071: boolTrue iff this init call upgraded a v0.7.1 layout in place (i.e.
solo.db was present at the root, and the mass-data-move helper
ran). False for fresh installs. Used by the CLI to print a
distinct success message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitOutcome
impl RefUnwindSafe for InitOutcome
impl Send for InitOutcome
impl Sync for InitOutcome
impl Unpin for InitOutcome
impl UnsafeUnpin for InitOutcome
impl UnwindSafe for InitOutcome
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more