1
0
silverbullet/plugins/core/lib/db.ts
2022-02-24 17:24:49 +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);
}