diff --git a/src/idz/db/index.ts b/src/idz/db/index.ts new file mode 100644 index 0000000..e95578f --- /dev/null +++ b/src/idz/db/index.ts @@ -0,0 +1,5 @@ +import { Transaction } from "../repo"; + +export async function beginDbSession(): Promise { + throw new Error("WIP"); +} diff --git a/src/idz/index.ts b/src/idz/index.ts index a6e2e91..e4a2ebb 100644 --- a/src/idz/index.ts +++ b/src/idz/index.ts @@ -1,11 +1,11 @@ import { Socket } from "net"; -import { beginFilesystemSession } from "./file"; +import { beginDbSession } from "./db"; import { dispatch } from "./handler"; import { setup } from "./setup"; export default async function idz(socket: Socket) { - const world = await beginFilesystemSession("./state"); + const world = await beginDbSession(); const { input, output } = setup(socket); console.log("Idz: Connection opened");