Skip to main content

tree_inner

Function tree_inner 

Source
pub async fn tree_inner(
    pool: &Pool,
    viewer: Option<&User>,
    q: &TreeQuery,
) -> Result<Response, ExecError>
Expand description

Takes a &Pool rather than the Tenant so the whole endpoint is exercisable against an in-memory database — Tenant::for_test needs a real PostgreSQL connection, which would put the restriction-leak test out of reach of the normal suite.