mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-22 07:48:56 +08:00
LIBSQLITE3_FLAGS for bundled -> SQLITE_FLAGS
This flag was added in a9b700c but never documented. Here we change the
name to more closely follow SQLITE_MAX_VARIABLE_NUMBER etc; and
document its existence in README.md.
This commit is contained in:
@@ -131,7 +131,7 @@ You can adjust this behavior in a number of ways:
|
||||
version = "0.24.2"
|
||||
features = ["bundled"]
|
||||
```
|
||||
* When using the `bundled` feature, the build script will honor `SQLITE_MAX_VARIABLE_NUMBER` and `SQLITE_MAX_EXPR_DEPTH` variables.
|
||||
* When using the `bundled` feature, the build script will honor `SQLITE_MAX_VARIABLE_NUMBER` and `SQLITE_MAX_EXPR_DEPTH` variables. It will also honor a `SQLITE_FLAGS` variable, which can have a format like `"-USQLITE_ALPHA -DSQLITE_BETA SQLITE_GAMMA ..."`. That would disable the `SQLITE_ALPHA` flag, and set the `SQLITE_BETA` and `SQLITE_GAMMA` flags. (The initial `-D` can be omitted, as on the last one.)
|
||||
|
||||
* When linking against a SQLite library already on the system (so *not* using the `bundled` feature), you can set the `SQLITE3_LIB_DIR` environment variable to point to a directory containing the library. You can also set the `SQLITE3_INCLUDE_DIR` variable to point to the directory containing `sqlite3.h`.
|
||||
* Installing the sqlite3 development packages will usually be all that is required, but
|
||||
|
||||
Reference in New Issue
Block a user