Commit Graph

379 Commits

Author SHA1 Message Date
Simon Binder c80235799c
moor_generator: Properly release analyzer during tests 2020-06-28 18:48:32 +02:00
Simon Binder 3923b815fd
Merge branch 'master' into develop
# Conflicts:
#	moor_generator/pubspec.yaml
2020-06-28 17:34:00 +02:00
Simon Binder 3a558c3d1d
Prepare moor 3.2, moor_ffi 0.7 release 2020-06-28 17:27:32 +02:00
Simon Binder ab4b1d75ff
Escape keywords in moor_generator tests 2020-06-27 13:06:29 +02:00
Simon Binder 1e8a1de6c0
sqlparser: Add visit methods for Queryable subclasses 2020-06-16 14:25:31 +02:00
Simon Binder d089edd4c9
Migrate back to analyzer_plugin package (#623) 2020-06-11 18:05:23 +02:00
Simon Binder ee6e09699e
Error when using autoIncrement and primaryKey override 2020-06-04 20:50:43 +02:00
Simon Binder 835e31c8ed
Add `this.` prefix to avoid name clashes (#613) 2020-06-03 19:07:53 +02:00
Simon Binder f6ab5f64a8
Option to generate mutable data classes (#551) 2020-06-02 22:26:59 +02:00
Simon Binder 9f651b3ce9
Better support for changing analysis sessions 2020-06-02 11:48:16 +02:00
Till Friebe 1bab7f11d2 Add toString to companions
This is very useful for unit tests, because we can see directly what
values a companion has.
2020-05-28 18:52:32 +02:00
Simon Binder 074c9d973d
Don't crash when daos can't be read (#601) 2020-05-28 11:17:03 +02:00
Simon Binder 01e5a47189
Make utility visitor methods an extension 2020-05-24 19:53:36 +02:00
Simon Binder 9be0a9f79c
Fix result sets generating twice 2020-05-22 20:32:47 +02:00
Peter Leibiger 1da495a745
Fix generator required minimum analyzer version
`languageVersionMajor/Minor` was added in analyzer version 0.39.5 and is used since 4d463dd145
2020-05-22 18:10:29 +02:00
Simon Binder b8335b1222
Mention custom result class names in changelog 2020-05-22 17:25:30 +02:00
Simon Binder 8a98b42e62
Optimize row mapping when there is a matching table 2020-05-21 20:21:03 +02:00
Simon Binder 513881b13f
Always use a lambda for select mapping 2020-05-21 19:37:54 +02:00
Simon Binder 6c18eb22fa
Initial tests for custom result classes 2020-05-21 18:59:03 +02:00
Simon Binder 5d93f9fcf9
Analysis support for custom result sets 2020-05-21 15:22:49 +02:00
Simon Binder cbf8191e5d
Fix table sorting for tables referencing themselves (#586) 2020-05-20 13:41:40 +02:00
Simon Binder b5cc9b974d
Release update to pub 2020-05-18 22:07:19 +02:00
Simon Binder ba7fedb4c4
Fix generator tests that were failing due to a stronger assert 2020-05-17 20:26:21 +02:00
Simon Binder f8a516b51a
Use emitsThrough instead of emits 2020-05-17 15:08:24 +02:00
Simon Binder 63e0d61ccb
Fix resolving urls in common backend 2020-05-17 15:00:14 +02:00
Simon Binder 9bb83605e9
Don't crash when analyzing incomplete CREATE TABLE statement (#578) 2020-05-17 14:42:48 +02:00
Simon Binder 4d463dd145
Emit a warning if a project's language version is too low (#577) 2020-05-17 14:20:18 +02:00
Simon Binder cf830165e1
Support enum converters for moor files, add documentation 2020-05-13 21:43:58 +02:00
Simon Binder 7b9fa3d9ed
Simplify generation of enum type converters 2020-05-13 20:16:20 +02:00
Simon Binder 0f2ff8c97a
Implicitly create type converters for enums, Dart api (#478) 2020-05-12 21:47:11 +02:00
Simon Binder 04f24d3184
Ignore broken offset calculation for autocomplete 2020-05-12 13:38:28 +02:00
Simon Binder 254a54e9b6
Fix crash in analyzer plugin 2020-05-09 16:55:54 +02:00
Simon Binder 44bd89e47a
Don't throw when resolving types outside of the build analyzer
We still can't resolve the actual type, but at least we don't crash
now.
As we don't read the type of converters in the plugin or CLI, this
fixes #550
2020-05-08 21:43:36 +02:00
Simon Binder 0af49dd6df
Bring back the toCompanion method for data classes (#257) 2020-05-08 20:53:58 +02:00
Simon Binder c8935b0518
Respect foreign key constraints for stream query propagation (#528) 2020-05-06 22:55:38 +02:00
Simon Binder 8b6abd7140
Move referenced table finder to sqlparser package (#537) 2020-05-04 22:00:41 +02:00
Simon Binder 0a30b8a12e
Upgrade integration tests, release sqlparser 0.8 2020-05-03 13:28:34 +02:00
Simon Binder d3c4eac166
First release preparation for moor 3.0 2020-05-02 14:50:04 +02:00
Simon Binder 84bac1bf1d
Initial support for sql expressions in companions 2020-04-17 20:48:22 +02:00
Simon Binder 62a363105a
Refactor Insertables to avoid covariant parameters 2020-04-17 18:02:05 +02:00
Simon Binder 9a78604d98
Fix issues with new inference, enable it by default 2020-04-16 19:07:30 +02:00
Simon Binder 72e65611a7
Respect transitive imports when resolving moor converters
Might fix an error discovered in #482
2020-04-09 22:28:40 +02:00
Simon Binder 402b2f0d45
Merge pull request #474 from North101/develop
Fix weird behaviour with nested results
2020-04-05 14:21:42 +02:00
Simon Binder e90607c6da
Fix reading primaryKeys for tables in moor repo 2020-04-05 14:17:25 +02:00
Alexander Wilde 6eeaa88f67 Fix weird behaviour with nested results 2020-04-05 13:15:34 +01:00
Simon Binder 8bddb7c2c5
Skip null columns in Dart parser (#471) 2020-04-05 13:50:44 +02:00
Simon Binder 2c511d3ad4
Reformat sql_query class, reword docs 2020-04-04 13:07:17 +02:00
Simon Binder edc9029ece
Test linter behavior on nested columns 2020-04-04 13:01:40 +02:00
Simon Binder 4d56b861e4
Merge branch 'develop' of gh:simolus3/moor into develop 2020-04-04 11:51:45 +02:00
Simon Binder 0b7b1b7146
Fix Dart parser when primaryKey is not overridden 2020-04-04 11:48:00 +02:00