Feat: add napi-rs Node.js bindings#31
Open
EnderRomantice wants to merge 3 commits into
Open
Conversation
Add the @holt/node package with Buffer/Uint8Array Tree APIs, bigint versions, scans, WAL reopen coverage, and napi-rs generated loader/types. Keep native artifacts out of git and document local/release builds.
Add Database bindings for named-tree create/open/drop/list operations and shared checkpointing, with in-memory isolation, file reopen, and Next.js integration coverage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the @holt/node package with Buffer/Uint8Array Tree APIs, bigint versions, scans, WAL reopen coverage, and napi-rs generated loader/types. Keep native artifacts out of git and document local/release builds.
What changed
Added a new
packages/holt-nodeworkspace member that provides Node.js bindings for Holt through napi-rs.The package:
holtcrate.Tree.open,Tree.openMemory,get,getRecord,put,delete,compareAndPut,checkpoint,scanKeys,scanRecords, andclose.BufferandUint8Arraykeys and values.bigint.startAfter, and delimiter common-prefix rollups..nodeartifacts out of Git.holt-ffiC ABI unchanged.Test plan
cargo fmt --all --checkcargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lib --tests --lockedcargo test -p holt-node --lockednpm testinpackages/holt-nodenpm run buildnpm packand installed the tarball into a standalone Next.js application.next buildandnext start.bigintversion handling through Next.js.No unsafe block or on-disk layout was added or changed.
Related
No related issue. This is the initial Node.js binding layer for Holt.