You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a "sqlite-unbundled" feature that dynamically links to system libsqlite3.so library (launchbadge#3507)
* Add a "sqlite-unbundled" feature that dynamically links to system libsqlite3.so library
* update README abouot the newly-added `sqlite-unbundled` feature
* Update README.md to make it clear with bulleted list
Co-authored-by: Austin Bonander <[email protected]>
* more cfg feature updates
Co-authored-by: Austin Bonander <[email protected]>
* update documentation in sqlx-sqlx/src/lib.rs too
and also mention possible build time increasement.
* cargo fmt
* Add "sqlite-unbundled" feature to sqlx-cli
* Add sqlite-unbundled to gituhb actions tests
* cfg(feature = "sqlite") => cfg(any(feature = "sqlite", feature = "sqlite-unbundled"))
* fix
* CI: make sqlite-unbundled tests workaround required-features
by duplicating the relevant test section
* use an internal "_sqlite" feature to do the conditional compilation
---------
Co-authored-by: Austin Bonander <[email protected]>
Copy file name to clipboardexpand all lines: README.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,14 @@ be removed in the future.
183
183
184
184
-`mssql`: Add support for the MSSQL database server.
185
185
186
-
-`sqlite`: Add support for the self-contained [SQLite](https://sqlite.org/) database engine.
186
+
-`sqlite`: Add support for the self-contained [SQLite](https://sqlite.org/) database engine with SQLite bundled and statically-linked.
187
+
188
+
-`sqlite-unbundled`: The same as above (`sqlite`), but link SQLite from the system instead of the bundled version.
189
+
* Allows updating SQLite independently of SQLx or using forked versions.
190
+
* You must have SQLite installed on the system or provide a path to the library at build time.
191
+
See [the `rusqlite` README](https://github.com/rusqlite/rusqlite?tab=readme-ov-file#notes-on-building-rusqlite-and-libsqlite3-sys) for details.
192
+
* May result in link errors if the SQLite version is too old. Version `3.20.0` or newer is recommended.
193
+
* Can increase build time due to the use of bindgen.
187
194
188
195
-`any`: Add support for the `Any` database driver, which can proxy to a database driver at runtime.
0 commit comments