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
tibotix
deaf58c5fb
Add/Update TestCases for all introduced changes
2023-11-17 01:49:37 +01:00
Simon Binder
559cf986a1
sqlparser: Support `ORDER BY` in functions
2023-10-24 22:32:39 +02:00
Simon Binder
d70de95382
Make `sum()` nullable
2023-10-22 12:33:03 +02:00
Simon Binder
fe242e5a17
Support `timediff` and `octet_length`
2023-08-17 17:30:45 +02:00
Simon Binder
07fe555753
Report syntax error for WITH in trigger
2023-06-01 00:08:41 +02:00
Simon Binder
11b563f9de
Add static analysis for the `IIF` function ( #2392 )
2023-04-18 12:42:51 +02:00
Simon Binder
c38e9cc6c0
Fix false-positive trigger syntax error ( #2360 )
2023-03-26 21:44:12 +02:00
Simon Binder
1c662ebb1a
Analysis support for sqlite 3.41.0
2023-02-22 23:05:17 +01:00
Simon Binder
bc325dd31c
Support cast to drift-specific types
2023-01-06 15:10:03 +01:00
Simon Binder
8f6878292a
Migrate to `package:lints`
2022-08-13 23:33:05 +02:00
Simon Binder
a6b7bf9aaa
Version check for new joins
2022-05-26 23:29:58 +02:00
Simon Binder
d330c9b001
sqlparser: Support new syntax for `IS` expressions
2022-05-26 22:24:41 +02:00
Simon Binder
98163103d5
Lint for distinct aggregate with more than one arg
2022-05-08 09:05:23 +02:00
Simon Binder
da212944ff
Replace old website and repository links
2022-03-13 15:52:15 +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
45af68851d
More lints for trigger bodies ( #1656 )
2022-01-26 22:03:40 +01:00
Simon Binder
130517473b
Accept any type name for strict drift tables
2022-01-25 13:21:40 +01:00
Simon Binder
aa38ab42f2
More lenient `strict` column type handling
2022-01-24 17:49:10 +01:00
Simon Binder
19bd92bfd9
Remove redundant imports
2021-12-09 14:10:51 +01:00
Simon Binder
6b5acdf3c6
Revise parser support for strict tables
2021-12-03 21:30:36 +01:00
Simon Binder
f2d0864890
Support generated columns in the parser
2021-11-07 22:10:08 +01:00
Simon Binder
b9c609a5f2
Analysis support around strict tables
2021-08-28 17:40:21 +02:00
Simon Binder
17f43bc9fc
Parse RAISE expressions ( #1154 )
2021-04-21 20:29:50 +02:00
Simon Binder
0842a47d31
Two more lints for RETURNING clauses
2021-03-30 10:30:24 +02:00
Simon Binder
7c911713de
Two more analysis errors around RETURNING
2021-03-13 22:25:39 +01:00
Simon Binder
af5491e15f
Warn when RETURNING is used on an unsupported version
2021-03-13 20:56:53 +01:00
Simon Binder
687263dd66
Analysis support for generalized upserts
2021-03-13 16:07:12 +01:00
Simon Binder
b110773053
Support MATERIALIZED / NOT MATERIALIZED
2021-03-13 14:00:06 +01:00
Simon Binder
a375caaa44
Add lint for duplicate PRIMARY KEY constraints
2021-01-18 15:11:46 +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
8aca8db941
Merge branch 'views' of https://github.com/mqus/moor into mqus-views
...
# Conflicts:
# sqlparser/test/analysis/schema/from_create_table_test.dart
2020-05-22 17:29:04 +02:00
Simon Binder
6b88385755
Rename test files to end with _test.dart
2020-05-16 19:49:00 +02:00
Simon Binder
888e131d50
Report analysis error for view column mismatches
2020-05-16 19:36:56 +02:00
Simon Binder
9841c960d1
Parse row values, warn on misuse
2020-05-06 21:08:47 +02:00
Simon Binder
6b2bd27d4d
Parse and analyze VALUES clause for selects
2020-04-16 22:41:21 +02:00
Simon Binder
aa52c4ba3d
Analysis for upsert clauses
2020-02-05 12:26:14 +01:00
Simon Binder
c4f321748a
Prepare release for sqlparser 0.3.0
2019-09-25 20:19:39 +02:00
Simon Binder
f6a5009380
Report errors when ORDER or LIMIT is used in compound stmt
2019-09-25 18:08:24 +02:00