pub struct DefaultQueryParser { /* private fields */ }Expand description
Default SQL Query Parser that converts SQL statements to internal representation
Implementations§
Source§impl DefaultQueryParser
impl DefaultQueryParser
Sourcepub fn new() -> NirvResult<Self>
pub fn new() -> NirvResult<Self>
Create a new query parser instance
Sourcepub fn parse(&self, sql: &str) -> NirvResult<InternalQuery>
pub fn parse(&self, sql: &str) -> NirvResult<InternalQuery>
Parse SQL query string into internal representation
Trait Implementations§
Source§impl Default for DefaultQueryParser
impl Default for DefaultQueryParser
Source§impl QueryParser for DefaultQueryParser
impl QueryParser for DefaultQueryParser
Source§fn parse_sql<'life0, 'life1, 'async_trait>(
&'life0 self,
sql: &'life1 str,
) -> Pin<Box<dyn Future<Output = NirvResult<InternalQuery>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn parse_sql<'life0, 'life1, 'async_trait>(
&'life0 self,
sql: &'life1 str,
) -> Pin<Box<dyn Future<Output = NirvResult<InternalQuery>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Parse SQL query string into internal representation
Source§fn validate_syntax<'life0, 'life1, 'async_trait>(
&'life0 self,
sql: &'life1 str,
) -> Pin<Box<dyn Future<Output = NirvResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn validate_syntax<'life0, 'life1, 'async_trait>(
&'life0 self,
sql: &'life1 str,
) -> Pin<Box<dyn Future<Output = NirvResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Validate SQL syntax without full parsing
Auto Trait Implementations§
impl Freeze for DefaultQueryParser
impl RefUnwindSafe for DefaultQueryParser
impl Send for DefaultQueryParser
impl Sync for DefaultQueryParser
impl Unpin for DefaultQueryParser
impl UnwindSafe for DefaultQueryParser
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