From 60763a0742690c8bae1db43d838f418cfc83b656 Mon Sep 17 00:00:00 2001 From: Kristoffer K Date: Thu, 22 Feb 2024 23:17:29 +0100 Subject: [PATCH] fix: support SpatiaLite extension (#1137) --- .github/workflows/build.yml | 6 ++++++ deps/defines.gypi | 1 - deps/download.sh | 1 - docs/compilation.md | 1 - 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fad37dc2..ca3ea9ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,6 +42,12 @@ jobs: - run: npm install --ignore-scripts - run: npm run build-debug - run: npm test + - name: Test SpatiaLite extension + if: ${{ startsWith(matrix.os, 'ubuntu') }} + run: | + sudo apt update + sudo apt install libsqlite3-mod-spatialite -y + node -e "require('./lib/index.js')(':memory:').loadExtension('mod_spatialite').exec('SELECT InitSpatialMetaData();')" publish: if: ${{ github.event_name == 'release' }} diff --git a/deps/defines.gypi b/deps/defines.gypi index 3ac6a697..b2701281 100644 --- a/deps/defines.gypi +++ b/deps/defines.gypi @@ -29,7 +29,6 @@ 'SQLITE_ENABLE_UPDATE_DELETE_LIMIT', 'SQLITE_LIKE_DOESNT_MATCH_BLOBS', 'SQLITE_OMIT_DEPRECATED', - 'SQLITE_OMIT_GET_TABLE', 'SQLITE_OMIT_PROGRESS_CALLBACK', 'SQLITE_OMIT_SHARED_CACHE', 'SQLITE_OMIT_TCL_VARIABLE', diff --git a/deps/download.sh b/deps/download.sh index 36fac8bd..976e0d45 100755 --- a/deps/download.sh +++ b/deps/download.sh @@ -50,7 +50,6 @@ SQLITE_ENABLE_STAT4 SQLITE_ENABLE_UPDATE_DELETE_LIMIT SQLITE_LIKE_DOESNT_MATCH_BLOBS SQLITE_OMIT_DEPRECATED -SQLITE_OMIT_GET_TABLE SQLITE_OMIT_PROGRESS_CALLBACK SQLITE_OMIT_SHARED_CACHE SQLITE_OMIT_TCL_VARIABLE diff --git a/docs/compilation.md b/docs/compilation.md index 20e37ca9..74e42ebb 100644 --- a/docs/compilation.md +++ b/docs/compilation.md @@ -73,7 +73,6 @@ SQLITE_ENABLE_STAT4 SQLITE_ENABLE_UPDATE_DELETE_LIMIT SQLITE_LIKE_DOESNT_MATCH_BLOBS SQLITE_OMIT_DEPRECATED -SQLITE_OMIT_GET_TABLE SQLITE_OMIT_PROGRESS_CALLBACK SQLITE_OMIT_SHARED_CACHE SQLITE_OMIT_TCL_VARIABLE