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

Allow custom JSON parsers in the client configuration #246

Open
slvrtrn opened this issue Mar 15, 2024 · 0 comments
Open

Allow custom JSON parsers in the client configuration #246

slvrtrn opened this issue Mar 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@slvrtrn
Copy link
Contributor

slvrtrn commented Mar 15, 2024

  • Benchmark some select operations with libraries such as SIMD JSON
  • If there are improvements in certain cases and custom functions are easy to squeeze into the implementation, allow custom parsers to be specified to the client.

For example:

interface ClickHouseClientConfigOptions {
  // ...
  json?: {
    // default is JSON.parse
    parse?: <T = any>(str: string) => T
    // default is JSON.stringify
    stringify?: <T = any>(obj: T) => string 
  }
})
@slvrtrn slvrtrn added the enhancement New feature or request label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant