refactor: migrate to sqlite as database
This commit is contained in:
1 parent
f6094c6ae2
commit
41e54d940b
13 files changed
+244
-179
No files matched your search
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user