(
sql: &str,
dialect: &dyn Dialect,
)
| 478 | } |
| 479 | |
| 480 | pub fn parse_sql_into_expr_with_dialect( |
| 481 | sql: &str, |
| 482 | dialect: &dyn Dialect, |
| 483 | ) -> Result<ExprWithAlias, DataFusionError> { |
| 484 | DFParserBuilder::new(sql) |
| 485 | .with_dialect(dialect) |
| 486 | .build()? |
| 487 | .parse_into_expr() |
| 488 | } |
| 489 | |
| 490 | /// Parse a sql string into one or [`Statement`]s |
| 491 | pub fn parse_statements(&mut self) -> Result<VecDeque<Statement>, DataFusionError> { |
nothing calls this directly
no test coverage detected