sqitch-engine(3pm)
β¨ NAME β¨
sqitch-engine β bestie, this is the one that lets you manage your database engine configuration π
it ships as part of the User Contributed Perl Documentation and lives in your terminal as sqitch-engine(3pm), iykyk π
π SYNOPSIS π
okay so here's literally every shape this command comes in:
sqitch engine
sqitch engine [-v | --verbose]
sqitch engine add <name> [engine-options]
sqitch engine alter <name> [engine-options]
sqitch engine remove <name>
sqitch engine show <name>
no arguments = just vibes and a list. with an action = we're doing something. π¦
π§ DESCRIPTION π§
So the whole point of this thing is managing the database engines you deploy to. Here's the full roster of supported engines, and yes you can pick your fave:
firebirdmysqloraclepgsqliteverticaexasolsnowflakecockroachclickhouse
Every single engine can carry a bunch of properties, and they are:
targetβ the name or URI of the database target π― heads up bestie: if the value is a URI, the engine inside that URI has to match the engine you're adding or altering. no mismatches allowed, it's giving strict. the default isdb:$engine. if you want the whole tea on target configuration, go seesqitch-target. πregistryβ the name of the registry schema or database ποΈ defaults tosqitch.clientβ the command-line client to use π₯οΈ if you don't specify one, each engine goes looking through the OS Path for an appropriate client. it'll find its own friend, don't worry.top_dirβ the path to the top directory for the engine π this is generally where the plan file lives, plus the subdirectories fordeploy,revert, andverifyscripts, and also the reworked instances of those scripts. default is., aka the current directory. shmoopy little home base πΈplan_fileβ the plan file to use for this engine π default is$top_dir/sqitch.plan.deploy_dirβ the path to the deploy directory for the engine π this contains all the deploy scripts referenced by changes in theplan_file. default is$top_dir/deploy.revert_dirβ the path to the revert directory for the engine βͺ this contains all the revert scripts referenced by changes in theplan_file. default is$top_dir/revert.verify_dirβ the path to the verify directory for the engine β this contains all the verify scripts referenced by changes in theplan_file. default is$top_dir/verify.reworked_dirβ the path to the reworked directory for the engine π this contains all subdirectories for all reworked scripts referenced by changes in theplan_file. default is$top_dir.reworked_deploy_dirβ the path to the reworked deploy directory for the engine π this contains all of the reworked deploy scripts referenced by changes in theplan_file. default is$reworked_dir/deploy.reworked_revert_dirβ the path to the reworked revert directory for the engine π this contains all of the reworked revert scripts referenced by changes in theplan_file. default is$reworked_dir/revert.reworked_verify_dirβ the path to the reworked verify directory for the engine π« this contains all of the reworked verify scripts referenced by changes in theplan_file. default is$reworked_dir/verify.extensionβ the file name extension to append to change names to create script file names π default issql.
fr fr, every one of these overrides the corresponding core configuration β thinkcore.target,core.plan_file,core.registry, andcore.client. so like, the engine-level setting is the main character and the core one is, respectfully, the understudy. π
β¨ OPTIONS β¨
π List Option
-v,--verboseβ be more verbose when listing engines π
sqitch engine --verbose
π Add and Alter Options
--top-dirβ specifies the top directory to use for the engine π typically contains the deployment plan file and the change script directories.
sqitch engine add pg --top-dir sql
--plan-file,-fβ specifies the path to the deployment plan file π defaults to$top_dir/sqitch.plan.
sqitch engine add pg --plan-file my.plan
--extensionβ specifies the file name extension to use for change script file names π defaults tosql.
sqitch engine add pg --extension ddl
--dirβ sets the path to a script directory π may be specified multiple times. the supported keys are:deployrevertverifyreworkedreworked_deployreworked_revertreworked_verify
sqitch engine add pg --dir deploy=dep --dir revert=rev --dir verify=tst
--targetβ specifies the name or URI of the target database for the engine π― (the URI spec on the internet is athttps://github.com/libwww-perl/uri-db/if you wanna peek).
sqitch engine add pg --target db:pg:widgets
--registryβ specifies the name of the database object where Sqitch's state and history data is stored ποΈ typically a schema name (as in PostgreSQL and Oracle) or a database name (as in SQLite and MySQL). defaults tosqitch.
sqitch engine add pg --registry meta
--clientβ specifies the path to the command-line client for the engine π₯οΈ defaults to a client in the current path named appropriately for the engine.
sqitch engine add pg --client /usr/local/pgsql/bin/psql
-s,--setβ set a variable name and value for use by the database engine client, if it supports variables π§‘ the format must bename=value, like--set defuser='Homer Simpson'.
π¦ ACTIONS π¦
With no arguments, it shows you a list of the existing engines π and honestly there are several actions available to perform operations on the engines:
π add
Add an engine named <name> for the database at <uri>. The --set option specifies engine-specific properties. A new plan file and new script script directories will be created if they don't already exist. so it just builds the little house for you if there isn't one yet, cute π
π alter
Alter an engine named <name>. The --set option specifies engine-specific properties to set. New script script directories will be created if they don't already exist. π οΈ
π remove, rm
Remove the engine named <name> from the configuration. The plan file and script directories will not be affected π so breathe, bestie, your files are safe.
π show
Gives some information about the engine <name>, including the associated properties π specify multiple engine names to see information for each. multi-engine info dump, slay β¨
πΈ CONFIGURATION VARIABLES πΈ
The engines are stored in the configuration file ποΈ but the command itself currently relies on no configuration variables. so like, nothing to set here, go off π
π SQITCH π
Part of the sqitch suite. π«Ά
okay that's the whole page, and before you go β this was built from perl v5.40.1 and it's dated 2026-07-26, so if you're reading this from the future, hi, hope the engines are all cooperating π periodt.
π¦ 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