ClickHouse can run arbitrary SQL queries from the server configuration during startup. This can be useful for migrations or automatic schema creation.Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
startup_scripts sequentially in the specified order. If any of the queries fail, the execution of the following queries won’t be interrupted. However, if throw_on_error is set to true,
the server will not start if an error occurs during script execution.
You can specify a conditional query in the config. In that case, the corresponding query executes only when the condition query returns the value 1 or true.
If the condition query returns any other value than
1 or true, the result will be interpreted as false, and the corresponding won’t be executed.