Re:Show HN: SQLite Transaction Benchmarking Tool
by seddonm1 on Thursday July 18, 2024 @06:09PM
(#41000219)
SQLX has an offline mode where it saves the metadata of the SQL database structure but then you run into risk of that being out of sync with the database?
Yeah I just drop this one file [0] into my Tokio projects and I have a SQLite with single writer/multi reader pool done in a few seconds.
[0]: https://github.com/seddonm1/s3ite/blob/0.5.0/src/database.rs
Weren't the compile-time connections to DB optional btw? They could be turned off I think (last I checked, which was last year admittedly).
My question was more about the fact that sqlx is integrated with tokio out of the box and does not need an extra crate like rusqlite does. But I am guessing you don't mind that.