Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit d1f469c

Browse files
build: Include various useful extensions in our built SQLite
It's the same list of extensions we use in our macOS nightly builds currently: * COLUMN_METADATA * FTS3 * FTS3_PARENTHESIS * FTS5 * GEOPOLY * JSON1 * MATH_FUNCTIONS * RTREE * SOUNDEX * STAT4 This commit doesn't add the function names to the SQLite Authorizer white list, which can come later. Live databases should be able to use them immediately however.
1 parent 081bbd9 commit d1f469c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎build_dbhub.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/sh
22

3-
# TODO: Consider adding the same extensions to the SQLite compile here, that we use
4-
# in our macOS, AppImage (etc) builds. Then add the function names to the allowed
5-
# list for the API Query() function
3+
# TODO: Add the function names from the SQLite extensions to AuthorizerSelect()
64

75
# Useful variables
86
DEST=${PWD}/local
@@ -42,7 +40,7 @@ if [ ! -e "${DEST}/lib/libsqlite3.so" ]; then
4240
echo "Compiling local SQLite"
4341
tar xfz sqlite.tar.gz
4442
cd sqlite-autoconf-* || exit 4
45-
./configure --prefix=${DEST} --enable-dynamic-extensions=no
43+
CPPFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_MAX_VARIABLE_NUMBER=250000 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_GEOPOLY=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_STAT4=1 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_SOUNDEX=1 -DSQLITE_ENABLE_MATH_FUNCTIONS=1 -DSQLITE_MAX_ATTACHED=125 -DSQLITE_ENABLE_MEMORY_MANAGEMENT=1 -DSQLITE_ENABLE_SNAPSHOT=1"./configure --prefix=${DEST} --enable-dynamic-extensions=no
4644
make -j9
4745
make install
4846
cd ..

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /