1
0
silverbullet/plugbox/core/lib/db.ts

10 lines
227 B
TypeScript
Raw Normal View History

2022-02-24 16:24:49 +00:00
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);
}