Commit Graph

141 Commits

Author SHA1 Message Date
Simon Binder ee66465d47
Avoid leading underscores for local identifiers 2022-08-31 00:59:19 +02:00
Simon Binder 33c13e2422
Fix resolving around subqueries in FROM (#2010) 2022-08-22 23:21:54 +02:00
Simon Binder 8f6878292a
Migrate to `package:lints` 2022-08-13 23:33:05 +02:00
Simon Binder 6c0e27b24c
SQL analysis for text datetimes 2022-07-24 19:19:18 +02:00
Simon Binder c9bd7236c6
Resolve `unixepoch` SQL function as datetime 2022-06-16 18:29:13 +02:00
Simon Binder 6a6d1268c4
Fix sum type inference (#1871) 2022-05-30 17:13:12 +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 6ee4fd8153
Two more tests on scopes 2022-05-26 21:21:54 +02:00
Simon Binder e503bc68a5
New implementation for reference scopes 2022-05-25 23:32:15 +02:00
Simon Binder 98163103d5
Lint for distinct aggregate with more than one arg 2022-05-08 09:05:23 +02:00
Simon Binder 645489a21c
Fix resolving parameters to `MAX`/`MIN` (#1790) 2022-04-05 20:50:18 +02:00
Simon Binder da212944ff
Replace old website and repository links 2022-03-13 15:52:15 +01:00
Simon Binder c9e22bf8d2
Parse non-window aggregate expressions 2022-03-08 10:58:40 +01:00
Simon Binder 9c80fb047b
Fix nullability propagation for type analysis 2022-03-02 16:06:30 +01:00
Simon Binder 9ec7465fca
Migrate rest of `drift_dev` to null safety 2022-02-26 22:20:17 +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 36815c0b88
Merge pull request #1638 from LeFrosch/develop
Support for nested queries like (#1634)
2022-01-31 13:21:24 +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
Daniel Brauner 7129468928 Fix not resolved columns bug 2022-01-23 17:53:16 +01:00
Simon Binder bdf0dc9985
Make group_concat nullable 2021-12-29 11:36:23 +01:00
Simon Binder 19bd92bfd9
Remove redundant imports 2021-12-09 14:10:51 +01:00
Simon Binder 44281bebaf
Support for STRICT tables in drift files 2021-12-03 22:11:44 +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 c83b630514
Fix type inference around RETURNING 2021-09-30 18:19:00 +02:00
Simon Binder 40bc3a17bb
Organize imports 2021-09-10 11:43:21 +02:00
Simon Binder cc6d553fa6
Format with Dart 2.14 2021-09-09 17:07:41 +02:00
Simon Binder b9c609a5f2
Analysis support around strict tables 2021-08-28 17:40:21 +02:00
Simon Binder 3bf91ed6c3
Fix _encapsulate nullability for null literals 2021-07-26 18:56:22 +02:00
Simon Binder c12de0b8a9
Fix nullability analysis of references 2021-07-07 21:25:57 +02:00
Simon Binder e87e4d7a7a
Add tests for available tables to sqlparser 2021-06-04 17:48:22 +02:00
Simon Binder 5d7cb7dbba
Fix nullability of unqualified star columns 2021-06-03 13:12:30 +02:00
Simon Binder 61cb03ad35
Warning when star column is used without table 2021-05-24 12:45:18 +02:00
Simon Binder a46cc07ed4
Refactor column resolver in sqlparser
Fixes #1208
2021-05-21 17:47:14 +02:00
Simon Binder 0d8741a7b4
Fix nullability in encapsulate 2021-05-13 11:59:01 +02:00
Simon Binder 17f43bc9fc
Parse RAISE expressions (#1154) 2021-04-21 20:29:50 +02:00
Simon Binder 9b6b5d1b69
Make rowid aliases non-nullable (#1128) 2021-04-02 21:54:31 +02:00
Simon Binder 5ac0582280
Properly resolve RETURNING columns 2021-03-30 11:03:12 +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 ab75b764f2
Resolve columns of a returning clause 2021-03-13 21:50:35 +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 d61e219311
Analysis for FROM clauses in UPDATE statements 2021-03-13 12:49:46 +01:00
Simon Binder 968af8f56e
Fix analysis for views with CTEs 2021-02-14 16:36:01 +01:00