isar 2.0.0
isar: ^2.0.0 copied to clipboard
Fast Cross Platform Database for Flutter Apps. Supports indexes, FTS, queries etc.
2.0.0 #
Breaking #
- The id for non-final objects is now assigned automatically after
.put()and.putSync() doubleandList<double>indexes can no longer be at the beginning of a composite indexList<double>indexes can no longer be hashed.greaterThan(),.lessThan()and.between()filters and are now excluding fordoublevalues (>=->>)- Changed the default index type for lists to
IndexType.value IsarLinkandIsarLinkswill no longer be initialized by Isar and must not benullableorlate.- Dart
2.14or higher is required
Enhancements #
- Added API docs for all public methods
- Added
isar.clear(),isar.clearSync(),col.clear()andcol.clearSync() - Added
col.filter()as shortcut forcol.where().filter() - Added
includeparameter to.greaterThan()and.lessThan()filters and where clauses - Added
includeLowerandincludeUpperparameters to.between()filters and where clauses - Added
Isar.autoIncrementto allow non-nullable auto-incrementing ids Isar.close()now returns whether the last instance was closed- List values in composite indexes are now of type
IndexType.hashautomatically - Allowed multiple indexes on the same property
- Removed exported packages from API docs
- Improved generated code
- Imoroved Isar Core error messages
- Minor performance improvements
- Automatic XCode configuration
- Updated analyzer to
3.0.0 - More tests
Fixed #
IsarLinkandIsarLinkscan now be final- Fixed multi-entry index queries returning items multiple times in some cases
- Fixed
.anyLessThan()and.anyGreaterThan()issues - Fixed issues with backlinks
- Fixed issue where query only returned the first
99999results - Fixed issue with id where clauses
- Fixed default index type for lists and bytes
- Fixed issue where renaming indexes was not possible
- Fixed issue where wrong index name was used for
.getByX()and.deleteByX() - Fixed issue where composite indexes did not allow non-hashed Strings as last value
- Fixed issue where
@Ignore()fields were not ignored
1.0.5 #
1.0.0+1 #
Added missing binaries
1.0.0 #
Switched from liblmdb to libmdbx for better performance, more stability and many internal improvements.
Breaking #
The internal database format has been changed to improve performance. Old databases do not work anymore!
Fixes #
- Fix issue with links being removed after object update
- Fix String index problems
Enhancements #
- Support
greaterThan,lessThanandbetweenqueries for String values - Support for inheritance (enabled by default)
- Support for
finalproperties and getters - Support for
freezedand other code generators - Support getting / deleting objects by a key
col.deleteByName('Anne') - Support for list indexes (hash an element based)
- Generator now creates individual files instead of one big file
- Allow specifying the collection accessor name
- Unsupported properties are now ignored automatically
- Returns the assigned ids after
.put()operations (objects are no longer mutated) - Introduces
replaceOnConflictoption for.put()(instead of specifying it for index) - many more...
Internal #
- Improve generated code
- Many new unit tests
0.4.0 #
Breaking #
- Remove
.where...In()and...In()extension methods - Split
.watch(lazy: bool)into.watch()and.watchLazy() - Remove
includeoption for filters
Fixes #
- Generate id for JSON imports that don't have an id
- Enable
sortByandthenBygeneration
Enhancements #
- Add
.optional()and.repeat()query modifiers - Support property queries
- Support query aggregation
- Support dynamic queries (for custom query languages)
- Support multi package configuration with
@ExternalCollection() - Add
caseSensitiveoption to.distinctBy()
Internal #
- Change iOS linking
- Improve generated code
- Set up integration tests and improve unit tests
- Use CORE/0.4.0
0.2.0 #
- Link support
- Many improvements and fixes
0.1.0 #
- Support for links and backlinks
0.0.4 #
- Bugfixes and many improvements
0.0.2 #
Fix dependency issue
0.0.1 #
Initial release