MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / plan_sql_with_rls

Method plan_sql_with_rls

nodedb/src/control/planner/context.rs:317–326  ·  view source on GitHub ↗
(
        &self,
        sql: &str,
        tenant_id: crate::types::TenantId,
        database_id: crate::types::DatabaseId,
        sec: &PlanSecurityContext<'_>,
    )

Source from the content-addressed store, hash-verified

315 /// This is the primary query entry point.
316 #[allow(clippy::too_many_arguments)]
317 pub async fn plan_sql_with_rls(
318 &self,
319 sql: &str,
320 tenant_id: crate::types::TenantId,
321 database_id: crate::types::DatabaseId,
322 sec: &PlanSecurityContext<'_>,
323 ) -> crate::Result<Vec<nodedb_physical::physical_task::PhysicalTask>> {
324 self.plan_sql_with_rls_returning(sql, tenant_id, database_id, sec, false)
325 .await
326 }
327
328 /// Plan SQL with RLS injection, optionally propagating a RETURNING flag.
329 pub async fn plan_sql_with_rls_returning(

Callers 6

handle_explainMethod · 0.80
queryFunction · 0.80
query_ndjsonFunction · 0.80
execute_plannedFunction · 0.80
handle_explainFunction · 0.80

Calls 1

Tested by

no test coverage detected