pub struct ParserFactory;Expand description
Main parser factory
Implementations§
Source§impl ParserFactory
impl ParserFactory
Sourcepub fn create_default() -> Result<Arc<dyn CqlParser + Send + Sync>>
pub fn create_default() -> Result<Arc<dyn CqlParser + Send + Sync>>
Create a parser with the default configuration.
Sourcepub fn create(config: ParserConfig) -> Result<Arc<dyn CqlParser + Send + Sync>>
pub fn create(config: ParserConfig) -> Result<Arc<dyn CqlParser + Send + Sync>>
Create a parser with the specified configuration.
Sourcepub fn get_available_backends() -> Vec<ParserBackendInfo>
pub fn get_available_backends() -> Vec<ParserBackendInfo>
Get information about available backends.
Sourcepub fn is_backend_available(backend: &ParserBackend) -> bool
pub fn is_backend_available(backend: &ParserBackend) -> bool
Check whether the given backend can be instantiated.
Sourcepub fn recommend_backend(use_case: UseCase) -> ParserBackend
pub fn recommend_backend(use_case: UseCase) -> ParserBackend
Recommend a backend for a high-level use case.
Trait Implementations§
Source§impl CqlParserFactory for ParserFactory
impl CqlParserFactory for ParserFactory
Source§fn create_parser_with_config(
&self,
config: ParserConfig,
) -> Result<Box<dyn CqlParser>>
fn create_parser_with_config( &self, config: ParserConfig, ) -> Result<Box<dyn CqlParser>>
Create a parser with specific configuration.
Source§fn factory_info(&self) -> FactoryInfo
fn factory_info(&self) -> FactoryInfo
Get factory information.
Source§impl Debug for ParserFactory
impl Debug for ParserFactory
Source§impl Default for ParserFactory
impl Default for ParserFactory
Source§fn default() -> ParserFactory
fn default() -> ParserFactory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParserFactory
impl RefUnwindSafe for ParserFactory
impl Send for ParserFactory
impl Sync for ParserFactory
impl Unpin for ParserFactory
impl UnsafeUnpin for ParserFactory
impl UnwindSafe for ParserFactory
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