hive database backup and restore error
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
**Question**
currently am doing a project so am using hive database as a local database, when i every i replace hive db files on app,
its does't working,i need to instantly update the hive db in app,but its not working
**Code sample**
```dart
Future hive_Call()
async{
Directory hiveDirectory = await p.getExternalStorageDirectory();
print(hiveDirectory.path);
await Hive.registerAdapter(AllTranscatonsAdapter());
await Hive.registerAdapter(IndividualUserAccountDetailsAdapter());
await Hive.registerAdapter(ParticularUserTranscationHistoryAdapter());
await Hive.registerAdapter(TransctionDetailAdapter());
await Hive.registerAdapter(UsersAccountDBAdapter());
await Hive.init(hiveDirectory.path);
await Hive.openBox('users');
await Hive.openBox('transcations');
}
```
**Version**
- Platform: iOS, Android, Mac, Windows, Linux, Web
- Flutter version: [e.g. 1.5.4]
- Hive version: [e.g. 0.5.0]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.