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

Add ResultSet.toJSON() #61

Merged
merged 1 commit into from
Jul 13, 2023
Merged

Add ResultSet.toJSON() #61

merged 1 commit into from
Jul 13, 2023

Conversation

honzasp
Copy link
Contributor

@honzasp honzasp commented Jul 10, 2023

Fixes #58.

The implementation in this PR is lossy: bigints are converted to strings, and BLOBs are converted to base64-encoded strings.

@honzasp honzasp requested a review from CodingDoug July 10, 2023 07:15
src/api.ts Show resolved Hide resolved
@honzasp honzasp merged commit 3de17d1 into main Jul 13, 2023
2 checks passed
@honzasp honzasp deleted the json-str branch July 17, 2023 14:38
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.

Enable JSON.stringify for ResultSet and Row objects
2 participants