File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11## latest
22
3- This is a 1.0 release candidate - we encourage everyone to try it out and provide any last-minute feedback,
4- especially to new/changed APIs.
3+ This is a 1.0 release candidate - please try it out and give us any last-minute feedback, especially to new and changed APIs.
54
6- * Query now supports auto-closing. You can still call ` close() ` manually if you want to free native resources sooner
5+ * New Box ` putAsync() ` returning a ` Future ` and ` putQueued() ` for asynchronous writes.
6+ * Query now supports auto-closing. You can still call ` close() ` manually if you want to free native resources sooner
77 than they would be by Dart's garbage collector, but it's not mandatory anymore.
88* Change the "meta-model" fields to provide completely type-safe query building.
99 Conditions you specify are now checked at compile time to match the queried entity.
1010* Make property queries fully typed, ` PropertyQuery.find() ` now returns the appropriate ` List<...> ` type without casts.
11+ * Query conditions ` inside() ` renamed to ` oneOf() ` , ` notIn() ` and ` notInList() ` renamed to ` notOneOf() ` .
1112* Query ` stream ` and ` findStream() ` are replaced by ` QueryBuilder.watch() ` , i.e. ` box.query(...).watch() ` .
12- * Query conditions ` inside ()` renamed to ` oneOf() ` , ` notIn() ` and ` notInList() ` renamed to ` notOneOf() ` .
13+ * New Query ` stream ()` to stream objects all the while the query is executed in the background.
1314* Store ` subscribe<EntityType>() ` renamed to ` watch() ` .
1415* Store ` subscribeAll() ` replaced by a shared broadcast stream ` entityChanges ` .
1516* Entities can now contain ` final ` fields and they're properly stored/loaded (must be constructor params).
Original file line number Diff line number Diff line change @@ -736,6 +736,9 @@ class Query<T> {
736736 }
737737
738738 /// Finds Objects matching the query, streaming them while the query executes.
739+ ///
740+ /// Note: make sure you evaluate performance in your use case - streams come
741+ /// with an overhead so a plain [find()] is usually faster.
739742 Stream <T > stream () => _stream1 ();
740743
741744 /// Stream items by sending full flatbuffers binary as a message.
You can’t perform that action at this time.
0 commit comments