0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/packages/db/test/fixtures/db-in-src/pages/index.astro
Emanuele Stoppa 347bdfe550 [ci] format
2024-04-17 08:38:53 +00:00

11 lines
234 B
Text

---
/// <reference path="../.astro/db-types.d.ts" />
import { User, db } from 'astro:db';
const users = await db.select().from(User);
---
<h2>Users</h2>
<ul class="users-list">
{users.map((user) => <li>{user.username}</li>)}
</ul>