Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: add `SQLITE_ENABLE_REGEXP` define to better-sqlite3

Abdullah Atta5dd9ce9f2502
diff --git a/apps/desktop/patches/better-sqlite3-multiple-ciphers+11.3.0.patch b/apps/desktop/patches/better-sqlite3-multiple-ciphers+11.3.0.patch
new file mode 100644
index 000000000..28acec8cb
--- /dev/null
+++ b/apps/desktop/patches/better-sqlite3-multiple-ciphers+11.3.0.patch
@@ -0,0 +1,11 @@
+diff --git a/node_modules/better-sqlite3-multiple-ciphers/deps/defines.gypi b/node_modules/better-sqlite3-multiple-ciphers/deps/defines.gypi
+index 1a14ecd..dabcce2 100644
+--- a/node_modules/better-sqlite3-multiple-ciphers/deps/defines.gypi
++++ b/node_modules/better-sqlite3-multiple-ciphers/deps/defines.gypi
+@@ -38,5 +38,6 @@
+ 'SQLITE_TRACE_SIZE_LIMIT=32',
+ 'SQLITE_USER_AUTHENTICATION=0',
+ 'SQLITE_USE_URI=0',
++ 'SQLITE_ENABLE_REGEXP',
+ ],
+ }