github depyronick/nestjs-clickhouse 2.0.0

latest releases: 2.0.4, 2.0.2, 2.0.1...
22 months ago

Important Changes

  • The return type of query is now string | T.
  • The return type of queryPromise is now string | T[].
  • Queries will now return T or T[] for JSON formats, and string for non-JSON formats.
  • The library won't allow queries with unsupported formats anymore.
  • Axios HTTP configuration and ClickHouse HTTP Interface Settings are now separate options.

Features

  • Added Parametrized Query Capabilities. Thanks to @antoniovizuete.
  • Added maxBodyLength and maxContentLength HTTP configurations, both defaults to Infinity
  • Added support for formats:
    • TabSeparated
    • TabSeparatedRaw
    • TabSeparatedWithNames
    • TabSeparatedWithNamesAndTypes
    • TabSeparatedRawWithNames
    • TabSeparatedRawWithNamesAndTypes
    • CSV
    • CSVWithNames
    • CSVWithNamesAndTypes
    • CustomSeparated
    • CustomSeparatedWithNames
    • CustomSeparatedWithNamesAndTypes
    • Values
    • Vertical
    • TSV
    • JSON
    • JSONStrings
    • JSONCompact
    • JSONCompactStrings
    • TSKV
    • Pretty
    • PrettyNoEscapes
    • PrettyCompact
    • PrettyCompactNoEscapes
    • PrettyCompactMonoBlock
    • PrettySpace
    • PrettySpaceNoEscapes
    • Null
    • LineAsString

Fixes

  • AxiosError <unknown> typing error.
  • queryPromise memory consumption.

Security

Special thanks to @vgorkavenko.

Don't miss a new nestjs-clickhouse release

NewReleases is sending notifications on new releases.