Skip to content

add INTERVAL support to node.js#2819

Merged
Mytherin merged 2 commits intoduckdb:masterfrom
hamilton:interval-support-nodejs
Dec 20, 2021
Merged

add INTERVAL support to node.js#2819
Mytherin merged 2 commits intoduckdb:masterfrom
hamilton:interval-support-nodejs

Conversation

@hamilton
Copy link
Contributor

Closes #2787 based on @hawkfish's suggestion. This PR:

  • adds support for INTERVAL in node.js by converting the struct to a javascript object
  • adds a mocha test to verify this type translation works as expected

Apologies if my c++ is a bit elementary – I welcome feedback on the code quality.

@hamilton hamilton changed the title add INTERVAL support to node.js bindings add INTERVAL support to node.js Dec 19, 2021
Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Looks good to me.

@Mytherin Mytherin merged commit 0cb1607 into duckdb:master Dec 20, 2021
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.

add support for INTERVAL in node.js bindings

2 participants