Commit Graph

114 Commits

Author SHA1 Message Date
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
Hossein Yousefi c0fc691a94 view analyzer class added 2021-02-11 18:38:41 +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 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 bf7a8bc872
Fix resolving some references (#917) 2020-11-16 16:22:18 +01:00
Simon Binder 89e019f756
Resolve type of EXISTS expressions in types2 (#874) 2020-10-16 12:31:18 +02:00
Simon Binder fa432ee17a
Add test for type hints in between expressions 2020-09-06 13:27:30 +02:00
Simon Binder 0d9196dca8
Resolve columns in CREATE TRIGGER declaration (#751) 2020-08-07 20:38:32 +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 fee32fc302
Start with transformers in sqlparser 2020-05-24 22:30:25 +02: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
Markus Richter 5596c30cc7
Support subquery expressions in types2 (#583) 2020-05-19 19:42:36 +02:00
Simon Binder 52fd09c041
Fix reading a column without datatype 2020-05-17 15:18:25 +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 58335958c0
Test selecting from a view 2020-05-16 19:29:11 +02:00
Simon Binder 46ba81b672
Interface for columns with type, resolve in ViewReader 2020-05-16 19:16:06 +02:00
Simon Binder 9841c960d1
Parse row values, warn on misuse 2020-05-06 21:08:47 +02:00
Simon Binder 8b6abd7140
Move referenced table finder to sqlparser package (#537) 2020-05-04 22:00:41 +02:00
Simon Binder bd250ee9e7
Support collate expression with new type inference (#533) 2020-05-03 21:13:29 +02:00
Simon Binder 453ccbefdc
Support double-equals in types2 2020-04-19 13:43:42 +02:00
Simon Binder 6b2bd27d4d
Parse and analyze VALUES clause for selects 2020-04-16 22:41:21 +02:00
Simon Binder 9a78604d98
Fix issues with new inference, enable it by default 2020-04-16 19:07:30 +02:00