pub enum StringLiteral {
Chr,
Backslash,
}Expand description
How an inlined lookup spells a string holding ' or \, as the source plugin’s describe
reply asks (string_literal).
Variants§
Chr
chr(39)/chr(92) joined with ||: the default, read the same by DuckDB, Postgres and
Databricks.
Backslash
\' and \\ inside the quotes: for a database without chr() (ClickHouse).
Implementations§
Source§impl StringLiteral
impl StringLiteral
Sourcepub fn from_describe(v: Option<&str>) -> Result<StringLiteral, String>
pub fn from_describe(v: Option<&str>) -> Result<StringLiteral, String>
The style a describe reply’s string_literal names; absent is StringLiteral::Chr.
Trait Implementations§
Source§impl Clone for StringLiteral
impl Clone for StringLiteral
impl Copy for StringLiteral
Source§impl Debug for StringLiteral
impl Debug for StringLiteral
Source§impl Default for StringLiteral
impl Default for StringLiteral
impl Eq for StringLiteral
Source§impl PartialEq for StringLiteral
impl PartialEq for StringLiteral
impl StructuralPartialEq for StringLiteral
Auto Trait Implementations§
impl Freeze for StringLiteral
impl RefUnwindSafe for StringLiteral
impl Send for StringLiteral
impl Sync for StringLiteral
impl Unpin for StringLiteral
impl UnsafeUnpin for StringLiteral
impl UnwindSafe for StringLiteral
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.