#sqlite #sqlx #sql-database #database-driver #sql-query #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

#2743 in Database interfaces

Download history 1022/week @ 2024-08-04 938/week @ 2024-08-11 949/week @ 2024-08-18 1199/week @ 2024-08-25 1672/week @ 2024-09-01 1750/week @ 2024-09-08 1991/week @ 2024-09-15 1603/week @ 2024-09-22 1449/week @ 2024-09-29 1923/week @ 2024-10-06 1924/week @ 2024-10-13 1687/week @ 2024-10-20 1332/week @ 2024-10-27 688/week @ 2024-11-03 686/week @ 2024-11-10 732/week @ 2024-11-17

3,624 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