sqitch-engine(3pm) | User Contributed Perl Documentation | sqitch-engine(3pm) |
sqitch-engine - Manage database engine configuration
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>
Manage the database engines you deploy to. The list of supported engines includes:
Each engine may have a number of properties:
Each of these overrides the corresponding core configuration -- for example, the "core.target", "core.plan_file", "core.registry", and "core.client" config options.
sqitch engine --verbose
Be more verbose when listing engines.
sqitch engine add pg --top-dir sql
Specifies the top directory to use for the engine. Typically contains the deployment plan file and the change script directories.
sqitch engine add pg --plan-file my.plan
Specifies the path to the deployment plan file. Defaults to "$top_dir/sqitch.plan".
sqitch engine add pg --extension ddl
Specifies the file name extension to use for change script file names. Defaults to "sql".
sqitch engine add pg --dir deploy=dep --dir revert=rev --dir verify=tst
Sets the path to a script directory. May be specified multiple times. Supported keys are:
sqitch engine add pg --target db:pg:widgets
Specifies the name or URI <https://github.com/libwww-perl/uri-db/> of the target database for the engine.
sqitch engine add pg --registry meta
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 to "sqitch".
sqitch engine add pg --client /usr/local/pgsql/bin/psql
Specifies the path to the command-line client for the engine. Defaults to a client in the current path named appropriately for the engine.
With no arguments, shows a list of existing engines. Several actions are available to perform operations on the engines.
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.
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 the engine named "<name>" from the configuration. The plan file and script directories will not be affected.
Gives some information about the engine "<name>", including the associated properties. Specify multiple engine names to see information for each.
The engines are stored in the configuration file, but the command itself currently relies on no configuration variables.
Part of the sqitch suite.
2022-10-15 | perl v5.34.0 |