Commit Graph

48 Commits

Author SHA1 Message Date
Simon Binder 8b86143ebb
Generate code for triggers 2019-12-31 16:03:03 +01:00
Simon Binder ba603f22cc
Merge branch 'develop' into views-triggers-indexes
# Conflicts:
#	moor/lib/moor.dart
#	moor/lib/src/runtime/api/query_engine.dart
#	moor/lib/src/runtime/query_builder/schema/entities.dart
#	moor/test/data/tables/custom_tables.g.dart
#	moor/test/data/tables/tables.moor
#	moor/test/parsed_sql/moor_files_integration_test.dart
#	moor_generator/lib/src/analyzer/moor/parser.dart
#	moor_generator/lib/src/analyzer/runner/steps.dart
#	moor_generator/lib/src/analyzer/runner/steps/analyze_dart.dart
#	moor_generator/lib/src/model/specified_db_classes.dart
#	moor_generator/lib/src/writer/database_writer.dart
#	sqlparser/lib/src/ast/ast.dart
#	sqlparser/lib/src/ast/statements/create_table.dart
#	sqlparser/lib/src/ast/statements/statement.dart
#	sqlparser/lib/src/reader/parser/schema.dart
#	sqlparser/lib/src/reader/tokenizer/token.dart
#	sqlparser/test/engine/autocomplete/static_test.dart
2019-12-30 21:08:32 +01:00
Simon Binder e9cada5e54
Api to globally override the default ValueSerializer
Closes #303
2019-12-27 18:17:45 +01:00
Simon Binder 72934d1b87
Check isRequired at compile time, save verification code 2019-12-25 22:26:32 +01:00
Simon Binder 2c97373bdd
Support implicit-dynamic: false
Closes #268
2019-12-10 20:38:08 +01:00
Simon Binder bea001bb16
Improve test coverage for query generation 2019-11-12 21:16:48 +01:00
Simon Binder 5cc1f85441
Inject mock streams via .connect constructor 2019-10-30 19:25:26 +01:00
Simon Binder 8a54fd4729
Generate code for CREATE TRIGGER statements 2019-10-21 18:13:28 +02:00
Simon Binder 5510a90583
Fix warnings (2.6-dev SDK), escape \r, constant workaround 2019-10-09 19:48:52 +02:00
Simon Binder 6e32e37dd7
Remove unnecessary type parameter on createCompanion 2019-10-05 22:41:23 +02:00
Simon Binder 161f7c0203
Optionally override hashCode and equals in result sets 2019-09-20 19:31:36 +02:00
Simon Binder 7a8191fe7e
Fix moor queries not expanding array vars properly 2019-09-14 09:27:36 +02:00
Simon Binder c8ae99b52e
Breaking changes for the upcoming version
1. Removes transaction parameter in callbacks, custom queries
2. Removes MigrationStrategy.onFinished
2019-09-13 21:04:15 +02:00
Simon Binder 35fcdb2c0f
Implement error handling in the refactored builder 2019-09-03 19:30:05 +02:00
Simon Binder 3cb00a4b31
Remove unnecessary "this." in insert companion constructor 2019-08-29 16:33:15 +02:00
Simon Binder 4e83c0275b
Generate constructor for companions with @required fields 2019-08-29 13:54:08 +02:00
Simon Binder 0860b6645a
Generate selectable for custom queries
This makes is easier to use getSingle() and watchSingle()
on them.
Fixes #120
2019-08-27 18:44:34 +02:00
Simon Binder 397d3f2383
Support absent values on INTEGER PRIMARY KEY 2019-08-23 22:50:15 +02:00
Simon Binder a2c7b14862
Introduce flag to generate private watch methods 2019-08-19 19:04:15 +02:00
Simon Binder 4ce9e12c0e
Write copyWith methods in companion classes
Fixes #102
2019-08-16 15:01:03 +02:00
Simon Binder 35e6ed67df
Use new GeneratorSession for the writer 2019-07-20 10:18:41 +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 af5fca7dca
Migrate example to new opening callback 2019-06-22 19:02:25 +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 5fc921aefc
Provide detailed error messages for inconsistent data 2019-06-16 14:44:43 +02:00
Simon Binder 023c055e44
Implement new serialization api in generated classes 2019-05-23 19:17:47 +02:00
Simon Binder 5db9a5f87d
Actually use the real type, add parent for data classes 2019-05-17 21:25:02 +02:00
Simon Binder b2345a9f28
Add real datatype for numeric values 2019-05-12 10:53:00 +02:00
Simon Binder f28eb13b4c
Fix hashcodes, document joins 2019-04-06 13:11:49 +02:00
Simon Binder ab5ac57778
Use jenkins hash 2019-04-05 17:47:51 +02:00
Simon Binder e36470211c
Implement transactions 2019-03-31 17:06:22 +02:00
Simon Binder 9ca52d7f87
Use aliases in the operations 2019-03-30 19:21:44 +01:00
Simon Binder df2a681410
Preparation for aliased tables 2019-03-30 18:48:09 +01:00
Simon Binder 3e1cbee3c6
Implement fromJson factory in data classes. 2019-03-15 17:56:39 +01:00
Simon Binder e7ece27528
Implement insertOrReplace method for insert statements 2019-03-15 12:56:22 +01:00
Simon Binder 5de1656e07
Memoized getters for generated classes 2019-03-10 20:04:32 +01:00
Simon Binder cbd217317a
Let data classes override toString() 2019-03-10 12:54:50 +01:00
Simon Binder d70b447c65
Fix some typos 2019-03-09 20:35:29 +01:00
Simon Binder 4d80ff77c9
Finalize renaming 2019-03-09 17:02:56 +01:00
Simon Binder 62900a93a9
Rename project to "moor" 2019-03-09 16:37:37 +01:00