pub struct SchemaPlan {
pub pack: &'static str,
pub statements: &'static [&'static str],
}Expand description
Pack-auxiliary schema plan.
Declares CREATE TABLE IF NOT EXISTS statements for pack-owned tables that
are NOT part of the core substrate schema (entities, notes, edges, events).
Applied at boot via StorageBackend::apply_schema / apply_pack_schema_plan.
Core substrate tables evolve through versioned migrations. Pack schema is strictly for pack-auxiliary tables (e.g. GTD lifecycle audit, memory index). v1 pack schemas are non-versioned.
Fields§
§pack: &'static strOwning pack name.
statements: &'static [&'static str]DDL statements applied idempotently at boot.
Each entry must be a self-contained CREATE TABLE IF NOT EXISTS or
similar idempotent statement.
Implementations§
Source§impl SchemaPlan
impl SchemaPlan
Trait Implementations§
Source§impl Clone for SchemaPlan
impl Clone for SchemaPlan
Source§fn clone(&self) -> SchemaPlan
fn clone(&self) -> SchemaPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaPlan
impl Debug for SchemaPlan
Source§impl Default for SchemaPlan
impl Default for SchemaPlan
Source§fn default() -> SchemaPlan
fn default() -> SchemaPlan
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaPlan
impl RefUnwindSafe for SchemaPlan
impl Send for SchemaPlan
impl Sync for SchemaPlan
impl Unpin for SchemaPlan
impl UnsafeUnpin for SchemaPlan
impl UnwindSafe for SchemaPlan
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