Skip to content

feat: Add ClickHouse resource client - #81

Open
major-connector-creator[bot] wants to merge 1 commit into
mainfrom
claude/clickhouse-connector-e84f
Open

feat: Add ClickHouse resource client#81
major-connector-creator[bot] wants to merge 1 commit into
mainfrom
claude/clickhouse-connector-e84f

Conversation

@major-connector-creator

Copy link
Copy Markdown

Summary

Adds the TypeScript client for the ClickHouse database connector in the resource-client package.

Changes

New Files

  • src/schemas/clickhouse.ts: DbClickhouseParamPrimitive type and DbClickhousePayload interface
  • src/clients/clickhouse.ts: ClickhouseResourceClient class with invoke<T>() method (same pattern as MySQL)
  • src/payload-builders/clickhouse.ts: buildClickhouseInvokePayload() function

Modified Files

  • src/schemas/index.ts: Export clickhouse schema, add DbClickhousePayload to ResourceInvokePayload union
  • src/schemas/response.ts: Add ClickhouseInvokeResponse<T> type (reuses DbResult<T>)
  • src/index.ts: Export ClickhouseResourceClient and ClickhouseInvokeResponse
  • src/payload-builders/from-extracted-params.ts: Add "clickhouse" case in the switch
  • bin/generate-clients.mjs: Add 'clickhouse': 'ClickhouseResourceClient' to type map and validTypes array

- Add DbClickhousePayload schema and param types
- Add ClickhouseResourceClient with invoke() method
- Add buildClickhouseInvokePayload payload builder
- Add ClickhouseInvokeResponse type
- Add clickhouse case in from-extracted-params.ts
- Add clickhouse to generate-clients.mjs type map and validTypes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant