Changes for version 0.11 - 2026-12-01

  • First release to CPAN (0.02 and 0.10 were never published).
  • Added AI_POLICY.md and an AI disclosure in the POD: written with AI assistance, reviewed, tested and released by the maintainer.
  • Docs note that the maintainer uses the module in production.
  • Release packaging: LICENSE and README added, Makefile.PL metadata completed, POD updated (EXAMPLES inline, installation notes).
  • auto (the default clickhouse_format) now picks RowBinary, falling back to TSV or JSON when a column cannot be decoded.
  • TSV results use a compiled per-statement decoder (split, lazy unescape, in-place numify) instead of a second coerce pass.
  • RowBinary results compile a per-statement decoder with a literal unpack template (parsed once, not once per row).
  • fetchall_arrayref / clickhouse_fetch_batch(0) reuse the decoded row arrays instead of copying them.
  • Larger HTTP and decode buffers (4 MiB).
  • HTTP header and chunk-size lines still use 64 KiB reads so a 4 MiB body read cannot trip the 1 MiB line cap.
  • Faster DateTime/Date formatting (civil date, no gmtime).
  • RowBinary mid-stream exception scan only looks at newly read bytes.
  • Format fallback on a streaming statement clears the leftover body so the retry does not parse the previous format as JSON or TSV.
  • clickhouse_streaming now defaults on. Set streaming=0 or clickhouse_streaming => 0 to buffer the whole result first (the 0.10 default). A streaming statement still owns the connection until finish or the last fetch; catalog helpers force it off.

Documentation

Modules

DBI driver for ClickHouse over HTTP
TabSeparated and RowBinary codecs for DBD::ClickHouse
minimal HTTP/1.1 client used by DBD::ClickHouse
DSN, SQL placeholder, and exception parsing
ClickHouse type parsing, literals, and coercion

Provides

in lib/DBD/ClickHouse.pm
in lib/DBD/ClickHouse.pm
in lib/DBD/ClickHouse.pm