pub enum Table {
Nation,
Region,
Part,
Supplier,
Partsupp,
Customer,
Orders,
Lineitem,
}Expand description
TPC-H table types
Represents the 8 tables in the TPC-H benchmark schema. Tables are ordered by size (smallest to largest at SF=1).
Variants§
Nation
Nation table (25 rows)
Region
Region table (5 rows)
Part
Part table (200,000 rows at SF=1)
Supplier
Supplier table (10,000 rows at SF=1)
Partsupp
Part-Supplier relationship table (800,000 rows at SF=1)
Customer
Customer table (150,000 rows at SF=1)
Orders
Orders table (1,500,000 rows at SF=1)
Lineitem
Line item table (6,000,000 rows at SF=1)
Trait Implementations§
Source§impl FromStr for Table
impl FromStr for Table
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Returns the table enum value from the given string full name or abbreviation
The original dbgen tool allows some abbreviations to mean two different tables like ‘p’ which aliases to both ‘part’ and ‘partsupp’. This implementation does not support this since it just adds unnecessary complexity and confusion so we only support the exclusive abbreviations.
Source§impl Ord for Table
impl Ord for Table
Source§impl PartialOrd for Table
impl PartialOrd for Table
impl Copy for Table
impl Eq for Table
impl StructuralPartialEq for Table
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.