mirror of
https://github.com/djhackersdev/minime.git
synced 2026-07-11 07:03:48 -05:00
idz: Begin db backend stub
This commit is contained in:
parent
98c9f9106d
commit
f0f2ab138d
5
src/idz/db/index.ts
Normal file
5
src/idz/db/index.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { Transaction } from "../repo";
|
||||
|
||||
export async function beginDbSession(): Promise<Transaction> {
|
||||
throw new Error("WIP");
|
||||
}
|
||||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user