Commit f241e0d
feat: align ClickHouse adapter with audit, add 7 query methods
Adds notEqual, notContains, notBetween, isNull, isNotNull, startsWith,
endsWith — keeping the supported Query method set in line with the audit
ClickHouse adapter. startsWith / endsWith use ClickHouse's built-in
functions of the same name; isNull / isNotNull emit `IS NULL` / `IS NOT
NULL` (no value binding); the rest follow the existing param-bound pattern.
The shared parseQueries logic is now consistent across both adapters:
- getParamType() centralises the column → ClickHouse-type mapping (time
→ DateTime64(3), value → Int64, default → String). Previously each case
had an inline `if (\$attribute === 'time')` branch.
- formatTypedValue() routes DateTime-typed values through formatDateTime
and everything else through formatParamValue, so each case has one code
path.
- buildCursorWhere() uses the same dispatch.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 647dffa commit f241e0d
2 files changed
Lines changed: 203 additions & 134 deletions
0 commit comments