v.22.1Improvement

Use --database Option for ClickHouse-Local

Use --database option for clickhouse-local. #32797 (Kseniia Sumarokova).
Adds support for the --database option in clickhouse-local to specify the default database.

Why it matters

This feature allows users to set the default database when running clickhouse-local. It simplifies queries and operations by enabling the use of database-qualified objects without needing to specify the database explicitly each time.

How to use it

Run clickhouse-local with the --database <database_name> option to set the active database. For example:

clickhouse-local --database my_database