Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,14 @@ jobs:

publish-npm:
if: startsWith(github.ref, 'refs/tags/')
needs: [build-linux-x64, build-linux-musl-x64, build-mac, build-windows]
needs:
[
build-linux-x64,
build-linux-musl-x64,
build-linux-arm64,
build-mac,
build-windows,
]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -300,7 +307,8 @@ jobs:
cache-to: type=gha,mode=max

deploy-playground:
if: startsWith(github.ref, 'refs/tags/')
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true' || startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -388,9 +396,6 @@ jobs:
- name: Cache
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # pin@v2

- name: Install ripgrep
run: cargo install ripgrep

- name: Test
run: ./s/test

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# IntelliJ IDE users
.idea
dist
dist/

.DS_Store
temp.sql
16 changes: 16 additions & 0 deletions PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,22 @@ create function pg_catalog.jsonb_extract_path(
as $$jsonb_extract_path$$
```

#### Json path expressions

```sql
select * from json_table(
jsonb '[1,2,3]',
'$[*] ? (@ < $x)'
-- ^^ go to def jumps to the def in the passing clause
passing 10 as x, 3 as y
-- ^ find references
-- ^ find references
columns (a text format json path '$ ? (@ < $y)')
-- references json_table arg ^
-- also references passing clause ^^
);
```

### Autocomplete

- [datagrip postfix completion](https://blog.jetbrains.com/datagrip/2019/03/11/top-9-sql-features-of-datagrip-you-have-to-know/#postfix_completion)
Expand Down
30 changes: 11 additions & 19 deletions crates/squawk_parser/src/generated/syntax_kind.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading