App::S...ckhouse(3pm)
β¨ NAME β¨
okay so bestie, meet App::Sqitch::Engine::clickhouse β that's the Sqitch ClickHouse Engine π
it's a Perl module situation, filed under User Contributed Perl Documentation, and it's literally the thing that lets Sqitch talk to ClickHouse. no cap.
π¦ SYNOPSIS π¦
my $clickhouse = App::Sqitch::Engine->load( engine => 'clickhouse' );
that's it. that's the whole summoning ritual. iconic. β¨
π DESCRIPTION π
App::Sqitch::Engine::clickhouse is the ClickHouse storage engine for Sqitch, and she supports ClickHouse v25.8 and higher. periodt. if you're on anything older, that's not her problem, that's a you problem π«Ά
π INTERFACE π
π Instance Methods
πΈ cli
Returns a list containing the clickhouse client plus the options that get passed to it. This one is used internally when executing scripts, so don't come for her, she's doing her job.
Query parameters in the URI that map to clickhouse client options will get passed straight through to the client, and the mapping goes like this:
SSLModeβ--secureβ ifSSLModeis set, assume that TLS is required in the client. yes ma'am, secure the bag πNativePortβ--portβ a Sqitch-specific parameter for the client port. Required, bestie, because the ODBC driver uses the HTTP ports (8123or8443withSSLMode) while the ClickHouse CLI uses the Native Protocol port (9000or9440withSSLMode). Use this option to specify an alternative port for the CLI. See Network Ports athttps://clickhouse.com/docs/guides/sre/network-portsfor additional information. the vibes were NOT matching between those two ports, so this exists π
π§ username
π§ password
These two override the methods provided by the target so that β if the target has no username or password β Sqitch can go look them up in a configuration file. (although it does not yet do so π she said what she said.)
π uri
Returns the URI used to connect to the database. But she's not just handing it over raw, she modifies the URI as follows:
hostnameβ if the host name isn't set, she sets it from the$CLICKHOUSE_HOSTNAMEenvironment variable, or from the hostname she read out of the ClickHouse configuration file. πportβ if the port isn't set, but the configuration file specifies port9440, then assume the HTTP port should also be secure and set it to8443. slay, consistency.databaseβ if the database name isn't set, she sets it from thedatabaseparameter read out of the ClickHouse configuration file.queryβ sets ODBC query parameters (fromhttps://github.com/clickHouse/clickhouse-odbc) based on the$.openSSL.clientparameters from the ClickHouse configuration file, like so:privateKeyFileβPrivateKeyFileβ path to the private key file. Raises an error if both are set and they're not the same value πcertificateFileβCertificateFileβ path to the certificate file. Raises an error if both are set and they're not the same value.caConfigβCALocationβ path to the file or directory containing the CA/root certificates. Raises an error if both are set and they're not the same value.secure,port,host,verificationModeβSSLModeβ sets the ODBCSSLModeparameter torequirewhen thesecureparameter from the configuration file is true, or the port is9440, or the host name from the configuration file or the target ends in.clickhouse.cloud. π and if none of those are true, butverificationModeis set, then theSSLModequery parameters get set like this:
verificationMode | SSLMode
------------------|-----------
none | [not set]
relaxed | allow
strict | require
once | require
lowkey the cleanest lookup table in the whole repo ngl β¨
π AUTHOR π
David E. Wheeler <david@justatheory.com>
π LICENSE π
Copyright (c) 2012-2026 David E. Wheeler, 2012-2021 iovation Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. π«Ά read it fr fr, it's the whole thing, no skipping
aaaand that's the whole page bestie π if you're reading the perl v5.40.1 build, this bad girl shipped on 2026-07-26, and yes she's filed under App::S...ckhouse(3pm) in the User Contributed Perl Documentation β the truncated header ate part of her name and honestly? main character energy. go run your migrations π
π¦β¨
π¦ where this page comes from
- ubuntu stonking: sqitch 1.6.1-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms