clickhouse-go
clickhouse-go copied to clipboard
Add gotData and endOfProcess handlers
Summary
Add two new handlers to track the processing:
- Helper
WithGotDataallows to pass a function will be triggered on every processing data block. - Helper
WithEndOfProcessallows to pass a function will be triggered when the whole processing going to be finished.
Checklist
Delete items not relevant to your PR:
- [x] Unit and integration tests covering the common scenarios were added
- [x] A human-readable description of the changes was provided to include in CHANGELOG