Commit Graph

286 Commits

Author SHA1 Message Date
Simon Binder 01db5e2afc
Release moor version 1.5.1, sqlparser 0.1.1 2019-07-03 20:04:09 +02:00
Simon Binder b9e9135ac3
Write "DEFAULT VALUES" in insert when appropriate 2019-07-02 22:42:49 +02:00
Simon Binder b0ca66bc06
Parse empty tuples
Closes #54
2019-07-02 22:30:54 +02:00
Simon Binder 1654193af4
Make parser assert it's at end after finishing 2019-07-02 22:21:20 +02:00
Simon Binder c5d46adcb5
Parse JOIN clauses without additional operators
Fixes #56
2019-07-02 22:07:30 +02:00
Simon Binder 59235783c3
Make query streams emit their last item for new listeners 2019-07-02 21:46:04 +02:00
Simon Binder 3024157ec9
Parse and analyze tuples, rework type resolution for `IN` 2019-07-02 14:38:28 +02:00
Simon Binder 285113717f
Parse tuples 2019-07-02 12:48:08 +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 2487c64c08
RELEASE 1.5
- Analyzed custom queries
- Better callbacks
- Update companions
2019-07-01 22:24:38 +02:00
Simon Binder d15db1a199
Migrate example app to moor 1.5 2019-07-01 22:07:58 +02:00
Simon Binder 3dddc6993a
Remove outdated todo entries 2019-07-01 21:37:08 +02:00
Simon Binder a45d73a6cf
Update documentation, fix multiline parsing 2019-07-01 21:20:59 +02:00
Simon Binder b2f79e97e6
Update docs of sqlparser library 2019-07-01 15:04:17 +02:00
Simon Binder da07be2da4
Parse exists expressions 2019-07-01 14:27:08 +02:00
Simon Binder 3e910123d2
Resolve and infer types related to like expressions 2019-07-01 13:59:52 +02:00
Simon Binder 791afdb6bf
Support ESCAPE clause for LIKE and similar expressions 2019-07-01 13:52:46 +02:00
Simon Binder 44663d3648
Make `getSingle` and `watchSingle` return null when empty
Closes #47
2019-06-30 22:24:04 +02:00
Simon Binder 464754267e
Document new features for version 1.5 2019-06-30 22:16:58 +02:00
Simon Binder 9082236be8
Generate sitemap for documentation 2019-06-30 19:51:39 +02:00
Simon Binder f5492b8bcb
Generate code for update and delete statements 2019-06-30 19:34:54 +02:00
Simon Binder baf3c9ce88
Parse update statements 2019-06-30 15:25:39 +02:00
Simon Binder f8834f0e15
More fluent api to define queries 2019-06-30 13:35:13 +02:00
Simon Binder b4de942915
Write query engine override param for generated queries
This allows them to be used in transactions and post-
migration callbacks.
2019-06-30 13:09:07 +02:00
Simon Binder 53ea5835a8
For custom queries, use a matching data class if possible 2019-06-30 12:01:46 +02:00
Simon Binder 3f0776faf8
Fix tests, parse delete statements 2019-06-29 22:47:40 +02:00
Simon Binder ff530dd4ea
Improve documentation of the sqlparser library 2019-06-29 22:29:16 +02:00
Simon Binder d9f5cf0e69
Resolve types for case expressions 2019-06-29 18:02:44 +02:00
Simon Binder 9c07eaa465
Parse case expressions 2019-06-29 17:59:18 +02:00
Simon Binder 5e1ec15caa
Resolve types for between expression 2019-06-29 17:36:33 +02:00
Simon Binder 7ef904d053
Parse between expressions 2019-06-29 17:32:06 +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 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