Lightweight and blazing fast key-value database written in pure Dart.
APACHE-2.0 License
Published by simc over 4 years ago
Published by simc over 4 years ago
crypto
Published by simc over 4 years ago
box.valuesBetween(startKey, endKey)
Hive.deleteBoxFromDisk()
did not work for boxes with upper-case namesencryptionKey
parameter. Use Hive.openBox('name', encryptionCipher: HiveAesCipher(yourKey))
.pointycastle
dependencypath
dependencyPublished by simc almost 5 years ago
Use latest version of hive_generator
TypeAdapters
and @HiveType()
now require a typeId
Hive.registerAdapter()
does not need a typeId
anymore.BinaryReader.readAsciiString()
BinaryWriter.writeAsciiString()
box.clear()
resets auto increment counterHive.init()
results in better exceptionPublished by simc almost 5 years ago
Use latest version of hive_generator
Hive.path
getterHive.openBoxFromBytes()
(use the bytes
parameter of Hive.openBox()
instead)LazyBox
and Box
now have a common parent class: BoxBase
Hive.openLazyBox()
Hive.lazyBox()
HiveLists
(see docs for details)LazyBox<YourModel>
Hive.deleteBoxFromDisk()
path
parameter to open boxes in a custom pathHiveObjects
have not been initialized correctly in lazy boxes0xFFFFFFFF
BoxEvent
s have been broadcastedencryptionKey
from Uint8List
to List<int>
Due to a bug in previous Hive versions, boxes whose name contains uppercase characters were stored in a file that also contains upper case characters (e.g. 'myBox' -> 'myBox.hive').
To avoid different behavior on case sensitive file systems, Hive should store files with lower case names. This bug has been resolved in version 1.2.0.
If your box name contains upper case characters, the new version will not find a box stored by an older version. Please rename the hive file manually in that case.
This also applies to the web version.
Published by simc about 5 years ago
object.delete()
now throws exception if object is not stored in a boxobject.save()
would faild on subsequent callsPublished by simc about 5 years ago
Box<E>
)Published by simc about 5 years ago
Published by simc about 5 years ago
addAll()
from List<int>
to Iterable<int>
.TypeAdapters
for a specific box. E.g. box.registerTypeAdapter()
.getAt()
, putAt()
, deleteAt()
and keyAt()
no longer allow indices out of range.HiveObject
Box<E>
putAll()
, deleteAll()
, add()
, addAll()
values
parameter of addAll()
from List
to Iterable