Commit Graph

114 Commits

Author SHA1 Message Date
Simon Binder af5333db3c
Support compound select statements in from 2020-04-07 15:37:35 +02:00
Simon Binder dcb4c4b972
Resolve nested result sets in generator 2020-04-03 20:30:41 +02:00
Simon Binder 2b9a85714f
Improve nullability detection in new type inference 2020-03-24 19:33:57 +01:00
Simon Binder 1a2d3bdee7
Parse comma separated tables as proper join (#453) 2020-03-22 11:51:39 +01:00
Simon Binder 87d1f2941b
Test for string concatenation variable inference 2020-02-23 19:23:50 +01:00
Simon Binder 814e7bf61d
SqlEngine: Migrate default construtor to options 2020-02-10 18:48:03 +01:00
Simon Binder aa52c4ba3d
Analysis for upsert clauses 2020-02-05 12:26:14 +01:00
Simon Binder 8839ec75a8
types2: Inference for upsert clauses 2020-02-03 21:54:49 +01:00
Simon Binder fbe061c84d
Support current time literals in the sql parser 2020-02-01 13:18:53 +01:00
Simon Binder 71ef9b8cd7
Support table-valued json1 functions 2020-01-26 14:42:52 +01:00
Simon Binder 5268d88344
Extract json1 support into an extension 2020-01-26 14:22:07 +01:00
Simon Binder 8c62365f26
Improve type inference for parentheses 2020-01-19 13:07:47 +01:00
Simon Binder 4a2184110f
Run tests for types1 for types2 resolver 2020-01-16 22:07:02 +01:00
Simon Binder 8ae68707f8
Smarter many-to-one propagation in types2 2020-01-15 22:10:18 +01:00
Simon Binder ddda6797e1
types: Analyze functions 2020-01-13 20:40:46 +01:00
Simon Binder 9c38ed1ea5
Support CASE expressions in the new type resolver 2020-01-10 21:31:22 +01:00
Simon Binder a3708b7230
Remove deprecated usages of SqlEngine constructor 2020-01-07 11:40:43 +01:00
Simon Binder 523eabaa2a
Support LIKE expressions in the new type resolver 2020-01-04 21:36:06 +01:00
Simon Binder a8ffd0a7f3
Support LIMIT clauses in the new type resolver 2020-01-04 21:26:47 +01:00
Simon Binder c362e08e6e
types2: Respect variable hints from options 2020-01-04 16:55:34 +01:00
Simon Binder 92030c07a8
types2: Support inference for insert statements (#297) 2020-01-04 14:38:37 +01:00
Simon Binder c95a5f0aad
New type resolver: Start propagating known types 2020-01-04 13:22:29 +01:00
Simon Binder 75cbe74b53
Make "new" and "old" table available for triggers 2020-01-01 20:37:34 +01:00
Simon Binder 757abf3b34
Fix typo in test description 2019-12-30 20:58:41 +01:00
Simon Binder c54a62120d
sqlparser: Support CAST expressions 2019-12-30 20:46:54 +01:00
Simon Binder 4484890609
Types2: Initial support for binary expressions 2019-12-30 20:14:29 +01:00
Simon Binder 927fbf561b
Begin architecture of a new type resolver in sqlparser 2019-12-26 21:55:02 +01:00
Simon Binder 412e8b4c83
Ability to override variable types in the sqlparser 2019-12-25 19:50:32 +01:00
Simon Binder ffe4bb8c82
Don't crash when trying to resolve variables 2019-12-16 13:24:29 +01:00
Simon Binder 3c74a20f56
Enable more recent lints and enforce them 2019-12-04 21:45:09 +01:00
Simon Binder a0ce3421c9
Resolve json functions when option is set (#235) 2019-11-28 21:50:55 +01:00
Simon Binder bb1fcc1590
Fix analyzer crash at CTE (#255) 2019-11-24 14:46:20 +01:00
Simon Binder b8af08919a
Handle recursive CTEs in analyzer 2019-10-23 18:03:24 +02:00
Simon Binder d55e1de66d
Handle common table expressions in the analyzer 2019-10-23 17:07:44 +02:00
Simon Binder 8a8b811643
Fix more sqlparser crashes in the resolver 2019-10-20 11:28:05 +02:00
Simon Binder d8226aeb23
Handle aliases references to rowid (#197) 2019-10-19 16:09:44 +02:00
Simon Binder ed03bff4c2
Recognize boolean and datetime column in moor 2019-10-05 21:24:41 +02: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
Simon Binder c95a3badb2
Infer types for dart placeholder expressions
Also, infer where clauses to have a bool type
2019-09-14 22:44:20 +02:00
Simon Binder f171098789
Parse Dart placeholders based on their context 2019-09-14 11:44:15 +02:00
Simon Binder 4c250c8f40
Parse dart template expressions and limit clauses 2019-09-13 23:08:29 +02:00
Simon Binder dd8b4ab03a
Infer types for insert statements 2019-08-29 15:32:45 +02:00
Simon Binder e911e74af2
Support window declarations on select statements 2019-08-19 18:06:25 +02:00
Simon Binder 7ba89c099f
Resolve and infer types for window expressions 2019-08-14 18:00:41 +02:00
Simon Binder a550a49705
Export table structure from CREATE TABLE statements 2019-07-28 22:09:20 +02: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 6c84013cfa
Correctly find references to aliased columns 2019-07-25 17:44:59 +02:00
Simon Binder 82f84732d0
Resolve aliased columns 2019-07-25 17:33:01 +02:00
Simon Binder c5d46adcb5
Parse JOIN clauses without additional operators
Fixes #56
2019-07-02 22:07:30 +02:00
Simon Binder 3024157ec9
Parse and analyze tuples, rework type resolution for `IN` 2019-07-02 14:38:28 +02:00
Simon Binder 316f9e1052
Only resolve columns declared in scope of a statement
Fixes #52
2019-07-02 12:28:54 +02:00
Simon Binder 3e910123d2
Resolve and infer types related to like expressions 2019-07-01 13:59:52 +02:00
Simon Binder baf3c9ce88
Parse update statements 2019-06-30 15:25:39 +02:00
Simon Binder 5e1ec15caa
Resolve types for between expression 2019-06-29 17:36:33 +02:00
Simon Binder 7a07a1ae78
Handle function calls in type resolution 2019-06-29 17:02:38 +02:00
Simon Binder 74257e0c83
Don't resolve functions.
It adds too much complication at the moment, so it's not
worth it for our simple purposes.
2019-06-29 16:14:59 +02:00
Simon Binder 807d1ddff0
Resolve index of sql parameters, documentation 2019-06-29 12:48:09 +02:00
Simon Binder 40a4ebdadf
Started to integrate the sqlparser into moor generator 2019-06-28 23:41:27 +02:00
Simon Binder 1479a0d850
Start resolving variables 2019-06-28 20:50:36 +02:00
Simon Binder 1271e730b8
Finish type resolution for simple expressions and columns 2019-06-28 10:50:41 +02:00
Simon Binder db92059610
Better column name prediction for expressions 2019-06-27 15:30:29 +02:00
Simon Binder 6238e459d1
Beware of the mightily inefficient four-pass parser
(computers are fast these days ok??)
2019-06-26 23:07:30 +02:00
Simon Binder 62c20d0202
Add simple tests for reference resolution 2019-06-23 16:35:28 +02:00