pub struct HashMapFunctionCatalog { /* private fields */ }Expand description
Minimal in-memory catalog implementation for runtime registration and tests.
Implementations§
Source§impl HashMapFunctionCatalog
impl HashMapFunctionCatalog
Sourcepub fn set_dialect_name_case(
&mut self,
dialect: DialectType,
name_case: FunctionNameCase,
)
pub fn set_dialect_name_case( &mut self, dialect: DialectType, name_case: FunctionNameCase, )
Set default function-name casing behavior for a dialect.
Sourcepub fn set_function_name_case(
&mut self,
dialect: DialectType,
function_name: impl Into<String>,
name_case: FunctionNameCase,
)
pub fn set_function_name_case( &mut self, dialect: DialectType, function_name: impl Into<String>, name_case: FunctionNameCase, )
Set optional per-function casing behavior override for a dialect.
The override key is normalized to lowercase.
Sourcepub fn register(
&mut self,
dialect: DialectType,
function_name: impl Into<String>,
signatures: Vec<FunctionSignature>,
)
pub fn register( &mut self, dialect: DialectType, function_name: impl Into<String>, signatures: Vec<FunctionSignature>, )
Register overloads for a function in a dialect.
Trait Implementations§
Source§impl Clone for HashMapFunctionCatalog
impl Clone for HashMapFunctionCatalog
Source§fn clone(&self) -> HashMapFunctionCatalog
fn clone(&self) -> HashMapFunctionCatalog
Returns a duplicate of the value. Read more
1.0.0 · 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 HashMapFunctionCatalog
impl Debug for HashMapFunctionCatalog
Source§impl Default for HashMapFunctionCatalog
impl Default for HashMapFunctionCatalog
Source§fn default() -> HashMapFunctionCatalog
fn default() -> HashMapFunctionCatalog
Returns the “default value” for a type. Read more
Source§impl FunctionCatalog for HashMapFunctionCatalog
impl FunctionCatalog for HashMapFunctionCatalog
Source§fn lookup(
&self,
dialect: DialectType,
raw_function_name: &str,
normalized_name: &str,
) -> Option<&[FunctionSignature]>
fn lookup( &self, dialect: DialectType, raw_function_name: &str, normalized_name: &str, ) -> Option<&[FunctionSignature]>
Lookup overloads for a function name in a given dialect. Read more
Auto Trait Implementations§
impl Freeze for HashMapFunctionCatalog
impl RefUnwindSafe for HashMapFunctionCatalog
impl Send for HashMapFunctionCatalog
impl Sync for HashMapFunctionCatalog
impl Unpin for HashMapFunctionCatalog
impl UnsafeUnpin for HashMapFunctionCatalog
impl UnwindSafe for HashMapFunctionCatalog
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