#sqlite #sqlx #database-driver #direct #necessary

sqlx-sqlite

SQLite driver implementation for SQLx. Not for direct use; see the sqlx crate for details.

9 releases

0.7.4 Mar 12, 2024
0.7.3 Nov 23, 2023
0.7.2 Sep 26, 2023
0.7.1 Jul 15, 2023
0.0.0 Nov 27, 2019

#1018 in Database interfaces

Download history 161754/week @ 2024-02-02 161650/week @ 2024-02-09 156327/week @ 2024-02-16 178122/week @ 2024-02-23 190069/week @ 2024-03-01 182597/week @ 2024-03-08 182743/week @ 2024-03-15 180171/week @ 2024-03-22 181253/week @ 2024-03-29 188910/week @ 2024-04-05 206422/week @ 2024-04-12 202370/week @ 2024-04-19 195033/week @ 2024-04-26 198682/week @ 2024-05-03 213647/week @ 2024-05-10 168209/week @ 2024-05-17

813,824 downloads per month
Used in 389 crates (3 directly)

MIT/Apache

730KB
14K SLoC

SQLite database driver.

Note: linkage is semver-exempt.

This driver uses the libsqlite3-sys crate which links the native library for SQLite 3. For portability, we enable the bundled feature which builds and links SQLite from source.

We reserve the right to upgrade the version of libsqlite3-sys as necessary to pick up new 3.x.y versions of SQLite.

Due to Cargo's requirement that only one version of a crate that links a given native library exists in the dependency graph at a time, using SQLx alongside another crate linking libsqlite3-sys like rusqlite is a semver hazard.

If you are doing so, we recommend pinning the version of both SQLx and the other crate you're using to prevent a cargo update from breaking things, e.g.:

sqlx = { version = "=0.7.0", features = ["sqlite"] }
rusqlite = "=0.28.0"

and then upgrade these crates in lockstep when necessary.

Dependencies

~30MB
~575K SLoC