gwenn
gwenn
Is it the same issue as described here: https://github.com/rusqlite/rusqlite/issues/312#issuecomment-386396277 ?
> Maybe handling it the way iterables are handled would be better... You mean like [ParamsFromIter](https://github.com/rusqlite/rusqlite/blob/master/src/params.rs#L329) ? ```rust pub struct NamedParamsFromIter(I); pub fn named_params_from_iter(iter: I) -> ParamsFromIter where I: IntoIterator,...
Do you know if something like [BorrowToSql](https://docs.rs/postgres/0.19.0/postgres/types/trait.BorrowToSql.html) would help here ? > A trait used by clients to abstract over `&dyn ToSql` and `T: ToSql`
We should be able to validate query like [sql!](https://github.com/sfackler/rust-postgres-macros#sql). But due to [dynamic typing](https://sqlite.org/datatype3.html), we may not be able to deduce the correct type...
I am afraid that currently `lemon-rs` is not a good candidate mainly because it may panic while parsing but it should be up to date with last stable version (ie...
[sqlx](https://github.com/launchbadge/sqlx/blob/master/sqlx-core/src/sqlite/connection/explain.rs) parses `EXPLAIN` output.
See https://github.com/gwenn/rusqlite/tree/rusqlite-macros/rusqlite-macros Todo: * publish `lemon-rs` on crates.io * find a way to transform parse error location into `Span` * check SQL statements against database schema. * should `rusqlite-macros` be...
The (easy) next step would be to to validate the number of place holders / parameters / variables (and their optional names). But this is possible only if they are...
Ok, I am going to publish [lemon-rs](https://github.com/gwenn/lemon-rs). But I want to give the crate a different name because lemon is only the parser generator. And I can't use [sqlite-parser](https://crates.io/crates/sqlite_parser) anymore....