Simon Binder
c6f0fa27aa
sqlparser: Extend support for `IN` expressions
...
This adds support for table names and table-valued function
invocations as right-hand targets in `IN` expressions.
The lint for row values around `IN` expressions is updated to
only report warnings if there's an actual mismatch in the amount
of columns.
Closes https://github.com/simolus3/drift/issues/2948
2024-04-12 17:36:31 +02:00
Simon Binder
43b7f72bad
sqlparser: Fix parsing binary literals
2024-04-06 14:48:55 +02:00
Simon Binder
29303100b8
Support custom names for drift views
2024-03-08 18:14:48 +01:00
Simon Binder
f9fa123e4a
Forbid unqualified access to aliases in triggers
2024-01-01 19:18:04 +01:00
Simon Binder
08ceb939bc
Include `NULL` constraints in node->sql
2023-12-12 21:46:58 +01:00
tibotix
26fd4bf11e
Add node_to_text tests for MultiColumnSetComponent
2023-11-17 18:00:58 +01:00
Simon Binder
559cf986a1
sqlparser: Support `ORDER BY` in functions
2023-10-24 22:32:39 +02:00
Simon Binder
625eacf5f1
Add parseMultiple API to sqlparser ( #2519 )
2023-07-16 00:29:29 +02:00
Simon Binder
6bb2c3d2c5
Support named constructors for rows in drift file
2023-04-23 16:21:31 +02:00
Simon Binder
7175b83d2b
Add missing space when formatting window functions
2023-01-20 18:14:37 +01:00
Simon Binder
bc325dd31c
Support cast to drift-specific types
2023-01-06 15:10:03 +01:00
Simon Binder
e562cb9d21
Support type converters in queries
2023-01-05 23:04:36 +01:00
Simon Binder
f13fb4e218
Analyze existing row types for queries
2022-12-27 17:04:38 +01:00
Simon Binder
292dd9946d
Port more tests over to new analyzer
2022-10-29 17:30:18 +02:00
Simon Binder
81679b8ff1
Fix formatting some Dart placeholders
2022-10-23 18:13:40 +02:00
Simon Binder
aa5cb69799
Support indices in new analyzer
2022-09-10 23:22:39 +02:00
Simon Binder
645f954a9b
More tests for new join operators
2022-05-26 23:35:05 +02:00
Simon Binder
d330c9b001
sqlparser: Support new syntax for `IS` expressions
2022-05-26 22:24:41 +02:00
Simon Binder
e503bc68a5
New implementation for reference scopes
2022-05-25 23:32:15 +02:00
Daniel Brauner
3c75fbee9d
New test cases
2022-04-06 22:07:28 +02:00
Simon Binder
c9e22bf8d2
Parse non-window aggregate expressions
2022-03-08 10:58:40 +01:00
Simon Binder
93d328f056
Rename `moor` to `drift` in `sqlparser`
2022-02-26 21:38:28 +01:00
Simon Binder
6bb870458f
Analysis for sqlite 3.38
2022-02-23 22:06:42 +01:00
Simon Binder
518fdce2e9
Add parentheses around conflict target ( #1704 )
2022-02-21 18:43:48 +01:00
Simon Binder
1d1d0c783a
Fix CI test failures
2022-01-29 21:50:33 +01:00
Peter Leibiger
ab20d69846
Fix broken iterable comparison in sqlparser
...
* this results in false positive migration tests, not sure what else could be effected
2021-12-02 13:10:53 +01:00
Simon Binder
07cba75ea8
Parse transaction blocks
2021-09-09 18:05:03 +02:00
Simon Binder
3be320d0c5
Parse BEGIN and COMMIT statements
2021-09-08 22:53:57 +02:00
Simon Binder
074b663b79
Parse "STRICT" table definitions
2021-08-28 16:32:00 +02:00
Simon Binder
aa75cbaa19
Prepare parser for schema support
2021-07-22 21:32:53 +02:00
Simon Binder
17f43bc9fc
Parse RAISE expressions ( #1154 )
2021-04-21 20:29:50 +02:00
Simon Binder
602212f99d
Support REQUIRED annotation for query vars
2021-04-13 22:14:12 +02:00
Simon Binder
eb39738460
Initial support for RETURNING in the generator
2021-03-30 23:24:28 +02:00
Simon Binder
c9f8af346d
Parse more than ON CONFLICT clause
2021-03-13 15:21:27 +01:00
Simon Binder
b110773053
Support MATERIALIZED / NOT MATERIALIZED
2021-03-13 14:00:06 +01:00
Simon Binder
3000cb2e44
Parse FROM clauses for update statements
2021-03-13 12:02:35 +01:00
Simon Binder
4ba12c4868
Strip whitespace and comments from generated queries
2021-01-23 21:03:03 +01:00
Simon Binder
5ff74c7bcb
Improve table analysis, parse key ordering ( #1007 )
2021-01-18 14:44:05 +01:00
Simon Binder
9025280a89
Migrate sqlparser to null safety
2020-12-11 10:53:17 +01:00
Simon Binder
6e157b02c9
Add formatting test for default placeholder values
2020-08-30 14:08:30 +02:00
Simon Binder
57efa4bb89
Add more tests for node to text
2020-08-22 12:36:36 +02:00
Simon Binder
6fba2555c1
Api to turn AST nodes into a textual represenation
2020-08-21 16:44:17 +02:00
Simon Binder
c342b29b33
Fix sqlparser crashes related to unknown tables
2020-06-19 13:43:16 +02:00
Simon Binder
8b6abd7140
Move referenced table finder to sqlparser package ( #537 )
2020-05-04 22:00:41 +02:00