Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1f7d92d
chore(deps): bump utopia-php/query to 0.3.x (dev-branch pin)
lohanidamodar May 17, 2026
5303170
refactor(query): re-expose TYPE_* constants on Audit\Query for 0.3.x
lohanidamodar May 17, 2026
5c57e34
chore(deps): bump phpstan to ^2.0 for PHP 8.4 query lib
lohanidamodar May 17, 2026
5526548
refactor(adapters): unwrap Method enum to string at getMethod() call …
lohanidamodar May 17, 2026
fbcf215
chore: silence PHPStan 2.x diagnostics unrelated to the migration
lohanidamodar May 17, 2026
db6b315
refactor(clickhouse): use Schema\ClickHouse for setup() DDL
lohanidamodar May 17, 2026
711506b
refactor(clickhouse): use Builder INSERT FORMAT JSONEachRow for creat…
lohanidamodar May 17, 2026
ed4b80f
refactor(clickhouse): use Builder DELETE + SETTINGS for cleanup()
lohanidamodar May 17, 2026
72a85ea
refactor(clickhouse): use Builder for find/count/getById SQL shape
lohanidamodar May 17, 2026
14fbfc3
test(clickhouse): add SQL snapshot tests for migrated builder paths
lohanidamodar May 17, 2026
bac69bf
refactor(clickhouse): register typed bindings on Builder\ClickHouse
lohanidamodar May 17, 2026
0c468c1
refactor(clickhouse): migrate find/count/getById reads to builder fil…
lohanidamodar May 17, 2026
9d4310b
fix(clickhouse): use lightweight DELETE FROM for cleanup() (default)
lohanidamodar May 17, 2026
8b9e09e
test(clickhouse): update snapshots for typed reads and lightweight DE…
lohanidamodar May 17, 2026
a2caa12
chore(ci): bump test image to PHP 8.4 to match composer.json requirement
lohanidamodar May 17, 2026
a4642d9
fix(clickhouse): restore is_array() guard on parseJsonResults rows
lohanidamodar May 18, 2026
c8d9ef2
test(clickhouse): pin NOT IN snapshot for notContains multi-value
lohanidamodar May 18, 2026
7bfe141
Merge branch 'main' into feat/utopia-query-0.3.x
lohanidamodar May 18, 2026
09ecbb4
chore(deps): bump utopia-php/query pin to ^0.3.2 (tagged release)
lohanidamodar May 20, 2026
083e0df
chore(deps): re-pin utopia-php/query to PR #13 dev-branch as 0.3.3
lohanidamodar May 21, 2026
d05bb20
refactor(clickhouse): use Builder bulkInsert for createBatch, drop ma…
lohanidamodar May 21, 2026
3611c17
Merge remote-tracking branch 'origin/main' into feat/utopia-query-0.3.x
lohanidamodar Jun 9, 2026
504eea1
Merge origin/main into feat/utopia-query-0.3.x
lohanidamodar Jul 6, 2026
650d4c6
refactor(clickhouse): migrate HTTP transport from utopia-php/fetch to…
lohanidamodar Jul 6, 2026
c301e5d
chore(deps): pin utopia-php/query to stable 0.3.* and restore LowCard…
lohanidamodar Jul 6, 2026
c1aefab
Merge origin/main into feat/utopia-query-0.3.x
lohanidamodar Jul 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor/
/.idea/
/.idea/
/.phpunit.cache/
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,32 @@

All notable changes to `utopia-php/audit` are documented in this file.

## Unreleased

### ClickHouse adapter — migrated to the utopia-php/query 0.3 builder

#### Changed

- `utopia-php/query` bumped from `0.1.*` to `0.3.*` (locked at 0.3.3).
- `setup()` builds its DDL through `Utopia\Query\Schema\ClickHouse` instead of
hand-assembled SQL. Column types, `LowCardinality(...)` / `Nullable(...)`
wrapping, bloom-filter indexes, engine, `ORDER BY`, `PARTITION BY` and
`SETTINGS` are all emitted by the schema builder. The retention `MODIFY TTL`
/ `REMOVE TTL` statements are unchanged.
- `find()`, `count()`, `getById()`, `createBatch()` and `cleanup()` build their
SQL through `Utopia\Query\Builder\ClickHouse`. Positional bindings are
rewritten to typed `{paramN:Type}` ClickHouse placeholders from a column →
type map derived from `getAttributes()`.
- `createBatch()` uses `Builder\ClickHouse::bulkInsert(Format::JSONEachRow, …)`
to emit the `INSERT … FORMAT JSONEachRow` envelope and serialize the body.
- `Query::getMethod()` now returns the `Utopia\Query\Method` enum (upstream
0.3 change). `Utopia\Audit\Query` continues to expose the legacy `TYPE_*`
string constants, which map to the same string values.

Filter semantics are unchanged: `contains` / `notContains` remain substring
matches (now compiled to ClickHouse `position(col, ?) > 0` / `= 0` rather than
`LIKE '%needle%'`, which also removes the need for wildcard escaping).

## 2.9.0

### ClickHouse adapter — user-agent columns
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"php": ">=8.5",
"utopia-php/database": "^6.0.0",
"utopia-php/fetch": "^1.1",
"utopia-php/query": "0.1.*",
"utopia-php/query": "0.3.*",
"utopia-php/validators": "0.3.*"
},
"config": {
Expand Down
127 changes: 68 additions & 59 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading