Skip to main content

Dialect

Struct Dialect 

Source
pub struct Dialect {
    pub dependencies: IndexMap<String, String>,
    pub metadata: Map<String, Value>,
    pub name: Option<String>,
    pub supported_aggregate_functions: Vec<DialectFunction>,
    pub supported_execution_behavior: Option<DialectSupportedExecutionBehavior>,
    pub supported_expressions: Option<Vec<DialectSupportedExpressionsItem>>,
    pub supported_relations: Option<Vec<DialectSupportedRelationsItem>>,
    pub supported_scalar_functions: Vec<DialectFunction>,
    pub supported_table_functions: Vec<DialectFunction>,
    pub supported_types: Option<Vec<DialectSupportedTypesItem>>,
    pub supported_window_functions: Vec<DialectFunction>,
}
Expand description

Dialect

Fields§

§dependencies: IndexMap<String, String>

A map of extension files depended on by this dialect. Keys are aliases for extensions, which are used within the dialect. Values are URNs.

§metadata: Map<String, Value>

Arbitrary data created by the dialect author.

§name: Option<String>

Optional name of the dialect (e.g., “MySQL”, “PostgreSQL”, “Spark”).

§supported_aggregate_functions: Vec<DialectFunction>

Functions that aggregate multiple rows into a single result.

§supported_execution_behavior: Option<DialectSupportedExecutionBehavior>§supported_expressions: Option<Vec<DialectSupportedExpressionsItem>>

Expressions that are supported by this dialect. If not present or empty, all expressions are supported, including both inline and named lambda invocations. In a non-empty list, LAMBDA_INVOCATION supports inline callees; named callees require both LAMBDA_INVOCATION and NAMED_LAMBDA_REFERENCE.

§supported_relations: Option<Vec<DialectSupportedRelationsItem>>

Relations that are supported by this dialect. If not present or empty, all relations are supported.

§supported_scalar_functions: Vec<DialectFunction>

Regular functions that operate on scalar values.

§supported_table_functions: Vec<DialectFunction>

Functions that produce zero or more rows per invocation.

§supported_types: Option<Vec<DialectSupportedTypesItem>>

Types that are supported by this dialect. If not present or empty, all standard types are supported.

§supported_window_functions: Vec<DialectFunction>

Functions that operate over a window of rows.

Implementations§

Trait Implementations§

Source§

impl Clone for Dialect

Source§

fn clone(&self) -> Dialect

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Dialect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for Dialect

Source§

fn default() -> Dialect

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Dialect

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Dialect, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<Dialect> for Dialect

Source§

fn from(value: Dialect) -> Dialect

Converts to this type from the input type.
Source§

impl PartialEq for Dialect

Source§

fn eq(&self, other: &Dialect) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Dialect

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Dialect

Source§

impl TryFrom<Dialect> for Dialect

Source§

type Error = ConversionError

The type returned in the event of a conversion error.
Source§

fn try_from(value: Dialect) -> Result<Dialect, ConversionError>

Performs the conversion.

Auto Trait Implementations§

§

impl Forget for Dialect

§

impl Freeze for Dialect

§

impl Move for Dialect

§

impl RefUnwindSafe for Dialect

§

impl Send for Dialect
where RawTable<usize>: Send, RawVecInner: Send, NodeRef<Owned, String, Value, LeafOrInternal>: Send, BoxRaw<(String, Value)>: Send, NonZero<u64>: Send,

§

impl Sync for Dialect
where RawTable<usize>: Sync, RawVecInner: Sync, NodeRef<Owned, String, Value, LeafOrInternal>: Sync, BoxRaw<(String, Value)>: Sync, NonZero<u64>: Sync,

§

impl Unpin for Dialect
where *const u8 is !null: Unpin, *const LeafNode<String, Value> is !null: Unpin, Box<(String, Value)>: Unpin, NonZero<u64>: Unpin,

§

impl UnsafeUnpin for Dialect

§

impl UnwindSafe for Dialect

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, X> CoerceTo<T> for X
where T: CoerceFrom<X> + ?Sized,

Source§

fn coerce_rc_to(self: Rc<X>) -> Rc<T>

Source§

fn coerce_box_to(self: Box<X>) -> Box<T>

Source§

fn coerce_ref_to(&self) -> &T

Source§

fn coerce_mut_to(&mut self) -> &mut T

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.