Parse a SQL string and produce one or more [`Statement`]s with with the specified dialect.
(
sql: &str,
dialect: &dyn Dialect,
)
| 466 | /// Parse a SQL string and produce one or more [`Statement`]s with |
| 467 | /// with the specified dialect. |
| 468 | pub fn parse_sql_with_dialect( |
| 469 | sql: &str, |
| 470 | dialect: &dyn Dialect, |
| 471 | ) -> Result<VecDeque<Statement>, DataFusionError> { |
| 472 | let mut parser = DFParserBuilder::new(sql).with_dialect(dialect).build()?; |
| 473 | parser.parse_statements() |
| 474 | } |
| 475 | |
| 476 | pub fn parse_sql_into_expr(sql: &str) -> Result<ExprWithAlias, DataFusionError> { |
| 477 | DFParserBuilder::new(sql).build()?.parse_into_expr() |
nothing calls this directly
no test coverage detected