Commit Graph

1354 Commits

Author SHA1 Message Date
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 22f78589db
Support custom queries in daos 2019-06-29 15:51:23 +02:00
Simon Binder 1ea1c12592
Make the dao generator use the same logic as the main one 2019-06-29 15:43:41 +02:00
Simon Binder 7becfdcb85
Don't use the MoorGenerator as a god class 2019-06-29 15:34:27 +02:00
Simon Binder 53d57d6a96
Refactor generator: Extract common operations 2019-06-29 15:23:14 +02:00
Simon Binder 33682a0ad1
Write readsFrom field for custom queries 2019-06-29 14:04:01 +02:00
Simon Binder d930664581
Escape strings before writing dart literals 2019-06-29 13:55:13 +02:00
Simon Binder 646987ad69
Correctly write variables in analyzed queries 2019-06-29 13:47:33 +02:00
Simon Binder 807d1ddff0
Resolve index of sql parameters, documentation 2019-06-29 12:48:09 +02:00
Simon Binder 2a8edbde0d
Write implementation methods for queries 2019-06-29 11:23:06 +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 7e916b9d74
Start with type resolution 2019-06-27 16:40:48 +02:00
Simon Binder db92059610
Better column name prediction for expressions 2019-06-27 15:30:29 +02:00
Simon Binder 6d54a21091
Merge branch 'master' into develop 2019-06-27 10:01:05 +02:00
Simon Binder 3c7e25a169
Fix analysis warning that popped out of nowhere 2019-06-27 09:55:03 +02:00
Simon Binder a6505d691b
Fix deserialization of null datetime values 2019-06-27 09:37:51 +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 674f4c6a9c
Slightly better reference resolving, parse subqueries 2019-06-26 21:44:29 +02:00
Simon Binder 6e4f33c931
Apply defaults for absent values during replace 2019-06-25 22:36:31 +02:00
Simon Binder 178df7ab1e
Provide hint on join that includes same table twice 2019-06-25 22:09:56 +02:00
Simon Binder 12e8c31b71
Fix select statement including a null iterable as children 2019-06-24 20:08:59 +02:00
Simon Binder 4562979d62
Better ability to resolve forward references 2019-06-23 22:14:50 +02:00
Simon Binder 62c20d0202
Add simple tests for reference resolution 2019-06-23 16:35:28 +02:00
Simon Binder 8b5539bb03
Start with reference resolution 2019-06-23 15:57:18 +02:00
Simon Binder 5d1046ba3a
Scaffold classes for type and reference analysis 2019-06-23 14:44:28 +02:00
Simon Binder b0649ee208
Parse group by statements 2019-06-23 13:37:30 +02:00
Simon Binder 8bbf6d8054
Parse function expressions 2019-06-23 13:04:05 +02:00
Simon Binder 1c75c9d3e8
Parse sql variables 2019-06-23 11:50:44 +02:00
Simon Binder b52dcf9a60
Test select statement parsing 2019-06-23 10:35:25 +02:00
Simon Binder 419c35695a
Merge branch 'delightful-queries' into develop 2019-06-22 22:38:31 +02:00
Simon Binder 5e6cabc816
Write some rudimentary api and docs for the parser 2019-06-22 22:35:34 +02:00
Simon Binder 99202f3df6
Parse the FROM part of a select statement 2019-06-22 22:04:06 +02:00
Simon Binder 1d36e3316d
Merge branch 'delightful-queries' into develop 2019-06-22 19:02:57 +02:00
Simon Binder af5fca7dca
Migrate example to new opening callback 2019-06-22 19:02:25 +02:00
Simon Binder 151c374bfe
Fix outdated use of Value.use() in generated code 2019-06-21 21:07:06 +02:00
Simon Binder 62c5106e7d
Migrate tests to companion 2019-06-21 20:29:42 +02:00
Simon Binder 0616fb7082
Migrate to update companions everywhere :) 2019-06-21 20:08:42 +02:00
Simon Binder 0abc3993f4
Fully migrate to new update companions 2019-06-21 19:48:18 +02:00
Simon Binder eee11d53d3
Start to migrate verification logic with update companions 2019-06-21 10:48:42 +02:00
Simon Binder ecf6740cb7
Constraints on type parameters for data classes 2019-06-21 10:27:14 +02:00
Simon Binder 6ac9109c0a
Fix dead code in generated update companions 2019-06-21 09:44:38 +02:00
Simon Binder b79611e6e0
Backwards compatibility: Use DataClasses as companion 2019-06-21 09:42:42 +02:00
Simon Binder ec2592203c
Generate update companions for data classes 2019-06-21 09:16:22 +02:00
Simon Binder 214b5fd978
Improve documentation on migrations, add custom statement 2019-06-20 13:08:34 +02:00
Simon Binder 47ef4891e6
Test that callbacks are actually called 2019-06-20 12:18:14 +02:00
Simon Binder 8204f6b393
Improve docs a bit, refactor onOpen callback 2019-06-20 11:41:00 +02:00
Simon Binder 373d7c6478
Remove foreign keys pragma from example 2019-06-19 21:32:27 +02:00
Simon Binder af58b99db1
Fix example app 2019-06-19 21:29:02 +02:00