pub enum SampleUnit {
Count,
Rows,
Percent,
PercentSign,
}Expand description
The size unit of a SampleClause.
Four spellings kept as data so the surface round-trips: a bare count
(3), the explicit 3 ROWS, and the two percentage spellings 50 PERCENT and
50% — distinct surfaces DuckDB accepts for the same percentage.
Variants§
Count
A bare row count with no unit keyword, as in USING SAMPLE 3.
Rows
An explicit ROWS count, as in USING SAMPLE 3 ROWS.
Percent
A PERCENT-keyword percentage, as in USING SAMPLE 10 PERCENT.
PercentSign
A %-sign percentage, as in USING SAMPLE 10%.
Trait Implementations§
Source§impl Clone for SampleUnit
impl Clone for SampleUnit
Source§fn clone(&self) -> SampleUnit
fn clone(&self) -> SampleUnit
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 SampleUnit
Source§impl Debug for SampleUnit
impl Debug for SampleUnit
Source§impl<'de> Deserialize<'de> for SampleUnit
impl<'de> Deserialize<'de> for SampleUnit
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
impl Eq for SampleUnit
Source§impl Hash for SampleUnit
impl Hash for SampleUnit
Source§impl PartialEq for SampleUnit
impl PartialEq for SampleUnit
Source§impl Render for SampleUnit
impl Render for SampleUnit
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for SampleUnit
impl Serialize for SampleUnit
impl StructuralPartialEq for SampleUnit
Auto Trait Implementations§
impl Freeze for SampleUnit
impl RefUnwindSafe for SampleUnit
impl Send for SampleUnit
impl Sync for SampleUnit
impl Unpin for SampleUnit
impl UnsafeUnpin for SampleUnit
impl UnwindSafe for SampleUnit
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