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 aDatabaseError
instead of aStorageError
- Table metadata methods have moved to a new
ReadableTableMetadata
trait - Rename
RedbKey
toKey
- Rename
RedbValue
toValue
- Remove lifetimes from read-only tables
- Remove lifetime from
WriteTransaction
andReadTransaction
- Remove
drain()
anddrain_filter()
fromTable
. Useretain
,retain_in
,extract_if
orextract_from_if
instead - impl
Clone
forRange
- Add support for
[T;N]
as aValue
orKey
as appropriate for the typeT
- Add
len()
andis_empty()
toMultimapValue
- Add
retain()
andretain_in()
toTable
- Add
extract_if()
andextract_from_if()
toTable
- Add
range()
returning aRange
with the'static
lifetime to read-only tables - Add
get()
returning a range with the'static
lifetime to read-only tables - Add
close()
method toReadTransaction