You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is unfortunately no way to rename a store. You have to copy/delete all the records using something like:
// old storevar store1 = intMapStoreFactory.store('store1');
// new storevar store2 = intMapStoreFactory.store('store2');
await db.transaction((txn) async {
/// Read all records from store1 and write them to store2var records =await store1.find(txn);
for (var record in records) {
await store2.record(record.key).put(txn, record.value);
// Delete existing recordawait store1.record(record.key).delete(txn);
}
});
No description provided.
The text was updated successfully, but these errors were encountered: