#sqlite #sqlx #sql-database #sql-query #database-driver #compile-time #async

sqlx-build-trust-sqlite

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

1 unstable release

0.7.9 Jul 9, 2024

#2777 in Database interfaces

Download history 807/week @ 2024-07-22 915/week @ 2024-07-29 997/week @ 2024-08-05 950/week @ 2024-08-12 980/week @ 2024-08-19 1302/week @ 2024-08-26 1642/week @ 2024-09-02 1747/week @ 2024-09-09 1980/week @ 2024-09-16 1605/week @ 2024-09-23 1401/week @ 2024-09-30 1990/week @ 2024-10-07 1924/week @ 2024-10-14 1664/week @ 2024-10-21 1277/week @ 2024-10-28 658/week @ 2024-11-04

5,735 downloads per month
Used in sqlx-build-trust

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
~559K SLoC