Commit Graph

310 Commits

Author SHA1 Message Date
Simon Binder 6bb2c3d2c5
Support named constructors for rows in drift file 2023-04-23 16:21:31 +02:00
Simon Binder db15b792ca
Fix column name inference in CTEs and subqueries 2023-04-20 16:43:27 +02:00
Simon Binder 611fd4c4e9
Fix crash with CTE on insert/update/delete 2023-04-20 15:37:51 +02:00
Simon Binder 11b563f9de
Add static analysis for the `IIF` function (#2392) 2023-04-18 12:42:51 +02:00
Simon Binder a988b38ec1
Improve error message for invalid column name 2023-04-16 18:37:34 +02:00
Simon Binder 99abaae2f1
Fix infinite loop in trigger parser 2023-04-14 11:47:15 +02:00
Simon Binder 834cc154bc
Infer types for `HAVING` clauses 2023-04-08 15:58:06 +02:00
Simon Binder bdac301866
Allow references to result column in group by too 2023-04-08 15:44:47 +02:00
Simon Binder 4e05067bd5
Don't assume nullable if no join syntax is known 2023-03-26 22:21:48 +02:00
Simon Binder c38e9cc6c0
Fix false-positive trigger syntax error (#2360) 2023-03-26 21:44:12 +02:00
Simon Binder 849f245f53
Warn about invalid custom foreign key constraint 2023-03-13 22:30:14 +01:00
Simon Binder 1c662ebb1a
Analysis support for sqlite 3.41.0 2023-02-22 23:05:17 +01:00
Simon Binder e2136236d9
Improve error messages for keyword functions 2023-02-08 10:52:48 +01:00
Simon Binder 7175b83d2b
Add missing space when formatting window functions 2023-01-20 18:14:37 +01:00
Simon Binder 4b83810a17
Fix `CAST` always being non-nullable 2023-01-06 21:14:24 +01:00
Simon Binder 1d7e656e30
Support cast to enum types 2023-01-06 16:53:04 +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 6e173e8c08
Don't require tokens for some AST classes 2022-12-30 20:46:18 +01:00
Simon Binder f13fb4e218
Analyze existing row types for queries 2022-12-27 17:04:38 +01:00
Simon Binder 20aff8a9db
Begin with existing types for queries 2022-12-26 19:17:17 +01:00
Simon Binder e2265eb597
Add `DriftAny` type to wrap `ANY` in strit tables 2022-12-18 18:55:17 +01:00
Simon Binder b6cff50135
Parse custom constraints applied to columns 2022-12-11 00:06:45 +01:00
Simon Binder 387a21c580
Relax constraints on element order in drift files 2022-12-03 00:06:05 +01:00
Simon Binder fe3566429f
Migrate more analyzer tests 2022-10-30 19:41:59 +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 090a0053f1
Merge branch 'develop' into modular-generation 2022-09-16 20:03:17 +02:00
Fabian Freund cd89379627
Static analysis support for spellfix1 (#2013) 2022-09-16 16:02:39 +02:00
Simon Binder aa5cb69799
Support indices in new analyzer 2022-09-10 23:22:39 +02:00
Simon Binder ee66465d47
Avoid leading underscores for local identifiers 2022-08-31 00:59:19 +02:00
Fabian Freund d5fac6da07 clean fts option strings; rowid fallback; 2022-08-25 20:38:14 +03:00
Simon Binder 8d540b47f5
Hide fts5 rowid, make table type public 2022-08-25 18:13:06 +02:00
Fabian Freund 986f7d24a5 expose rowid when ft5 with content table 2022-08-25 17:21:05 +03:00
Fabian Freund 72dc6707ee test argument validation 2022-08-24 17:35:51 +03:00
Fabian Freund 135433a692
Merge branch 'simolus3:develop' into rtree 2022-08-23 16:40:53 +03:00
Fabian Freund d1e623a0c6 added rtree support 2022-08-23 16:33:23 +03:00
Simon Binder 33c13e2422
Fix resolving around subqueries in FROM (#2010) 2022-08-22 23:21:54 +02:00
Fabian Freund 3848dd528e added tests for fts5vocab module 2022-08-22 17:32:57 +03:00
Simon Binder 70b18550d9
Fix tokenizer crash around `@` or `$` tokens 2022-08-20 15:59:44 +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 645f954a9b
More tests for new join operators 2022-05-26 23:35:05 +02:00
Simon Binder a6b7bf9aaa
Version check for new joins 2022-05-26 23:29:58 +02:00
Simon Binder 098fcc2d1b
Parse new join kinds from sqlite 3.39 2022-05-26 23:23:02 +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