![]() Optional: Give it a type.įinal catsBox = collection.openBox('cats') Īwait catsBox.put('fluffy', ) īoxNames:, // By default all boxes become blocked. Key: HiveCipher(), // Key to encrypt your boxes (Only used in Flutter / Dart IO) ![]() Path: './', // Path where to store your boxes (Only used in Flutter / Dart IO) 'MyFirstFluffyBox', // Name of your database Create a box collectionįinal collection = await BoxCollection.open( OnlyīoxCollections might be useful for some box hierarchy and development experience. On dart:io platforms, there is no performance gain by BoxCollections or Transactions. They support opening and closing all boxes of a collectionĪt once and more efficiently store data in indexed DB on web.Īside, they also expose Transactions which can be used to speed up tremendous numbers of database var box = Hive.box('myBox') īoxCollections are a set of boxes which can be similarly used as normal boxes, except of that □ Cross platform: mobile, desktop, browserĬheck out the Quick Start documentation to get started.If you need queries, multi-isolate support or links between objects check out Isar Database. Hive is a lightweight and blazing fast key-value database written in pure Dart.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |