sqitch-verify(3pm)
sqitch-verify π
ok bestie, gather round, because this is sqitch-verify, a page from the sqitch user-contributed Perl docs, and it's literally just here to make sure your database isn't lying to you. π«Ά
β¨ NAME β¨
sqitch-verify β verify that the changes you deployed to your database are actually, y'know, valid. π
πΈ SYNOPSIS πΈ
sqitch verify [options] [<database>]
sqitch verify [options] --from-change <change>
sqitch verify [options] --to-change <change>
sqitch verify [options] --from-change <change> --to-change <change>
π¦ DESCRIPTION π¦
So the whole vibe of verify is: check that a database is valid relative to the plan and the verification scripts for every change that got deployed. No cap. π₯
More specifically β and bestie, listen, this is the part that matters β verify iterates over all deployed and planned changes (or just the subset you point at with --from-change and/or --to-change) and checks that each one:
- Is deployed. β
- Is present in the plan. β
- Was deployed in the proper order. β
- Passes its verify test, if one exists and the change has not been reworked. β
The <database> parameter tells it which database to connect to, and you can also hand it over via the --target option instead. It can be a target name, a URI, an engine name, or a plan file path. Like, whatever, it's flexible. πββοΈ
Verify tests are scripts that may be associated with each change. Quick facts:
- If a change has no verify script, it emits a warning β but that is not considered a failure. Chill.
- If a change has been reworked, only the most recent reworking will have its verify script executed. Periodt.
Also, verify scripts should make no assumptions about the contents of the database, the way unit tests might. That's not their job!! Their job is to make sure the state of a database is correct after a deploy script has completed. They get run through the database engine command-line client, exactly like deploy and revert scripts. And if they fail? They should make the client exit with a non-zero exit code. That's the whole signal. π¨
π OPTIONS π
-t,--targetβ The target database to connect to. This can be either a URI or the name of a target in the configuration. π―--from-change,--fromβ Specify the change to start the verification with. Defaults to the earliest deployed change. Wanna know all the cute little ways you can specify changes? Seesqitchchanges. π--to-change,--toβ Specify the change to complete the verification with. Defaults to the last deployed change. Same deal β the various ways to specify changes live insqitchchanges. π-s,--setβ Set a variable name and value for the database engine client to use, if it supports variables. The format must bename=value, e.g.,--set defuser='Homer Simpson'. This overrides any values loaded fromconfiguration Variables. π--registryβ The name of the Sqitch registry schema or database where sqitch stores its own data.
sqitch verify --registry registry
--db-client,--clientβ Path to the command-line client for the database engine. Defaults to a client in the current path named appropriately for the database engine.
sqitch verify --client /usr/local/pgsql/bin/psql
-d,--db-nameβ Name of the database. In general, targets and URIs are preferred, but this option can be used to override the database name in a target.
sqitch verify --db-name widgets
sqitch verify -d bricolage
-u,--db-user,--db-usernameβ User name to use when connecting to the database. Does not apply to all engines. In general, targets and URIs are preferred, but this option can be used to override the user name in a target.
sqitch verify --db-username root
sqitch verify --db-user postgres
sqitch verify -u Mom
-h,--db-hostβ Host name to use when connecting to the database. Does not apply to all engines. In general, targets and URIs are preferred, but this option can be used to override the host name in a target.
sqitch verify --db-host db.example.com
sqitch verify -h appdb.example.net
-p,--db-portβ Port number to connect to. Does not apply to all engines. In general, targets and URIs are preferred, but this option can be used to override the port in a target.
sqitch verify --db-port 7654
sqitch verify -p 5431
--plan-file,-fβ Path to the deployment plan file. Overrides target, engine, and core configuration values. Defaults to$top_dir/sqitch.plan.
sqitch verify --plan-file my.plan
π§ CONFIGURATION VARIABLES π§
π [deploy.variables] and [verify.variables] π
A section defining database client variables. The deploy.variables configuration is read from the deploy command configuration, on the assumption that the values will generally be the same on verify. If they're not, use verify.variables to override deploy.variables. π
These variables are useful if your database engine supports variables in scripts, such as:
- PostgreSQL's
psqlvariables:https://www.postgresql.org/docs/current/static/app-psql.html#APP-PSQL-INTERPOLATION - Vertica's
vsqlvariables:https://docs.vertica.com/24.2.x/en/connecting-to/using-vsql/variables/ - MySQL's user variables:
https://dev.mysql.com/doc/refman/5.6/en/user-variables.html - SQL*Plus's
DEFINEvariables:https://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12017.htm - Snowflake's SnowSQL variables:
https://docs.snowflake.com/en/user-guide/snowsql-use.html#using-variables - ClickHouse's queries with parameters:
https://clickhouse.com/docs/interfaces/cli#cli-queries-with-parameters
May be overridden by --set or target and engine configuration. Variables are merged in the following priority order (highest first, bestie, don't get it twisted π):
--settarget.$target.variablesengine.$engine.variablesverify.variablesdeploy.variablescore.variables
β SQITCH β
Part of the sqitch suite. Obviously. Iconic behavior only. π
okay so that's the whole page, no notes. go verify ur stuff bestie, ur database will thank u π«Άβ¨
Sign-off time, my love: this one comes from perl v5.40.1, dated 2026-07-26, and it's the sqitch-verify(3pm) page. Mwah. πππΈ
π¦ 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