See [](https://sqlite.org/cli.html#sql_parameters). You'll have to generate more code to create and populate the necessary temp table just to support parameters, so I don't think it's worth the trouble. Is there a reason you can't simply generate the fully-expanded sqlar query directly?