Parse a sql string into one or [`Statement`]s using the [`GenericDialect`].
(sql: &'a str)
| 458 | /// Parse a sql string into one or [`Statement`]s using the |
| 459 | /// [`GenericDialect`]. |
| 460 | pub fn parse_sql(sql: &'a str) -> Result<VecDeque<Statement>, DataFusionError> { |
| 461 | let mut parser = DFParserBuilder::new(sql).build()?; |
| 462 | |
| 463 | parser.parse_statements() |
| 464 | } |
| 465 | |
| 466 | /// Parse a SQL string and produce one or more [`Statement`]s with |
| 467 | /// with the specified dialect. |
nothing calls this directly
no test coverage detected