Skip to content

custom and JS converters #191

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

Merged
merged 1 commit into from
Mar 29, 2025
Merged

custom and JS converters #191

merged 1 commit into from
Mar 29, 2025

Conversation

jraymakers
Copy link
Contributor

  • Add custom result data conversion methods to both DuckDBResult and DuckDBResultReader:
    • convertColumns
    • convertColumnsObject
    • convertRows
    • convertRowObjects

Expose types and utility functions for working with custom converters.

  • Add methods for converting result data to built-in JS types:
    • getColumnsJS
    • getColumnsObjectJS
    • getRowsJS
    • getRowObjectsJS

Re-implement JSON converter to use new infrastructure (using a map of functions).

Add tests for the new JS conversions.

@jraymakers jraymakers merged commit eca5061 into main Mar 29, 2025
5 checks passed
@jraymakers jraymakers deleted the jray/custom-and-js-converters branch March 29, 2025 22:10
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