pub struct ExtendedParser;Expand description
Extended SQL parser with graph and vector support.
Implementations§
Source§impl ExtendedParser
impl ExtendedParser
Sourcepub fn parse(input: &str) -> ParseResult<Vec<Statement>>
pub fn parse(input: &str) -> ParseResult<Vec<Statement>>
Parses an extended SQL query with graph and vector syntax.
This function handles:
- Cypher-style standalone MATCH statements (MATCH … RETURN)
- Pre-processing to convert custom operators to function calls
- Standard SQL parsing
- Post-processing to extract MATCH clauses
- Restoration of vector operators from function calls
§Errors
Returns an error if the SQL is syntactically invalid.
Sourcepub fn parse_single(input: &str) -> ParseResult<Statement>
pub fn parse_single(input: &str) -> ParseResult<Statement>
Parses a single extended SQL statement.
§Errors
Returns an error if the SQL is invalid or contains multiple statements.
Auto Trait Implementations§
impl Freeze for ExtendedParser
impl RefUnwindSafe for ExtendedParser
impl Send for ExtendedParser
impl Sync for ExtendedParser
impl Unpin for ExtendedParser
impl UnwindSafe for ExtendedParser
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