Commit Graph

212 Commits

Author SHA1 Message Date
Simon Binder 17f43bc9fc
Parse RAISE expressions (#1154) 2021-04-21 20:29:50 +02:00
Simon Binder 67f7e269e0
Lift parser.dart out of singleton dir 2021-04-21 19:59:18 +02:00
Simon Binder 602212f99d
Support REQUIRED annotation for query vars 2021-04-13 22:14:12 +02:00
Simon Binder 9b6b5d1b69
Make rowid aliases non-nullable (#1128) 2021-04-02 21:54:31 +02:00
Simon Binder eb39738460
Initial support for RETURNING in the generator 2021-03-30 23:24:28 +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 b9b7f407c9
Parse RETURNING clauses 2021-03-13 20:41:14 +01:00
Simon Binder 687263dd66
Analysis support for generalized upserts 2021-03-13 16:07:12 +01:00
Simon Binder c9f8af346d
Parse more than ON CONFLICT clause 2021-03-13 15:21:27 +01:00
Simon Binder 3cf3be27ae
sqlparser: Support the built-in math extension 2021-03-13 14:37:44 +01:00
Simon Binder b110773053
Support MATERIALIZED / NOT MATERIALIZED 2021-03-13 14:00:06 +01:00
Simon Binder 68b3d7d634
Add sqlite version argument to engine 2021-03-13 13:25:16 +01:00
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 968af8f56e
Fix analysis for views with CTEs 2021-02-14 16:36:01 +01:00
Simon Binder 61d5b7897a
Upgrade dependencies where possible 2021-02-14 14:06:51 +01:00
Hossein Yousefi c0fc691a94 view analyzer class added 2021-02-11 18:38:41 +01:00
Simon Binder 4ba12c4868
Strip whitespace and comments from generated queries 2021-01-23 21:03:03 +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 fa0cda6ffe
Add regression test for #978 2020-12-19 17:34:32 +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 35d2d1fca8
Merge branch 'develop' into nnbd
# Conflicts:
#	moor/test/data/tables/custom_tables.g.dart
2020-12-04 20:01:22 +01:00
Simon Binder 0c075a2b44
Support overriding column getters and table classes (#932) 2020-11-23 20:01:31 +01:00
Simon Binder 9e60acfe18
Fix new errors from GitHub actions 2020-11-20 18:25:53 +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 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 fa432ee17a
Add test for type hints in between expressions 2020-09-06 13:27:30 +02:00
Simon Binder 6e157b02c9
Add formatting test for default placeholder values 2020-08-30 14:08: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 0d9196dca8
Resolve columns in CREATE TRIGGER declaration (#751) 2020-08-07 20:38:32 +02:00
Simon Binder 640cae1244
Scan [identifiers] in sql queries (#724) 2020-07-22 10:43:44 +02:00
Simon Binder ba708ee9c5
Merge branch 'use-sqlite3-package' into develop 2020-07-18 17:47:27 +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 35629abf2b
Migrate sqlparser from moor_ffi to sqlite3 2020-07-10 17:32:45 +02:00
Simon Binder 2897dd4ae0
Parse NULLS FIRST and NULLS LAST 2020-06-27 14:38:16 +02:00