Visual Sqitch
See where your database sits in its Sqitch plan, and deploy, revert and verify with a preview
of exactly what will run.
Visual Sqitch is a preview: it works on real projects, and its features may still change.

Features
Overview and Plan Graph
Every change in plan order, with lanes for your local plan, the upstream plan and your database. Pending changes,
drift, failed deploys and changes deployed from other branches each have their own colour and shape.

Revert and deploy across branches
Check out a branch and the database still has the last branch's changes, which sqitch can't revert from here. Revert
and deploy undoes them with the scripts from the branch they came from, then deploys the branch you're on.
Deploy, revert and verify with a preview
Every deploy, revert and rebase shows the changes it will touch and the literal sqitch command before anything runs.
Deploy to or revert to any change from the plan, the graph, a hover or CodeLens, or drag the database's head marker.

Recover from a failed deploy
A failed deploy is shown where it happened. Fix failed change opens the deploy script with the error, and offers to
retry or to clean up what the change left behind.

Editing sqitch.plan
Highlighting, a status mark in the gutter for each change, hovers with the database's status and actions, CodeLens on
the deployed head, and diagnostics for the mistakes sqitch would reject, as you type.

Set up connection
When a database can't be reached, Set up connection tries each way of connecting (the URI, the password file, a
service file, the environment) and shows what each found. A password you enter is kept in VS Code's secret storage.

Several projects at once
Every Sqitch project in the workspace shows in the Overview and the Plan view, each with its own database.

Upstream and History
The Upstream view compares your plan with an upstream git ref (origin/develop, or the remote's default branch when
there is no develop): incoming changes, changes only you have, and conflicts. Sync fetches, fast-forwards and offers to
deploy what arrived. The History view lists the database's deploy, revert and fail events.

Light themes, high contrast themes and a colour-blind status preset are supported.

Requirements
- VS Code 1.100 or later, in a trusted workspace
- A Postgres database
- Sqitch, either on your PATH or through Docker, which runs the
sqitch/sqitch image when sqitch isn't installed. A
sqitch installed on the machine runs scripts through psql, so psql needs to be on the PATH too
- git, for the upstream comparison, branch switching and Revert and deploy
Install
Install from the Visual Studio Marketplace,
or from Open VSX in VSCodium and other editors that use
it. In the editor, search the Extensions view for Visual Sqitch, or run
code --install-extension MancSoftware.visual-sqitch.
Quick start
- Open a folder that contains a
sqitch.plan and sqitch.conf.
- The first time, Set up Visual Sqitch opens: it checks how sqitch runs, finds your projects, connects to each
database and picks the branch your team merges into, and fixes whatever isn't ready. Reopen it any time with
Sqitch: Set up Visual Sqitch.
- Open the Sqitch view in the activity bar. The Overview shows where the database is in the plan.
- Deploy, or open the Plan Graph to look around first.
Settings
| Setting |
Default |
Description |
visualSqitch.executable |
"" |
sqitch executable path, or "docker" to force Docker; empty auto-detects (PATH, then Docker) |
visualSqitch.dockerImage |
"sqitch/sqitch:latest" |
Docker image used when sqitch runs through Docker |
visualSqitch.upstreamRef |
"" |
git ref the local plan is compared against; empty uses origin/develop where it exists, else the remote's default branch; Sqitch: Choose upstream branch overrides it per repository |
visualSqitch.exclude |
[] |
globs of folders whose sqitch projects are ignored, e.g. **/fixtures/** |
visualSqitch.autoFetch |
0 |
minutes between background git fetches, 0 for off |
visualSqitch.codeLens.scope |
"heads" |
where sqitch.plan shows CodeLens actions (heads, all, off) |
visualSqitch.statusColors |
"default" |
status colour preset for the views, graph and gutter (default, colorblind, vivid) |
visualSqitch.timeoutMinutes |
0 |
minutes before a running sqitch command is stopped, 0 for no limit |
visualSqitch.deploy.verify |
true |
run each change's verify script after deploying it (--verify); a project's sqitch.conf deploy.verify overrides this |
visualSqitch.deploy.mode |
"change" |
how far a failed deploy reverts (--mode: change, tag, all); a project's sqitch.conf deploy.mode overrides this |
Privacy
Visual Sqitch sends no telemetry and contacts no service of its own. It connects only to the databases in your
sqitch.conf (directly through the bundled pg driver, or through psql), runs git against your repository (fetch only
when you sync, or on a timer if you turn on visualSqitch.autoFetch, which is off by default), and runs sqitch,
locally or through Docker, which pulls the sqitch/sqitch image the first time it is used. Its webviews have a
content security policy that blocks every network request.
Support
Questions and bug reports go to the Q&A tab of the extension's Marketplace page.
Licence
Visual Sqitch is proprietary software, free to use; the terms are in the LICENSE file that comes with the extension.
Third-party components and their licences are listed in its ThirdPartyNotices.txt.