pub enum StorageKind {
Plain,
External,
Extended,
Main,
}Expand description
Per-column TOAST storage strategy.
Mirrors Postgres pg_attribute.attstorage (p|e|x|m). The semantic
effective value depends on the column’s data type; see
crate::ir::canon::filter_pg_defaults for how an explicit
Some(default) is stripped to None so source and catalog round-trip equally.
Variants§
Plain
PLAIN — inline only, never TOASTed or compressed.
External
EXTERNAL — out-of-line allowed, compression forbidden.
Extended
EXTENDED — out-of-line and compression allowed (default for most variable-width types).
Main
MAIN — compression allowed inline, out-of-line only as a last resort.
Trait Implementations§
Source§impl Clone for StorageKind
impl Clone for StorageKind
Source§fn clone(&self) -> StorageKind
fn clone(&self) -> StorageKind
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 StorageKind
impl Debug for StorageKind
Source§impl<'de> Deserialize<'de> for StorageKind
impl<'de> Deserialize<'de> for StorageKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for StorageKind
impl Hash for StorageKind
Source§impl PartialEq for StorageKind
impl PartialEq for StorageKind
Source§fn eq(&self, other: &StorageKind) -> bool
fn eq(&self, other: &StorageKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StorageKind
impl Serialize for StorageKind
impl Copy for StorageKind
impl Eq for StorageKind
impl StructuralPartialEq for StorageKind
Auto Trait Implementations§
impl Freeze for StorageKind
impl RefUnwindSafe for StorageKind
impl Send for StorageKind
impl Sync for StorageKind
impl Unpin for StorageKind
impl UnsafeUnpin for StorageKind
impl UnwindSafe for StorageKind
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<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>
Converts
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>
Converts
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