pub struct DFParser<'a> { /* private fields */ }
Expand description
SQL Parser
Implementations
sourceimpl<'a> DFParser<'a>
impl<'a> DFParser<'a>
sourcepub fn new(sql: &str) -> Result<Self, ParserError>
pub fn new(sql: &str) -> Result<Self, ParserError>
Parse the specified tokens
sourcepub fn new_with_dialect(
sql: &str,
dialect: &'a dyn Dialect
) -> Result<Self, ParserError>
pub fn new_with_dialect(
sql: &str,
dialect: &'a dyn Dialect
) -> Result<Self, ParserError>
Parse the specified tokens with dialect
sourcepub fn parse_sql(sql: &str) -> Result<Vec<Statement>, ParserError>
pub fn parse_sql(sql: &str) -> Result<Vec<Statement>, ParserError>
Parse a SQL statement and produce a set of statements with dialect
sourcepub fn parse_sql_with_dialect(
sql: &str,
dialect: &dyn Dialect
) -> Result<Vec<Statement>, ParserError>
pub fn parse_sql_with_dialect(
sql: &str,
dialect: &dyn Dialect
) -> Result<Vec<Statement>, ParserError>
Parse a SQL statement and produce a set of statements
sourcepub fn parse_statement(&mut self) -> Result<Statement, ParserError>
pub fn parse_statement(&mut self) -> Result<Statement, ParserError>
Parse a new expression
sourcepub fn parse_create(&mut self) -> Result<Statement, ParserError>
pub fn parse_create(&mut self) -> Result<Statement, ParserError>
Parse a SQL CREATE statement
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DFParser<'a>
impl<'a> !Send for DFParser<'a>
impl<'a> !Sync for DFParser<'a>
impl<'a> Unpin for DFParser<'a>
impl<'a> !UnwindSafe for DFParser<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more