2.0.0
Major file format change
2.0.0 uses a new file format that optimizes len() to be constant time. This means that it is not
backwards compatible with 1.x. To upgrade, consider using a pattern like that shown in the
upgrade_v1_to_v2 test.
Other changes
check_integrity()now returns aDatabaseErrorinstead of aStorageError- Table metadata methods have moved to a new
ReadableTableMetadatatrait - Rename
RedbKeytoKey - Rename
RedbValuetoValue - Remove lifetimes from read-only tables
- Remove lifetime from
WriteTransactionandReadTransaction - Remove
drain()anddrain_filter()fromTable. Useretain,retain_in,extract_iforextract_from_ifinstead - impl
CloneforRange - Add support for
[T;N]as aValueorKeyas appropriate for the typeT - Add
len()andis_empty()toMultimapValue - Add
retain()andretain_in()toTable - Add
extract_if()andextract_from_if()toTable - Add
range()returning aRangewith the'staticlifetime to read-only tables - Add
get()returning a range with the'staticlifetime to read-only tables - Add
close()method toReadTransaction