Skip to content

Enable the use of PRAGMA Key to encrypt db#1018

Open
K3yr0nym0us wants to merge 194 commits intorevert-982-linux-image-bumpfrom
master
Open

Enable the use of PRAGMA Key to encrypt db#1018
K3yr0nym0us wants to merge 194 commits intorevert-982-linux-image-bumpfrom
master

Conversation

@K3yr0nym0us
Copy link
Copy Markdown

Personally, I think that a Sqlite database that has so many features and improvements but that has no way to make it secure seems to me to be of little use, even so, I will use it with the hope that one day it will be able to encrypt its data.

m4heshd and others added 8 commits April 18, 2023 17:40
* Move repetitive build commands into environment variables

* Merge 'https://github.com/mceachen/better-sqlite3/tree/dry-gha-989'

Co-authored-by: mceachen <mceachen@users.noreply.github.com>

---------

Co-authored-by: mceachen <mceachen@users.noreply.github.com>
* Move repetitive build commands into environment variables (#989)

* Move repetitive build commands into environment variables

* Merge 'https://github.com/mceachen/better-sqlite3/tree/dry-gha-989'

Co-authored-by: mceachen <mceachen@users.noreply.github.com>

---------

Co-authored-by: mceachen <mceachen@users.noreply.github.com>

* restore "env." prefixes to NODE_BUILD_CMD and ELECTRON_BUILD_CMD

---------

Co-authored-by: mceachen <mceachen@users.noreply.github.com>
Co-authored-by: Matthew McEachen <matthew@photostructure.com>
* Add support for Node v20 prebuilds

* Also test v20
Remove node.js v14 builds and testing (runtime EOL)
* Fix out-of-bounds read in statement tail parser

* Add comment with link to tail parsing issue

* Fix missing increment in tail parser + tests
Co-authored-by: mceachen <mceachen@users.noreply.github.com>
@K3yr0nym0us K3yr0nym0us requested review from a team and JoshuaWise as code owners June 5, 2023 13:40
mceachen and others added 20 commits July 19, 2023 13:31
Prebuild for Node on other architectures as well
Fix buffer create in sandbox mode (electron)
Fix: Allow building with space in path
From the docs:

> This option is obsolete. It used to enable some extra some extra
> PRAGMA statements such as PRAGMA function_list, PRAGMA module_list,
> and PRAGMA pragma_list, but those pragmas are now all enabled by
> default.  See SQLITE_OMIT_INTROSPECTION_PRAGMAS.

It has been obsolete since 2019-10-04 (with SQLite 3.30.0).
* Added `webpack` support

* changed from `webpack_require` to `non_webpack_require`

* Update database.js

Added URL to webpack documentation

* feat(database): now `nativeBinding` supports addon object

* style(package): line break removed

---------

Co-authored-by: Matthew McEachen <matthew@photostructure.com>
added HAVE_USLEEP=1 compile-time option
JoshuaWise and others added 30 commits November 14, 2025 20:21
* chore(build): Add support for Electron 39+ builds in CI workflow by running those prebuilds with bookworm (and keeping the older prebuilds on bullseye). Fixes #1421

* chore(build): add support for node 25 (see #1412)
chore(build): add OIDC permissions and upgrade npm for trusted publishing
Co-authored-by: mceachen <216377+mceachen@users.noreply.github.com>
Co-authored-by: mceachen <216377+mceachen@users.noreply.github.com>
…#1438)

* chore(build.yml): Update Electron build command to include version 40.0.0

* chore: Add EOL date for v40
fix: update node-abi version in package.json to ^4.25.0
* Fix Node v25 errors on tests

* Disable fail-fast on test jobs
Co-authored-by: mceachen <216377+mceachen@users.noreply.github.com>
* Revert "Fix Node v25 test errors (#1454)"

This reverts commit 128cdf4.

* ci: disable fail-fast in test job strategy
)

fix: use Holder() instead of This() in PropertyCallbackInfo contexts

PropertyCallbackInfo::This() was removed in V8 13.x (Electron 41),
causing compilation errors in NODE_GETTER functions.
Co-authored-by: mceachen <216377+mceachen@users.noreply.github.com>
* Requires Node.js v20 or later

* generic wording

* link
Co-authored-by: mceachen <216377+mceachen@users.noreply.github.com>
fix: use HolderV2() for PropertyCallbackInfo on V8 >= 13

PR #1456 replaced This() with Holder() in NODE_GETTER contexts, but
Electron 41 (V8 14.6) removed both This() and Holder() from
PropertyCallbackInfo. Only HolderV2() remains (to be renamed back to
Holder() in a future V8 version per crbug.com/333672197).

Add a PROPERTY_HOLDER compat macro that uses HolderV2() on V8 >= 13
and falls back to This() on older versions. Same pattern as the
existing GET_PROTOTYPE macro.

Verified: compiles and runs on Electron 41.0.1 (V8 14.6.202).

Fixes #1458
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.