mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-12-22 03:00:50 +08:00
Save diagram to IndexedDb
This commit is contained in:
9
src/data/db.js
Normal file
9
src/data/db.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import Dexie from "dexie";
|
||||
|
||||
const db = new Dexie("diagrams");
|
||||
|
||||
db.version(1).stores({
|
||||
diagrams: "++id",
|
||||
});
|
||||
|
||||
export { db };
|
||||
Reference in New Issue
Block a user