Closed Holi0317 closed 4 months ago
Thanks for your contribution! Nice catch.
A few notes:
exec
method is not intended to be used with CREATE TABLE
statements; the relevant method is command
. The main purpose of exec
is to provide a workaround for "unusual" statements that will provide a useful output (select with a default format, select into a file) and something similar; if some of the docs/examples are misleading, let's update that as well.query
, command
, insert
; I am AFK now, so can't check it quickly.exec
.exec
to create the table, don't forget to destroy the returned stream. This is done internally in the command
method (though the stream is not destroyed, but "drained" instead, to preserve the keep-alive socket).I will recreate it as a new PR from another branch (where I have write access).
Summary
Allow overriding
session_id
per queryhttps://github.com/ClickHouse/clickhouse-js/issues/271
Checklist
Delete items not relevant to your PR: