u
This commit is contained in:
26
src/db/modelvfs.js
Normal file
26
src/db/modelvfs.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function write(googleAuthId, input) {
|
||||
const store = await getStore();
|
||||
return store.modelvfs.write(googleAuthId, input);
|
||||
}
|
||||
|
||||
export async function read(googleAuthId, name) {
|
||||
const store = await getStore();
|
||||
return store.modelvfs.read(googleAuthId, name);
|
||||
}
|
||||
|
||||
export async function list(googleAuthId) {
|
||||
const store = await getStore();
|
||||
return store.modelvfs.list(googleAuthId);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, name) {
|
||||
const store = await getStore();
|
||||
return store.modelvfs.delete(googleAuthId, name);
|
||||
}
|
||||
|
||||
export async function reset(googleAuthId) {
|
||||
const store = await getStore();
|
||||
return store.modelvfs.reset(googleAuthId);
|
||||
}
|
||||
Reference in New Issue
Block a user