Skip to content

Commit

Permalink
Upgrade SQLite to version 3.38.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dyedgreen committed Apr 30, 2022
1 parent f34c14a commit c52b778
Show file tree
Hide file tree
Showing 7 changed files with 12,363 additions and 7,984 deletions.
2 changes: 1 addition & 1 deletion build/.checksums
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ff0ccd70809c63e6c6a961d40eae6b6af6b46136 sqlite_dl.zip
cac23d4a6d36b3810fd74e7ba3f2ceefbbf16e75 sqlite_dl.zip
ff114dd45b4efeeae7afe4621bfc6f886a475b4b wasi_dl_linux.tar.gz
97153b832084e11c96184b912cd601eca759adfd wasi_dl_darwin.tar.gz
8 changes: 4 additions & 4 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ OUT_WA = "sqlite.wasm"
OUT_BN = "sqlite.js"
OUT_TY = "sqlite.d.ts"

SQLITE_DLD = "https://sqlite.org/2021/sqlite-src-3360000.zip"
SQLITE_DIR = "sqlite-src-3360000"
SQLITE_DLD = "https://sqlite.org/2022/sqlite-src-3380300.zip"
SQLITE_DIR = "sqlite-src-3380300"

WASI_DLD = "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-11/wasi-sdk-11.0-linux.tar.gz"
WASI_TAR = wasi_dl_linux.tar.gz
Expand Down Expand Up @@ -36,7 +36,7 @@ SQLFLG = -DSQLITE_DQS=0 -DSQLITE_THREADSAFE=0 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS\
-DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_UTF16 -DSQLITE_OMIT_SHARED_CACHE\
-DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_PROGRESS_CALLBACK -DSQLITE_OMIT_TRACE\
-DSQLITE_OS_OTHER=1 -DSQLITE_OMIT_COMPLETE -DSQLITE_OMIT_WAL\
-DNDEBUG=1 -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_ENABLE_JSON1 -DHAVE_LOCALTIME_R\
-DNDEBUG=1 -DSQLITE_ENABLE_COLUMN_METADATA -DHAVE_LOCALTIME_R\
-DSQLITE_OMIT_DESERIALIZE
# Rational:
# SQLITE_DQS -> we do not need to have backwards comp
Expand All @@ -55,7 +55,6 @@ SQLFLG = -DSQLITE_DQS=0 -DSQLITE_THREADSAFE=0 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS\
# SQLITE_OMIT_WAL -> this is doggy, as we can not memory map files
# DNDEBUG -> "use for maximum speed"
# SQLITE_ENABLE_COLUMN_METADATA -> we depend on column metadata interfaces (`sqlite3_column_table_name` and `sqlite3_column_origin_name`)
# SQLITE_ENABLE_JSON1 -> json data is common in javascript
# SQLITE_OMIT_DESERIALIZE -> we don't use these interfaces

all: release
Expand Down Expand Up @@ -127,5 +126,6 @@ setup: dlwasi
clean:
rm -rf sqlite-src
rm -rf wasi-sdk
rm -f 2GB_test.db

.PHONY: build amalgamation dlsqlite dlwasi setup clean
Loading

0 comments on commit c52b778

Please sign in to comment.