Skip to content

Commit 772224f

Browse files
committed
Support DuckDB ->> JSON operator
Fixes #871
1 parent afc7461 commit 772224f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/languages/duckdb/duckdb.formatter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ export const duckdb: DialectOptions = {
182182
'::',
183183
// Comparison:
184184
'==',
185-
// Lambda:
185+
// Lambda & JSON:
186186
'->',
187+
// JSON:
188+
'->>',
187189
// key-value separator:
188190
':',
189191
// Named function params:

test/duckdb.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ describe('DuckDBFormatter', () => {
5050
'==',
5151
// Lambda:
5252
'->',
53+
// JSON:
54+
'->>',
5355
// Named function params:
5456
':=',
5557
'=>',

0 commit comments

Comments
 (0)