|
1 | 1 | ## latest |
2 | 2 |
|
3 | | -* Avoid conflicts with entity class names in generated code [#519](https://github.com/objectbox/objectbox-dart/issues/519) |
4 | | -* For Flutter apps: `loadObjectBoxLibraryAndroidCompat()` is now called by default when using |
5 | | - `openStore()` (effective after re-running `flutter pub run build_runner build`). For devices |
6 | | - running Android 6 or older this will pre-load the ObjectBox library in Java to prevent errors when |
7 | | - loading it in Dart. |
8 | | - |
9 | | - If your code was calling the compat method manually, remove the call and re-run above command. |
10 | | - |
11 | | - Let us know if there are issues with this change in [#369](https://github.com/objectbox/objectbox-dart/issues/369)! |
| 3 | +* Support creating file-less in-memory databases, for example for caching or testing. To create one |
| 4 | + pass an in-memory identifier together with `Store.inMemoryPrefix` as the `directory`: |
| 5 | + ```dart |
| 6 | + final inMemoryStore = |
| 7 | + Store(getObjectBoxModel(), directory: "${Store.inMemoryPrefix}test-db"); |
| 8 | + ``` |
| 9 | + See the `Store` documentation for details. |
| 10 | +* Add `Store.removeDbFiles()` to conveniently delete database files or an in-memory database. |
| 11 | +* Add `Store.dbFileSize()` to get the size in bytes of the main database file or memory occupied by |
| 12 | + an in-memory database. |
12 | 13 | * Add `relationCount()` query condition to match objects that have a certain number of related |
13 | 14 | objects pointing to them. E.g. `Customer_.orders.relationCount(2)` will match all customers with |
14 | 15 | two orders. `Customer_.orders.relationCount(0)` will match all customers with no associated order. |
|
40 | 41 | int get computedValue => TODO; |
41 | 42 | set computedValue(int value) => TODO; |
42 | 43 | ``` |
43 | | -* Support creating file-less in-memory databases, for example for testing. To create one pass an |
44 | | - in-memory identifier together with `Store.inMemoryPrefix` as the `directory`: |
45 | | - ```dart |
46 | | - final inMemoryStore = |
47 | | - Store(getObjectBoxModel(), directory: "${Store.inMemoryPrefix}test-db"); |
48 | | - ``` |
49 | | - See the `Store` documentation for details. |
50 | | -* Add `Store.removeDbFiles()` to conveniently delete database files or an in-memory database. |
51 | | -* Add `Store.dbFileSize()` to get the size in bytes of the main database file or memory occupied by |
52 | | - an in-memory database. |
| 44 | +* For Flutter apps: `loadObjectBoxLibraryAndroidCompat()` is now called by default when using |
| 45 | + `openStore()` (effective after re-running `flutter pub run build_runner build`). For devices |
| 46 | + running Android 6 or older this will pre-load the ObjectBox library in Java to prevent errors when |
| 47 | + loading it in Dart. |
| 48 | + |
| 49 | + If your code was calling the compat method manually, remove the call and re-run above command. |
| 50 | + |
| 51 | + Let us know if there are issues with this change in [#369](https://github.com/objectbox/objectbox-dart/issues/369)! |
| 52 | +* Avoid conflicts with entity class names in generated code [#519](https://github.com/objectbox/objectbox-dart/issues/519) |
53 | 53 | * Flutter for Linux/Windows, Dart Native: update to [objectbox-c 0.21.0](https://github.com/objectbox/objectbox-c/releases/tag/v0.21.0). |
54 | 54 | * Flutter for Android: update to [objectbox-android 3.8.0](https://github.com/objectbox/objectbox-java/releases/tag/V3.8.0). |
55 | 55 | If you are [using Admin](https://docs.objectbox.io/data-browser#admin-for-android), make sure to |
|
0 commit comments