Commit Graph

288 Commits

Author SHA1 Message Date
Simon Binder d61e219311
Analysis for FROM clauses in UPDATE statements 2021-03-13 12:49:46 +01:00
Simon Binder 3000cb2e44
Parse FROM clauses for update statements 2021-03-13 12:02:35 +01:00
Simon Binder 725cad3651
Fix types of the rank column (#1066) 2021-02-25 20:29:57 +01:00
Simon Binder 535425e34f
Document confusing code 2021-02-14 16:50:21 +01:00
Simon Binder 968af8f56e
Fix analysis for views with CTEs 2021-02-14 16:36:01 +01:00
Simon Binder 75f1032474
Fix tests in sqlparser 2021-02-12 13:55:34 +01:00
Hossein Yousefi c0fc691a94 view analyzer class added 2021-02-11 18:38:41 +01:00
Hossein Yousefi c9269e13be added support for CREATE VIEW in .moor files 2021-02-10 16:23:51 +01:00
Simon Binder 76e6d2d219
Fix whitespace handling in new SQL generator 2021-01-24 12:27:53 +01:00
Simon Binder 4ba12c4868
Strip whitespace and comments from generated queries 2021-01-23 21:03:03 +01:00
Simon Binder 4940ed5be8
Fix broken sqlparser test 2021-01-18 19:24:47 +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 1ff10f47c2
Remove part files of parser 2021-01-18 11:15:31 +01:00
Simon Binder b8eed2f75b
Make order by placeholders optional (#998) 2021-01-08 22:30:17 +01:00
Simon Binder 6aa022e547
Add nullability hints, generate nullable variables 2020-12-14 18:35:19 +01:00
Simon Binder efe0df519b
Improve type inference around IS expressions 2020-12-14 17:48:50 +01:00
Simon Binder a749f38e2b
Make columns from LEFT OUTER joins nullable 2020-12-12 23:22:21 +01:00
Simon Binder 1d0cba14cd
Merge types2 and rest of types 2020-12-12 21:31:27 +01:00
Simon Binder 9025280a89
Migrate sqlparser to null safety 2020-12-11 10:53:17 +01:00
Simon Binder 0c075a2b44
Support overriding column getters and table classes (#932) 2020-11-23 20:01:31 +01:00
Simon Binder a73b9334b6
Reduce usages of covariant 2020-11-23 19:00:29 +01:00
Simon Binder bf7a8bc872
Fix resolving some references (#917) 2020-11-16 16:22:18 +01:00
Simon Binder 1d7479226a
Parse NULL column constraints to fix parsing errors (#909) 2020-11-07 12:32:45 +01:00
Simon Binder 71e5c4941e
Support comparing types with different names 2020-10-23 19:22:30 +02:00
Simon Binder 732369c25c
sqlparser: Give CASE a higher precedence 2020-10-22 13:30:43 +02:00
Simon Binder 89e019f756
Resolve type of EXISTS expressions in types2 (#874) 2020-10-16 12:31:18 +02:00
Simon Binder fac99e1d6b
Run CI with Dart 2.10 2020-10-02 18:43:27 +02:00
Simon Binder fa432ee17a
Add test for type hints in between expressions 2020-09-06 13:27:30 +02:00
Simon Binder 2ae2388878
Support default values for Dart placeholders (#753) 2020-08-30 13:48:47 +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 a037de6621
Support rowid resolution outside of selects
This fixes #754
2020-08-10 10:46:33 +02:00
Simon Binder 0d9196dca8
Resolve columns in CREATE TRIGGER declaration (#751) 2020-08-07 20:38:32 +02:00
Simon Binder c2ce934361
Apply type converters on variables (#730) 2020-07-23 17:30:26 +02:00
Simon Binder 640cae1244
Scan [identifiers] in sql queries (#724) 2020-07-22 10:43:44 +02:00
Simon Binder 144116b5e1
Re-run generator in Flutter example, fix type inference bug (#715) 2020-07-18 13:38:21 +02:00
Simon Binder cb7c36d63b
sqlparser: Improve numeric token parsing 2020-07-18 11:01:04 +02:00
Simon Binder 800ee8ac3a
Add implicit cast when inferring binary expressions 2020-07-18 09:49:49 +02:00
Simon Binder 74caeced85
Fix typo in parsing error message 2020-07-12 17:59:24 +02:00
Simon Binder 7ff91a620a
Some improvements related to generator error recovery 2020-07-07 23:01:02 +02:00
Simon Binder 2897dd4ae0
Parse NULLS FIRST and NULLS LAST 2020-06-27 14:38:16 +02:00
Simon Binder 5136412573
Parse DEFERRABLE clauses on foreign key constraints 2020-06-27 14:26:09 +02:00
Simon Binder 211b6fa2e9
sqlparser: Support remaining sqlite keywords 2020-06-26 22:54:42 +02:00
Simon Binder d5c6467e37
Finish documentation, remove unnecessary null hint 2020-06-24 17:11:41 +02:00
Simon Binder ccea0a5d36
Don't throw parsing errors for top-level statements 2020-06-24 17:08:13 +02:00
Simon Binder c342b29b33
Fix sqlparser crashes related to unknown tables 2020-06-19 13:43:16 +02:00
Simon Binder 5c9c175c85
Merge branch 'develop' of gh:simolus3/moor into develop 2020-06-17 23:00:56 +02:00
Markus Richter f298a10636
Allow Backticks(`) for escaping identifiers
This is sqlite-conformant behaviour according to https://sqlite.org/lang_keywords.html.
2020-06-17 17:20:44 +02:00
Simon Binder 1e8a1de6c0
sqlparser: Add visit methods for Queryable subclasses 2020-06-16 14:25:31 +02:00