Simon Binder
6e192fbe72
Report errors on transaction misuses
2021-07-22 12:36:09 +02:00
Simon Binder
159656bc74
Make resolvedEngine "public"
2021-07-17 21:22:35 +02:00
Elvis Lee
a8d16125fe
Mark _ensureOpenCalled before migrations.
2021-07-17 14:19:09 +08:00
Peter Leibiger
0bc5f17ee1
Correctly override Object.== everywhere
...
Using dynamic results in invalid mocks being generated by mockito since `==(dynamic other)` can not be overridden by `==(Object other)`.
2021-07-13 15:29:04 +02:00
Simon Binder
c40c588f7a
Fix enum converter not handling null properly
2021-07-12 14:59:08 +02:00
Simon Binder
d3f757235f
Switch docs in NullAwareTypeConverter
2021-07-09 17:49:28 +02:00
Simon Binder
b57d23084a
Prepare 4.4.1 release
2021-07-09 17:48:31 +02:00
Alexander Wilde
6cd943d3df
Enforce nnbd for typeconverters
2021-07-08 23:16:59 +01:00
Simon Binder
43f85e5c34
Always write explicitly-indexed variables ( #1324 )
2021-07-08 10:58:37 +02:00
Simon Binder
5a595d2519
Fix analyzer plugin
2021-07-07 18:01:30 +02:00
Simon Binder
0ee06dd366
Release 4.4.0
2021-07-03 14:05:11 +02:00
Simon Binder
ab79ec1e88
Prepare 4.4.0 release
2021-07-03 13:36:43 +02:00
Simon Binder
8a529b3821
Support latest sqlite in parser, update changelog
2021-06-30 22:30:56 +02:00
Simon Binder
a1c9a5933d
Support multiple upsert clauses
2021-06-30 21:32:37 +02:00
Simon Binder
dcb1c4776b
Merge pull request #1289 from jamie1192/feat/batch-typedef
...
Define batch callback as typedef (#1288 )
2021-06-30 09:14:03 +02:00
jamie1192
1c45a6857c
Prefer `FutureOr<void>` over dynamic ( #1288 )
2021-06-30 11:45:39 +10:00
Simon Binder
f231a631a4
Introduce subclass for columns with type converter
2021-06-28 16:17:24 +02:00
jamie1192
519e8328c8
Define batch callback as typedef ( #1288 )
2021-06-26 23:26:11 +10:00
Alexander Wilde
ebc9bddc2c
Add test for moor files isInQuery watchedTables
2021-06-20 21:15:27 +01:00
Simon Binder
1a105f5fcf
Support views in readsFrom
2021-06-20 21:28:14 +02:00
Simon Binder
c66b7fd37d
Test that isInQuery writes inner tables
2021-06-20 19:02:29 +02:00
Simon Binder
1c7125567f
Document order by and where for joins
2021-06-19 17:35:48 +02:00
Simon Binder
f3360d06a6
Use a single generated column implementation
2021-06-19 16:31:08 +02:00
Simon Binder
77e2764a46
Consider type converters for views
2021-06-16 21:56:23 +02:00
Simon Binder
6988d79f09
Fix tests
2021-06-15 22:38:36 +02:00
Simon Binder
8c134138d2
Return proper values in tableUpdates
2021-06-13 21:34:39 +02:00
Simon Binder
684558a385
Relax cancellation test
2021-06-08 22:06:32 +02:00
Simon Binder
1068c4934d
Don't schedule work before a database is opened
2021-06-08 21:25:22 +02:00
Simon Binder
45196d070e
Add closeUnderlyingOnClose argument to vm database
2021-06-08 17:23:18 +02:00
Simon Binder
4e6819aab9
Fix issues around closing databases ( #1250 )
2021-06-07 18:40:09 +02:00
Simon Binder
52487f2447
Update changelog and docs for new features
2021-06-04 18:45:53 +02:00
Simon Binder
eb362effe8
Option to generate functions for Dart placeholders
2021-06-04 18:28:03 +02:00
Simon Binder
7aa7bb0270
Add test for how batches start transaction
2021-06-03 13:25:29 +02:00
Simon Binder
7b0d0320e1
Improve names of generated view classes
2021-06-01 22:19:03 +02:00
Simon Binder
97c64b54b2
Initial runtime support for views
2021-06-01 22:05:28 +02:00
Simon Binder
c24cdb74ed
Merge branch 'master' into develop
2021-05-28 22:10:15 +02:00
Simon Binder
ac30bb5989
Prepare to release moor 4.3.2
2021-05-28 22:06:46 +02:00
Simon Binder
04caf09abb
Fix lock not returning futures in right order
2021-05-28 22:03:22 +02:00
Simon Binder
6aa8c47d6a
Merge pull request #1219 from kuhnroyal/bugfix/insert-returning-stream-update
...
Fix insertReturning stream update
2021-05-28 22:01:14 +02:00
Simon Binder
0a27100b90
Fix lock not returning futures in right order
2021-05-28 21:59:47 +02:00
Simon Binder
7d6dbbc662
Delete misplaced test file
2021-05-27 23:51:44 +02:00
Simon Binder
3e0e7dae8b
Add errors to InvalidDataException
2021-05-26 19:51:27 +02:00
Peter Leibiger
6ffd4254aa
Fix test case
2021-05-25 15:58:09 +02:00
Peter Leibiger
ec1ec98460
Add test case for insertReturning
2021-05-25 13:57:34 +02:00
Peter Leibiger
bc2aaee2f3
Fix insertReturning not updating streams
...
* test case not possible due to sqlite version
2021-05-25 12:23:23 +02:00
Simon Binder
893b95e7e9
Prepare to release moor/moor_generator 4.3.1
2021-05-24 12:52:42 +02:00
Simon Binder
63de86404a
Fix code generation for custom data classes
2021-05-24 12:49:27 +02:00
Simon Binder
81424c488b
Fix encoding updates without kind over isolates
2021-05-24 12:48:58 +02:00
Simon Binder
12d2fc4d76
Fix deserializing nullable types ( #1211 )
2021-05-24 12:48:41 +02:00
Simon Binder
55baa96b98
Remove references to mysql backend
2021-05-22 17:09:52 +02:00
Simon Binder
09d1260357
Fix deserializing nullable types ( #1211 )
2021-05-22 16:52:51 +02:00
Simon Binder
f726328f69
Fix encoding updates without kind over isolates
2021-05-21 22:24:00 +02:00
Simon Binder
473477e109
Fix code generation for custom data classes
2021-05-21 11:01:26 +02:00
Simon Binder
29bb6a73c8
Fix pub get from clean state
2021-05-21 10:47:42 +02:00
Simon Binder
e5e9e1247c
Allow ofNullable with any type if value isn't null
2021-05-20 11:19:55 +02:00
Simon Binder
0f7929e8e7
Add Value.ofNullable() ( #1209 )
2021-05-20 11:15:28 +02:00
Simon Binder
8f3a976d6e
Fix CI on Dart 2.13
2021-05-18 22:19:57 +02:00
Simon Binder
371e744288
Prepare to release 4.3.0
2021-05-15 17:23:29 +02:00
Simon Binder
8d1483ea97
Merge branch 'master' into develop
2021-05-15 17:20:52 +02:00
Simon Binder
41eb6f4181
Avoid dynamic when overriding ==
2021-05-14 18:50:29 +02:00
Simon Binder
edf74cb860
Don't count columns with useColums: false ( #1189 )
2021-05-13 10:59:31 +02:00
Simon Binder
bc2a2b4d61
Support existing data classes for moor tables
2021-05-11 22:01:51 +02:00
Simon Binder
5f7c20d4eb
Allow named constructors in custom row classes
2021-05-09 12:42:02 +02:00
Simon Binder
e05e8fe07e
Add min, max and avg for date times ( #1182 )
2021-05-07 13:46:13 +02:00
Simon Binder
258512e044
Support dart placeholders for inserts
2021-05-06 22:35:57 +02:00
Simon Binder
382ed71204
Add insertReturning
2021-05-06 18:19:01 +02:00
Simon Binder
bbef0d6048
Fix test
2021-05-06 17:29:31 +02:00
Simon Binder
0e4541a987
Generate non-nullable nested result sets
2021-05-06 17:20:13 +02:00
Simon Binder
ea5a9322a2
Test to reproduce #1179
2021-05-06 14:34:43 +02:00
Simon Binder
1de5479d60
Add explicit aliases with new codegen
2021-05-04 21:00:28 +02:00
Simon Binder
adb27d056b
Start phasing out SqlTypeSystem
2021-04-25 16:14:33 +02:00
Simon Binder
eb5196e9e8
Use companions in custom row classes
2021-04-25 15:21:43 +02:00
Simon Binder
852523a5da
Expand version range for build_config
2021-04-21 11:07:40 +02:00
Simon Binder
885c63e66e
Merge branch 'stream-cancellations' into develop
2021-04-19 21:39:10 +02:00
Simon Binder
925080bd35
Improve cancellations, test with switchMap
2021-04-15 20:52:43 +02:00
Simon Binder
602212f99d
Support REQUIRED annotation for query vars
2021-04-13 22:14:12 +02:00
Simon Binder
8d625cc13b
Initial documentation for custom row classes
2021-04-10 13:01:24 +02:00
Simon Binder
7885dd0a4f
Add changelog entry for custom row classes
2021-04-09 23:35:58 +02:00
Simon Binder
6bbff77271
Rename to @CustomRowClass
2021-04-09 23:33:58 +02:00
Simon Binder
6682c1f909
Initial support for custom data classes
2021-04-09 22:59:41 +02:00
Simon Binder
65cdce342d
Prepare api for custom data classes
2021-04-09 21:17:28 +02:00
Simon Binder
58fdda482f
Add caseMatch to build CASE WHEN
2021-04-04 21:37:32 +02:00
micimize
03f9c03ec7
standardize docstrings
2021-04-04 11:28:52 -05:00
micimize
fb2423c28f
use arrow functions and entry* naming for singletons
2021-04-04 11:25:15 -05:00
micimize
7f83898d00
normalize example methods based on docs elsewhere
2021-04-04 11:13:10 -05:00
Michael Joseph Rosenthal
eb0c5da412
Merge branch 'develop' into single_selectable
2021-04-04 11:04:34 -05:00
micimize
bb38169803
Selectable refinement: add docs, explanations, and examples
2021-04-04 11:02:49 -05:00
Simon Binder
133b7c652f
Fix generation for placeholders before arrays
2021-04-03 22:23:37 +02:00
micimize
2db108529f
break Selectable methods into smaller interfaces based on return type.
...
This makes it so users can expose more refined/foolproof apis to their application:
```dart
extension TaskMethods on Task {
/// won't make mistakes like using getSingle when using
SingleOrNullSelectable<CalendarEvent> get event =>
db.calendarEvents.forTask(this);
/// autocomplete ignores getSingle, etc
MultiSelectable<Metric> get metrics =>
db.metrics.forTask(this);
}
```
2021-04-02 21:26:18 -05:00
Simon Binder
cc93fa8238
Fix nullability issues with cancellations
2021-04-01 17:29:03 +02:00
Simon Binder
2fa3b47235
Actually, don't cancel on the same isolate
2021-03-31 23:30:18 +02:00
Simon Binder
8a99811542
Test cancellations on the same isolate
2021-03-31 23:22:50 +02:00
Simon Binder
edb219ecfe
Use Future.delayed in cancellation zones only
2021-03-31 23:10:07 +02:00
Simon Binder
04a8bb5694
Support cancellations across isolates
2021-03-31 22:55:35 +02:00
Simon Binder
357764a1b7
Initial support for query cancellations
2021-03-31 21:49:34 +02:00
Simon Binder
eb39738460
Initial support for RETURNING in the generator
2021-03-30 23:24:28 +02:00
Simon Binder
786bdfa2fc
Don't use types in StreamQueryStore
2021-03-29 22:32:32 +02:00
Simon Binder
ab0c2c5e55
Release moor and moor_generator version 4.2.1
2021-03-24 10:02:53 +01:00
Simon Binder
5ce5a48cff
Prefer a space after a closing ) in functions
2021-03-23 19:31:55 +01:00
Simon Binder
401b4d3650
Fix reading nullable columns
2021-03-23 16:59:11 +01:00