clickhouse client and clickhouse-local display the prompt in your terminal window, it is possible to change it to add a prefix.
This article explains how to change the prompt to whatever you want.
The default prompt is your local computer name followed by :) :
The following are variables that you can use in a prompt: {user}, {host}
There are several ways to update the prompt and we’ll go through them each.
—prompt flag
The first way to change the flag is using the--prompt:
Config file - top level
Alternatively, you can provide a prompt prefix in aconfig.xml file:
-C flag:
Config file - connections_credentials
Alternatively, you can specify a prompt per connection credentials. This only makes sense when using clickhouse-client.dev connection:
prod one:
dev connnection:
prod: