mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
11 lines
234 B
Text
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>
|