Parse and type check a *general* query into a [StatementCtx].
(sql: &'a str, tx: &impl SchemaView, auth: &AuthCtx)
| 463 | |
| 464 | /// Parse and type check a *general* query into a [StatementCtx]. |
| 465 | pub fn compile_sql_stmt<'a>(sql: &'a str, tx: &impl SchemaView, auth: &AuthCtx) -> TypingResult<StatementCtx<'a>> { |
| 466 | let statement = parse_and_type_sql(sql, tx, auth)?; |
| 467 | Ok(StatementCtx { |
| 468 | statement, |
| 469 | sql, |
| 470 | source: StatementSource::Query, |
| 471 | }) |
| 472 | } |
| 473 | |
| 474 | #[cfg(test)] |
| 475 | mod tests { |
nothing calls this directly
no test coverage detected
searching dependent graphs…