Skip to content

Instantly share code, notes, and snippets.

@glommer
Created July 22, 2022 20:33
Show Gist options
  • Save glommer/c1cee0e580cadd2c70df134360ae4c2c to your computer and use it in GitHub Desktop.
Save glommer/c1cee0e580cadd2c70df134360ae4c2c to your computer and use it in GitHub Desktop.
#[op]
fn op_chisel_relational_query_create(
op_state: &mut OpState,
op_chain: QueryOpChain,
context: ChiselRequestContext,
) -> Result<ResourceId> {
let query_plan = QueryPlan::from_op_chain(
&RequestContext::new(
current_policies(op_state),
current_type_system(op_state),
context,
),
op_chain,
)?;
create_query(op_state, query_plan)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment