2021-12-20 21:59:35 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2021-12-21 13:28:21 +00:00
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
|
|
|
|
# shellcheck source=../shell_config.sh
|
|
|
|
|
|
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
|
2021-12-20 21:59:35 +00:00
|
|
|
# single query echo on
|
2021-12-21 13:28:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --echo --query="DROP TABLE IF EXISTS echo_test_0"
|
2021-12-20 21:59:35 +00:00
|
|
|
# single query echo off
|
2021-12-21 13:28:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --query="DROP TABLE IF EXISTS echo_test_1"
|
2021-12-20 21:59:35 +00:00
|
|
|
# multi query echo on
|
2021-12-21 13:28:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --echo --multiquery --query="DROP TABLE IF EXISTS echo_test_2;DROP TABLE IF EXISTS echo_test_3"
|
2021-12-20 21:59:35 +00:00
|
|
|
# multi query echo off
|
2021-12-21 13:28:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT} --multiquery --query="DROP TABLE IF EXISTS echo_test_4;DROP TABLE IF EXISTS echo_test_5"
|