App::S...wflake(3pm)
β¨ Name β¨
App::Sqitch::Engine::snowflake β the Sqitch Snowflake Engine π
(also known as App::S...wflake(3pm) if your terminal is being dramatic about long names π«Ά)
πΈ Synopsis πΈ
my $snowflake = App::Sqitch::Engine->load( engine => 'snowflake' );
π¦ Description π¦
App::Sqitch::Engine::snowflake is the whole vibe β it gives Sqitch its Snowflake storage engine. That's it, that's the job, and it ate. π
π Interface π
π Attributes π
"uri"β returns the Snowflake database URI name. It starts with the URI for the target and builds out whatever parts are missing. Sqitch goes looking for the host name in this order:- In the host name of the target URI. If that host name does not end in
snowflakecomputing.com, Sqitch appends it. This is the glow-up that lets Snowflake URLs just reference the Snowflake account name, or the account name plus region, in URLs. β¨ - In the
$SNOWSQL_HOSTenvironment variable (Deprecated by Snowflake π). - By concatenating the account name and region, if available, from:
- the
$SNOWSQL_ACCOUNTenvironment variable or theconnections.accountnamesetting in the SnowSQL configuration file (<https://docs.snowflake.com/en/user-guide/snowsql-start.html#configuring-default-connection-settings>), - the
$SNOWSQL_REGIONorconnections.regionsetting in the SnowSQL configuration file (<https://docs.snowflake.com/en/user-guide/snowsql-start.html#configuring-default-connection-settings>), - and
snowflakecomputing.com.
- the
- In the host name of the target URI. If that host name does not end in
Heads up bestie: Snowflake has deprecated$SNOWSQL_REGIONandconnections.region, and they will be removed in a future version. The move now is to append the region name and cloud platform name to the account name instead. π
The database name is determined by these methods:
- The path part of the database URI.
- The
$SNOWSQL_DATABASEenvironment variable. - The
connections.dbnamesetting in the SnowSQL configuration file (<https://docs.snowflake.com/en/user-guide/snowsql-start.html#configuring-default-connection-settings>). - If sqitch finds no value in the above places, it falls back on the system username.
The other attributes of the URI get set from the "account", "username" and "password" attributes documented below. π«Ά
"account"β returns the Snowflake account name, or throws an exception if none can be determined. π€ Sqitch looks for the account code in this order:- In the host name of the target URI.
- In the
$SNOWSQL_ACCOUNTenvironment variable. - In the
connections.accountnamesetting in the SnowSQL configuration file (<https://docs.snowflake.com/en/user-guide/snowsql-start.html#configuring-default-connection-settings>).
usernameβ returns the snowflake user name. Sqitch looks for the user name in this order:- In the
$SQITCH_USERNAMEenvironment variable. - In the target URI.
- In the
$SNOWSQL_USERenvironment variable. - In the
connections.usernamevariable from the SnowSQL config file (<https://docs.snowflake.com/en/user-guide/snowsql-config.html#snowsql-config-file>). - The system username.
- In the
passwordβ returns the snowflake password. Sqitch looks for the password in this order:- In the
$SQITCH_PASSWORDenvironment variable. - In the target URI.
- In the
$SNOWSQL_PWDenvironment variable. - In the
connections.passwordvariable from the SnowSQL config file (<https://docs.snowflake.com/en/user-guide/snowsql-config.html#snowsql-config-file>).
- In the
"warehouse"β returns the warehouse to use for all connections. This value will be available to all Snowflake change scripts as the&warehousevariable. π Sqitch looks for the warehouse in this order:- In the
warehousequery parameter of the target URI - In the
$SNOWSQL_WAREHOUSEenvironment variable. - In the
connections.warehousenamevariable from the SnowSQL config file (<https://docs.snowflake.com/en/user-guide/snowsql-config.html#snowsql-config-file>). - If none of the above are found, it falls back on the hard-coded value
sqitch.
- In the
"role"β returns the role to use for all connections. Sqitch looks for the role in this order:- In the
rolequery parameter of the target URI - In the
$SNOWSQL_ROLEenvironment variable. - In the
connections.rolenamevariable from the SnowSQL config file (<https://docs.snowflake.com/en/user-guide/snowsql-config.html#snowsql-config-file>). - If none of the above are found, no role will be set. π
- In the
π Instance Methods π
β "initialized"
$snowflake->initialize unless $snowflake->initialized;
Returns true if the database has been initialized for Sqitch, and false if it has not. Simple as. π
β "initialize"
$snowflake->initialize;
Initializes a database for Sqitch by installing the Sqitch registry schema. β¨
β "snowsql"
Returns a list containing the snowsql client and options to be passed to it. Used internally when executing scripts. π€«
π 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.
π«Ά bestie check-in: this whole page is fromperl v5.40.1, dated2026-07-26, and it's the Perl documentation forApp::S...wflake(3pm). Go forth and deploy, you icon. π πβ¨
π¦ 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