1
0
silverbullet/plugbox/core/lib/db.ts
2022-03-04 10:26:41 +01:00

10 lines
227 B
TypeScript

import {syscall} from "./syscall.ts";
export async function put(key: string, value: any) {
return await syscall("db.put", key, value);
}
export async function get(key: string) {
return await syscall("db.get", key);
}