Skip to content

Commit

Permalink
feat: add query parsing to prove_and_verify_query
Browse files Browse the repository at this point in the history
  • Loading branch information
waelsy123 committed Oct 25, 2024
1 parent 005e18c commit 40c45fd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion crates/proof-of-sql/examples/stocks/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,13 @@ fn prove_and_verify_query(
prover_setup: &ProverSetup,
verifier_setup: &VerifierSetup,
) {
// Placeholder for query processing
println!("Parsing the query: {sql}...");
let now = Instant::now();
let query_plan = QueryExpr::<DynamicDoryCommitment>::try_new(
sql.parse().unwrap(),
"stocks".parse().unwrap(),
accessor,
)
.unwrap();
println!("Done in {} ms.", now.elapsed().as_secs_f64() * 1000.);
}

0 comments on commit 40c45fd

Please sign in to comment.