It is very common use case to run a series of sql queries stored in a SQL script. Currently client doesn't seems to support that. Thus this request.
Ideally the API something like
clickhouse-client script.sql
I am aware of running client for each query separately and multiline parameter.
cat script.sql | clickhouse-client -mn
cat qq.sh
cat $1| clickhouse-client -mn
Thanks again, will leave that open as I think it is still worth to support script files and not just piping them it. Feel free to close if there are no plans to incorporate that.
clickhouse-client --multiquery < script.sql
Most helpful comment
cat script.sql | clickhouse-client -mn
cat qq.sh
!/bin/bash
cat $1| clickhouse-client -mn