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

feat(bindings/nodejs): support queryIterMap #516

Merged
merged 26 commits into from
Dec 3, 2024

Conversation

everpcpc
Copy link
Member

@everpcpc everpcpc commented Dec 3, 2024

New method

let rows = await this.conn.queryIterMap("SELECT number as n FROM numbers(5)");
let ret = [];
let row = await rows.next();
while (row) {
  ret.push(row.data());
  row = await rows.next();
}

will get Key-Value Pair Rows.


@everpcpc everpcpc merged commit e8901ce into databendlabs:main Dec 3, 2024
29 checks passed
@everpcpc everpcpc deleted the feat-nodejs branch December 3, 2024 12:28
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.

1 participant