aboutsummaryrefslogtreecommitdiff
path: root/packages/db/test/fixtures/static-remote/src/pages/index.astro
blob: 849e65d18fd73055657dc71b8acc9eb15ae57d4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
import { User, db } from 'astro:db';

const users = await db.select().from(User);
---

<html>
	<head>
		<title>Testing</title>
	</head>
	<body>
		<h1>Testing</h1>

		<h2>Users</h2>
		<ul>
			{users.map((user) => <li>{user.name}</li>)}
		</ul>
	</body>
</html>