ClickHouse / clickhouse-js

Official JS client for ClickHouse DB
https://clickhouse.com
Apache License 2.0
205 stars 25 forks source link

Add default HTTP settings + readonly user switch #225

Closed slvrtrn closed 6 months ago

slvrtrn commented 7 months ago

Summary

See CHANGELOG. It is a breaking change for read-only users, but IMO necessary, as timeout issues when an LB terminates a long-running query connection are incredibly obscure, and this should at least cover AWS LB defaults.

It works similarly to how clickhouse-connect handles it (but currently does not normalize it based on the request timeout).

Checklist

slvrtrn commented 7 months ago

@mshustov, I updated the version, docs, and CHANGELOG, plus added an example, WDYT?