feat: Prisma instead of drizzle

This commit is contained in:
2024-10-01 19:10:05 +07:00
parent 7921bdf97f
commit 62a1da5e4b
8 changed files with 58 additions and 36 deletions

View File

@@ -3,7 +3,7 @@ const dotenv = dotenvLoad();
import { Elysia } from "elysia";
import { swagger } from "@elysiajs/swagger";
import { db } from "@minikura/db";
import { prisma } from "@minikura/db";
const app = new Elysia()
.use(swagger())
@@ -13,7 +13,7 @@ const app = new Elysia()
.get("/hello", "Do you miss me?")
.listen(3000, async () => {
console.log("Server is running on port 3000");
const result = await db.query.server.findMany();
const result = await prisma.server.findMany();
console.log(result);
});