Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Similar to DuckDB Node JS API #22

Open
ceckoslab opened this issue Nov 18, 2024 · 2 comments
Open

Question: Similar to DuckDB Node JS API #22

ceckoslab opened this issue Nov 18, 2024 · 2 comments

Comments

@ceckoslab
Copy link

Hello @auxten

I am talking with a few enthusiasts and we are considering to add a few things that will improve the developers' experience on CHDB.

We could work on a proof of concept but first we would like to know if you would be interested to have similar to DuckDB Node JS API - ref: https://duckdb.org/docs/api/nodejs/overview

Something like this that would make it easier when building queries:

db.all('SELECT ?::INTEGER AS fortytwo, ?::VARCHAR AS hello', 42, 'Hello, World', function(err, res) {
  if (err) {
    console.warn(err);
    return;
  }
  console.log(res[0].fortytwo)
  console.log(res[0].hello)
});
@auxten
Copy link
Member

auxten commented Nov 19, 2024

Nice, you are right. This style is more Node JS style. I will try to sort it out how to do that. But frankly speaking, I'm not a JS expert. If you would like to help on this and I could do the C/C++ part ;)

@ceckoslab
Copy link
Author

Among the enthusiasts we have someone who knows C/C++, Node JS and TypeScript. We are thinking to work on a very minor proof of concept and to share it as a draft pull request.

It will take a while but we will keep you posted.

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

No branches or pull requests

2 participants