Fix Suggestions in CLI Output
Added
-
cli: rendering of diffs for suggestions in output. (#662)
We now include a diff below the rule error.
warning[require-concurrent-index-creation]: During normal index creation, table updates are blocked, but reads are still allowed. ββΈ example.sql:10:1 β 10 β CREATE INDEX "field_name_idx" ON "table_name" ("field_name"); β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β β help: Use `concurrently` to avoid blocking writes. ββ΄ 10 β CREATE INDEX concurrently "field_name_idx" ON "table_name" ("field_name"); β°β΄ ++++++++++++
Fixed
-
parser: parsing some
setrelated commands. (#657)The following now parse:
set schema 'foo'; set foo.bar from current; set bar from current;