sqitch-log(3pm)
π NAME π
sqitch-log β the β¨user-contributed Perl documentationβ¨ joint that shows Sqitch change deployment logs, bestie. It's literally the receipts for everything your database has ever been through ππ
β¨ SYNOPSIS β¨
sqitch log [options] [<database>]
π¦ DESCRIPTION π¦
okay so here's the tea: Sqitch keeps a record, and I mean a full record, of the deployment, failed deployment, or reversion of all changes in a target database. And the plot twist? Even after a change has been reverted, a log of its earlier deployment is retained. Nothing gets deleted, it's giving archive-core ποΈπ
The log command is your key to accessing all of it. You can simply list all the events, search for events matching regular expressions, and limit the results. That's it, that's the whole vibe π₯
The <database> parameter specifies the database to which to connect, and it may also be specified as the --target option. It can be a target name, a URI, an engine name, or a plan file path. Pick your fave π«Ά
π OPTIONS π
-t,--targetβ the target database to connect to. This one can be either a URI or the name of a target in the configuration. No cap π―--eventβ filter by event type. You can drop this more than once if you're feeling extra. Allowed values are:deployrevertfail
--change-pattern,--changeβ a regular expression to match against change names π--project-pattern,--projectβ a regular expression to match against project names π--committer-pattern,--committerβ a regular expression to match against committer names π€--format,-fβ the format to use. May be one of:
full long medium short oneline raw format:<string>
See "Formats" for details on each format. Defaults to medium β¨
--date-format,--dateβ format to use for timestamps. Defaults toiso. Allowed values:isoiso8601β shows timestamps in ISO-8601 format.rfcrfc2822β show timestamps in RFC-2822 format.fulllongmediumshortβ show timestamps in the specified format length, using the system locale'sLC_TIMEcategory.rawβ show timestamps in raw format, which is strict ISO-8601 in the UTC time zone.strftime:$stringβ show timestamps using an arbitrarystrftimepattern. See "strftime Paterns" in DateTime for comprehensive documentation of supported patterns.cldr:$patternβ show timestamps using an arbitrarycldrpattern. See "CLDR Paterns" in DateTime for comprehensive documentation of supported patterns.
--max-count,-nβ limit the number of events to output. Cap it, queen π--skipβ skip the specified number events before starting to show the event output. We're skipping ahead, no skips skipped π¦--reverseβ output the events in reverse order.--no-reverseβ do not output the events in reverse order. The anti-reverse option, as promised π--headersβ output headers describing target. Enabled by default.--no-headersβ do not output headers describing target. Bye headers π--colorβ show colored output. The value may be one of:
auto (the default) always never
--no-colorβ turn off colored output. It is the same as--color never. Monochrome moment π--abbrevβ instead of showing the full 40-byte hexadecimal change ID, show only a partial prefix the specified number of characters long. Short and cute, like a nickname π--onelineβ shorthand for--format oneline --abbrev 6.--registryβ the name of the Sqitch registry schema or database in which sqitch stores its own data.
sqitch log --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 log --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 log --db-name widgets
sqitch log -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 log --db-username root
sqitch log --db-user postgres
sqitch log -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 log --db-host db.example.com
sqitch log -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 log --db-port 7654
sqitch log -p 5431
π CONFIGURATION VARIABLES π
log.formatβ output format to use. Supports the same values as--format. πlog.date_formatβ format to use for timestamps. Supports the same values as the--date-formatoption. π°οΈlog.colorβ output colors. Supports the same values as the--coloroption. πΈ
β¨ FORMATS β¨
okay so bestie, there are several built-in formats, and you can also emit data in a custom format format:<string>. here's the whole menu π
oneline
<change id> <event type> <project name>:<change name> <title line>
this one is designed to be as compact as possible. periodt. π
short
<event type> <change id>
Name: <change name>
Committer: <committer>
<title line>
medium
<event type> <change id>
Name: <change name>
Committer: <committer>
Date: <commit date>
<full change note>
long
<event type> <change id> <tags>
Name: <change name>
Project: <change name>
Planner: <planner>
Committer: <committer>
<full change note>
full
<event type> <change id> <tags>
Event: <event type>
Name: <change name>
Project: <change name>
Requires: <required changes>
Conflicts: <conflicting changes>
Planner: <planner>
Planned: <plan date>
Committer: <committer>
Committed: <commit date>
<full change note>
raw
<event type> <change id> <tags>
name <change name>
project <project name>
requires <required changes>
conflicts <conflicting changes>
planner <planner>
planned <raw plan date>
committer <committer>
committed <raw commit date>
<full change note>
bestie, this one is for the parsers: the change ID is displayed in full, without regard to the value of --abbrev; dates are formatted raw (strict ISO-8601 format in the UTC time zone); and all labels are lowercased and unlocalized. no cap β¨
format:<string>
the format:<string> format lets you specify which information you want to show. it works a little bit like printf format and a little like Git log format. for example, this format:
format:The committer of %h was %{name}c%vThe title was >>%s<<%v
would show something like this:
The committer of f26a3s was Tom Lane
The title was >>We really need to get this right.<<
π the placeholders are π
%Hβ event change ID%hβ event change ID (respects--abbrev)%nβ event change name%oβ event change project name%($len)hβ abbreviated change of length$len%eβ event type (deploy,revert,fail)%lβ localized lowercase event type label%Lβ localized title case event type label%cβ event committer name and email address%{name}cβ event committer name%{email}cβ event committer email address%{date}cβ commit date (respects--date-format)%{date:rfc}cβ commit date, RFC2822 format%{date:iso}cβ commit date, ISO-8601 format%{date:full}cβ commit date, full format%{date:long}cβ commit date, long format%{date:medium}cβ commit date, medium format%{date:short}cβ commit date, short format%{date:cldr:$pattern}cβ commit date, formatted with custom CLDR pattern%{date:strftime:$pattern}cβ commit date, formatted with custom strftime pattern%cβ change planner name and email address%{name}pβ change planner name%{email}pβ change planner email address%{date}pβ plan date (respects--date-format)%{date:rfc}pβ plan date, RFC2822 format%{date:iso}pβ plan date, ISO-8601 format%{date:full}pβ plan date, full format%{date:long}pβ plan date, long format%{date:medium}pβ plan date, medium format%{date:short}pβ plan date, short format%{date:cldr:$pattern}pβ plan date, formatted with custom CLDR pattern%{date:strftime:$pattern}pβ plan date, formatted with custom strftime pattern%tβ comma-delimited list of tags%{$sep}tβ list of tags delimited by$sep%Tβ parenthesized list of comma-delimited tags%{$sep}Tβ parenthesized list of tags delimited by$sep%sβ subject (a.k.a. title line)%rβ comma-delimited list of required changes%{$sep}rβ list of required changes delimited by$sep%Rβ localized label and list of comma-delimited required changes%{$sep}Rβ localized label and list of required changes delimited by$sep%xβ comma-delimited list of conflicting changes%{$sep}xβ list of conflicting changes delimited by$sep%Xβ localized label and list of comma-delimited conflicting changes%{$sep}Xβ localized label and list of conflicting changes delimited by$sep%bβ body%Bβ raw body (unwrapped subject and body)%{$prefix}Bβ raw body with$prefixprefixed to every line%{event}_β localized label for "event"%{change}_β localized label for "change"%{committer}_β localized label for "committer"%{planner}_β localized label for "planner"%{by}_β localized label for "by"%{date}_β localized label for "date"%{committed}_β localized label for "committed"%{planned}_β localized label for "planned"%{name}_β localized label for "name"%{project}_β localized label for "project"%{email}_β localized label for "email"%{requires}_β localized label for "requires"%{conflicts}_β localized label for "conflicts"%vβ vertical space (newline)%{$color}Cβ an ANSI color: black, red, green, yellow, reset, etc.%{:event}Cβ an ANSI color based on event type (green deploy, blue revert, red fail)%{$attribute}aβ the raw attribute name and value, if it exists and has a value
π SQITCH π
part of the sqitch suite. π«Ά
source bestie: sqitch-log(3pm), from perl v5.40.1, dated 2026-07-26. go log something iconic, 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