Parse, type check, and resolve RLS rules
(sql: &str, tx: &impl SchemaView, auth: &AuthCtx)
| 552 | |
| 553 | /// Parse, type check, and resolve RLS rules |
| 554 | fn resolve(sql: &str, tx: &impl SchemaView, auth: &AuthCtx) -> anyhow::Result<Vec<ProjectName>> { |
| 555 | let (expr, _) = parse_and_type_sub(sql, tx, auth)?; |
| 556 | resolve_views_for_sub(tx, expr, auth, &mut false) |
| 557 | } |
| 558 | |
| 559 | #[test] |
| 560 | fn test_rls_for_owner() -> anyhow::Result<()> { |
searching dependent graphs…