Skip to content

Fix Suggestions in CLI Output

Choose a tag to compare

@sbdchd sbdchd released this 24 Sep 03:33
· 628 commits to master since this release
7b0a32d

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 set related commands. (#657)

    The following now parse:

    set schema 'foo';
    set foo.bar from current;
    set bar from current;

Changed

  • internal: bump rust to 1.90.0 (#659)
  • syntax: fill out more of the ast (#658)