pub struct PackSchemaPlan {
pub pack: &'static str,
pub statements: &'static [&'static str],
}Expand description
DDL statements the pack needs applied to the auxiliary schema.
Pack-auxiliary tables use idempotent CREATE TABLE IF NOT EXISTS; they are
not part of the core versioned migration chain. The runtime applies these
statements once at pack registration time (or startup) against the active
storage backend.
Fields§
§pack: &'static strThe pack this schema plan belongs to (used for error reporting).
statements: &'static [&'static str]Idempotent SQL statements to apply.
Trait Implementations§
Source§impl Clone for PackSchemaPlan
impl Clone for PackSchemaPlan
Source§fn clone(&self) -> PackSchemaPlan
fn clone(&self) -> PackSchemaPlan
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 PackSchemaPlan
impl Debug for PackSchemaPlan
impl Eq for PackSchemaPlan
Source§impl PartialEq for PackSchemaPlan
impl PartialEq for PackSchemaPlan
Source§fn eq(&self, other: &PackSchemaPlan) -> bool
fn eq(&self, other: &PackSchemaPlan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackSchemaPlan
Auto Trait Implementations§
impl Freeze for PackSchemaPlan
impl RefUnwindSafe for PackSchemaPlan
impl Send for PackSchemaPlan
impl Sync for PackSchemaPlan
impl Unpin for PackSchemaPlan
impl UnsafeUnpin for PackSchemaPlan
impl UnwindSafe for PackSchemaPlan
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