#sqlite #database-driver #sqlx #sql-database #async #postgresql #maria-db

sqlx-sqlite

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

12 releases

0.8.2 Sep 3, 2024
0.8.0 Jul 23, 2024
0.7.4 Mar 12, 2024
0.7.3 Nov 23, 2023
0.0.0 Nov 27, 2019

#1345 in Database interfaces

Download history 239509/week @ 2024-07-18 258905/week @ 2024-07-25 245370/week @ 2024-08-01 273463/week @ 2024-08-08 281898/week @ 2024-08-15 310260/week @ 2024-08-22 298800/week @ 2024-08-29 336639/week @ 2024-09-05 320228/week @ 2024-09-12 323812/week @ 2024-09-19 339982/week @ 2024-09-26 365134/week @ 2024-10-03 355954/week @ 2024-10-10 388711/week @ 2024-10-17 418192/week @ 2024-10-24 378906/week @ 2024-10-31

1,621,835 downloads per month
Used in 630 crates (4 directly)

MIT/Apache

785KB
15K 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.8.1", features = ["sqlite"] }
rusqlite = "=0.32.1"

and then upgrade these crates in lockstep when necessary.

Dependencies

~35MB
~565K SLoC