Debian Codegraph @

devtools/prepare_clickhouse.sh

raw
1 #!/bin/bash
2 # this script prepares a clickhouse instance for use by the rsyslog testbench
3
4
5 clickhouse-client --query="CREATE DATABASE rsyslog"
6 echo clickouse create database RETURN STATE: $?
7
8 # At the moment only the database is created for preperation.
9 # Every test creates a table for itself and drops it afterwards.
10 # This could look something like this:
11
12 #clickhouse-client --query="CREATE TABLE IF NOT EXISTS rsyslog.test ( id Int32, severity Int8, facility Int8, timestamp DateTime, ipaddress String, tag String, message String ) ENGINE = MergeTree() PARTITION BY severity Order By id"
13 #clickhouse-client --query="DROP TABLE rsyslog.test"