2024-02-09 04:00:45 +08:00
|
|
|
import type { SysCallMapping } from "../../lib/plugos/system.ts";
|
2023-10-03 20:16:33 +08:00
|
|
|
import type { Client } from "../client.ts";
|
2024-01-27 00:05:10 +08:00
|
|
|
import { proxySyscalls } from "./util.ts";
|
2023-10-03 20:16:33 +08:00
|
|
|
|
|
|
|
export function dataStoreProxySyscalls(client: Client): SysCallMapping {
|
2024-01-15 23:43:12 +08:00
|
|
|
return proxySyscalls(client, [
|
2023-10-03 20:16:33 +08:00
|
|
|
"datastore.delete",
|
|
|
|
"datastore.set",
|
|
|
|
"datastore.batchSet",
|
|
|
|
"datastore.batchDelete",
|
|
|
|
"datastore.batchGet",
|
2024-01-15 23:43:12 +08:00
|
|
|
"datastore.query",
|
2023-10-03 20:16:33 +08:00
|
|
|
"datastore.get",
|
2024-02-03 02:19:07 +08:00
|
|
|
"datastore.listFunctions",
|
2023-10-03 20:16:33 +08:00
|
|
|
]);
|
|
|
|
}
|