Commit Graph

12 Commits

Author SHA1 Message Date
tibotix ff11a2a757
Add trailing commas for readability 2023-11-17 18:04:21 +01:00
tibotix deaf58c5fb
Add/Update TestCases for all introduced changes 2023-11-17 01:49:37 +01:00
tibotix f128f05e1e
Add MultiColumnSetComponent to support column-name-list update syntax
This commit refactors the SetComponent into an abstract interface and introduces
two separate classes `SingleColumnSetComponent` and `MultiColumnSetComponent`, as
well as related methods such as `visitSingleColumnSetComponent` / `visitMultiColumnSetComponent`.
All Visitors were updated accordingly, and logic for parsing / type-resolving / linting were added
too. The only thing missing is type-resolving for the case where rowValue is of type SubQuery,
i.e.

`UPDATE demo SET (a,b)=(SELECT 2,3)`.
2023-11-17 01:42:39 +01:00
Simon Binder 6e173e8c08
Don't require tokens for some AST classes 2022-12-30 20:46:18 +01:00
Simon Binder 19bd92bfd9
Remove redundant imports 2021-12-09 14:10:51 +01:00
Simon Binder 40bc3a17bb
Organize imports 2021-09-10 11:43:21 +02:00
Simon Binder aa75cbaa19
Prepare parser for schema support 2021-07-22 21:32:53 +02:00
Simon Binder b9b7f407c9
Parse RETURNING clauses 2021-03-13 20:41:14 +01:00
Simon Binder 3000cb2e44
Parse FROM clauses for update statements 2021-03-13 12:02:35 +01:00
Simon Binder 3c74a20f56
Enable more recent lints and enforce them 2019-12-04 21:45:09 +01:00
Simon Binder 1766bb3f77
Fix tests that used "table" as a table name
(we now recognize that as a keyword)
2019-07-26 13:49:25 +02:00
Simon Binder baf3c9ce88
Parse update statements 2019-06-30 15:25:39 +02:00