I know for small sql queries it wouldn't make any difference but parsing it in compile time atleast shows any syntactical error present in the query during compilation itself rather than finding it out during testing or even worse in production.
I think that's possible to do using some ways.
GlueSQL uses sqlparser-rs for SQL parser.
So may be something https://github.com/rust-lang-nursery/lazy-static.rs like approach can work? or...
is the main reason is for finding syntactical error present then run parser first and serialize using serde can also make sense.
I just ditched Sqlx (with sqlite) last night due to it not being pure rust. This is just what I needed.
Just to clarify the features I need, with Sled it'll generally function as a File/Folder based DB like sqlite?
And will it be able to handle things like CREATE TABLE IF NOT EXISTS
I was absolutely waiting for this.
I once used a basic thing called BoltDB in golang, and I think there's an implementation of that in rust too. But BoltDB is not much more than a key value ish store so not really an sqlite alrernative.