Skip to content

feat: node.js neon bindings#8

Merged
antouhou merged 19 commits into
grovedb_newfrom
feat-node-bindings
Dec 17, 2021
Merged

feat: node.js neon bindings#8
antouhou merged 19 commits into
grovedb_newfrom
feat-node-bindings

Conversation

@antouhou
Copy link
Copy Markdown
Contributor

@antouhou antouhou commented Dec 8, 2021

Issue being fixed or feature implemented

Add neon bindings for node.js to use it with the current implementation of the js-drive

What was done?

  • add a new package node-grove
  • add all necessary node.js files
  • add README.md for the binding
  • add build scripts

How Has This Been Tested?

  • add functional tests to run on node.js

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@antouhou antouhou marked this pull request as ready for review December 16, 2021 18:59
@antouhou antouhou requested a review from fominok December 16, 2021 19:07
Comment thread node-grove/src/lib.rs
let js_key = cx.argument::<JsBuffer>(1)?;
let js_callback = cx.argument::<JsFunction>(2)?.root(&mut cx);

let path = converter::js_array_of_buffers_to_vec(js_path, &mut cx)?;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps we need to represent paths as a continuous memory location sometime, otherwise we need to do such acrobatics

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fominok It depends, I think from the Rust perspective it looks alright, otherwise you'll have to parse continuous memory to get path fragments for it

@antouhou antouhou merged commit 69b1e5b into grovedb_new Dec 17, 2021
@QuantumExplorer QuantumExplorer deleted the feat-node-bindings branch December 20, 2021 10:55
QuantumExplorer pushed a commit that referenced this pull request Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants