0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-27 22:19:04 -05:00
astro/packages/db/test/fixtures/db-in-src/pages/index.astro

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
234 B
Text
Raw Normal View History

---
/// <reference path="../.astro/db-types.d.ts" />
2024-04-17 08:38:53 +00:00
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>