Skip to content

Allow custom JSON parsers in the client configuration #246

Open
@slvrtrn

Description

  • 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 
  }
})

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions