v0.47.4
Patch release with changes to flags. See the earlier v0.47.0
release for recent headline features.
Added
-
By default,
sq
prints source locations with the password redacted. This is a sensible default, but there are legitimate reasons to access the unredacted connection string. Thus a new global flag--no-redact
(and a correspondingredact
config option).# Default behavior: password is redacted $ sq src -v @sakila/pg12 postgres postgres://sakila:xxxxx@192.168.50.132/sakila # Unredacted $ sq src -v --no-redact @sakila/pg12 postgres postgres://sakila:p_ssW0rd@192.168.50.132/sakila
-
Previously, if an error occurred when
verbose
was true, anderror.format
wastext
,sq
would print a stack trace tostderr
. This was poor default behavior, flooding the user terminal, so the default is now no stack trace. To restore the previous behavior, use the new-E
(--error.stack
) flag, or set theerror.stack
config option.
Changed
-
The
--src.schema
flag (as used insq inspect
,sq sql
, and the rootsq
cmd) now accepts--src.schema=CATALOG.
. Note the.
suffix onCATALOG.
. This is in addition to the existing allowed formsSCHEMA
andCATALOG.SCHEMA
. This newCATALOG.
form is effectively equivalent toCATALOG.CURRENT_SCHEMA
.# Inspect using the default schema in the "sales" catalog $ sq inspect --src.schema=sales.
-
The
--src.schema
flag is now validated. Previously, if you provided a non-existing catalog or schema value,sq
would silently ignore it and use the defaults. This could mislead the user into thinking that they were getting valid results from the non-existent catalog or schema. Now an error is returned.