isar / isar/hive

hive database backup and restore error

Open
#524 1 comment 0 reactions 0 assignees View on GitHub
question
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.