refactor: migrate to sqlite as database

This commit is contained in:
Meier Lukas
2023-12-09 00:32:45 +01:00
parent f6094c6ae2
commit 41e54d940b
13 changed files with 244 additions and 179 deletions

View File

@@ -1,10 +1,14 @@
import { db } from "@alparr/db";
import { Button, Stack, Title } from "@mantine/core";
export default function HomePage() {
export default async function HomePage() {
const users = await db.query.users.findMany();
return (
<Stack>
<Title>Home</Title>
<Button>Test</Button>
<pre>{JSON.stringify(users)}</pre>
</Stack>
);
}