Commit Graph

131 Commits

Author SHA1 Message Date
Hossein Yousefi c0fc691a94 view analyzer class added 2021-02-11 18:38:41 +01:00
Hossein Yousefi bf813cf67b added a test that fails 2021-02-10 22:47:39 +01:00
Hossein Yousefi c9269e13be added support for CREATE VIEW in .moor files 2021-02-10 16:23:51 +01:00
Simon Binder 4ba12c4868
Strip whitespace and comments from generated queries 2021-01-23 21:03:03 +01:00
Simon Binder db72da0f07
Use new build apis to load results (#959) 2020-12-29 22:22:32 +01:00
Simon Binder 1655bcc69f
Recognize withoutRowId in Dart tables (#972) 2020-12-17 19:49:08 +01:00
Simon Binder 0dddd33c45
Add test for daos with invalid types (#967) 2020-12-12 20:34:01 +01:00
Simon Binder fea1692a6e
Support latest analyzer, use regular plugin package 2020-12-12 20:00:54 +01:00
Simon Binder d44699f0ee
Start writing some unit tests for schema verification 2020-11-13 18:06:42 +01:00
Gustav Bylund 4eba4e7070 feat: add support for documentation comments 2020-10-28 00:43:56 +01:00
Simon Binder 71e5c4941e
Support comparing types with different names 2020-10-23 19:22:30 +02:00
Simon Binder e29fcf93f7
Publish moor 3.4, sqlparser 0.11 2020-10-22 14:17:54 +02:00
Simon Binder e4d985728a
Migrate to analyzer version 0.40 2020-10-16 19:25:10 +02:00
Simon Binder 7e88e74a6c
Add tests for schema verification, fix inconsistencies 2020-10-16 17:16:45 +02:00
Simon Binder cf537721cb
Add tools to generate old versions of a database 2020-10-14 21:15:17 +02:00
Simon Binder 3470d0485a
Add current_time_millis SQL function (#857) 2020-10-11 11:25:21 +02:00
Simon Binder e510be34a3
Warn when using default values outside of expressions 2020-08-30 14:05:28 +02:00
Simon Binder 02cd8f2b33
Add more analyzer tags to generator tests 2020-08-21 17:37:07 +02:00
Simon Binder a037de6621
Support rowid resolution outside of selects
This fixes #754
2020-08-10 10:46:33 +02:00
Simon Binder 5cbc331dda
Release moor, moor_generator 3.3.1, sqlparser 0.10.1 2020-08-07 21:58:56 +02:00
Simon Binder cd61c5ad16
Generator: Fix duplicate code generation for table imports (#447) 2020-08-06 16:49:58 +02:00
Simon Binder 6b43a57911
Warn when using both primaryKey and autoIncrement() 2020-07-21 19:43:43 +02:00
Simon Binder 834ca520b1
Lint for mismatching types in arithmetic expressions 2020-07-18 11:19:20 +02:00
Simon Binder ba60bb9962
Don't generate const constructors for mutable classes (#699) 2020-07-17 13:12:06 +02:00
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 ab4b1d75ff
Escape keywords in moor_generator tests 2020-06-27 13:06:29 +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 f6ab5f64a8
Option to generate mutable data classes (#551) 2020-06-02 22:26:59 +02:00
Simon Binder 8a98b42e62
Optimize row mapping when there is a matching table 2020-05-21 20:21:03 +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 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 c8935b0518
Respect foreign key constraints for stream query propagation (#528) 2020-05-06 22:55:38 +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 edc9029ece
Test linter behavior on nested columns 2020-04-04 13:01:40 +02:00
Simon Binder c692c56d43
Support primaryKey override with inheritance (#467) 2020-04-03 22:02:01 +02:00
Simon Binder dcb4c4b972
Resolve nested result sets in generator 2020-04-03 20:30:41 +02:00
Simon Binder 29eec7f784
Fix parser tests in moor_generator 2020-03-22 11:56:28 +01:00
Simon Binder 2da8577b01
Add failing test for #447 2020-03-18 13:09:18 +01:00
Simon Binder 5b675a811b
Don't consider rowid aliases required (#445) 2020-03-16 20:36:03 +01:00