From f0f2ab138d65242133baf67dfe7e2e02e08a6cf3 Mon Sep 17 00:00:00 2001 From: Tau Date: Sun, 28 Apr 2019 21:42:46 -0400 Subject: [PATCH] idz: Begin db backend stub --- src/idz/db/index.ts | 5 +++++ src/idz/index.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/idz/db/index.ts 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");