pub enum LayoutKind {
Flat,
Nested,
}Expand description
How a database directory is arranged on disk — the port of the TS LayoutKind.
Flat keeps every file side by side in the database directory. Nested keeps the metadata
document at the root and sorts the rest into subdirectories by role: logs under tables/,
index snapshots under index/, the writer lock and the unit-of-work journal under runtime/.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for LayoutKind
impl Clone for LayoutKind
Source§fn clone(&self) -> LayoutKind
fn clone(&self) -> LayoutKind
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 moreimpl Copy for LayoutKind
Source§impl Debug for LayoutKind
impl Debug for LayoutKind
Source§impl Default for LayoutKind
impl Default for LayoutKind
Source§fn default() -> LayoutKind
fn default() -> LayoutKind
Returns the “default value” for a type. Read more
impl Eq for LayoutKind
Source§impl From<CatalogLayout> for LayoutKind
impl From<CatalogLayout> for LayoutKind
Source§fn from(layout: CatalogLayout) -> Self
fn from(layout: CatalogLayout) -> Self
Converts to this type from the input type.
Source§impl From<LayoutKind> for CatalogLayout
impl From<LayoutKind> for CatalogLayout
Source§fn from(kind: LayoutKind) -> Self
fn from(kind: LayoutKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LayoutKind
impl PartialEq for LayoutKind
impl StructuralPartialEq for LayoutKind
Auto Trait Implementations§
impl Freeze for LayoutKind
impl RefUnwindSafe for LayoutKind
impl Send for LayoutKind
impl Sync for LayoutKind
impl Unpin for LayoutKind
impl UnsafeUnpin for LayoutKind
impl UnwindSafe for LayoutKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.