Closed ReginYuan closed 5 months ago
Also, this bot should move issues to another repository if appropriate.
@ReginYuan, do you use the query
method like it's shown in this example: https://github.com/ClickHouse/clickhouse-js/blob/main/examples/select_json_each_row.ts#L7-L10? (see the params passed as an object with query
property).
If you could provide a code snippet that causes the failure, that would be nice, too.
@slvrtrn maybe we should add a simple runtime validation for required fields? Not everyone uses typescript.
@mshustov, I'd argue that 1) even in vanilla JS, code editors such as VS Code give type hints since those are embedded in the package:
2) if you click on the query
method and then to QueryParams
, all the types are still there to explore
3) API is thoroughly covered in the docs
4) Finally, TS should be considered; it's 2024 already.
@clickhouse\client-common\dist\client.js:137:19) 我在做删除指定删除数据库中的表的字段时报错:TypeError: Cannot read properties of undefined (reading 'trim')