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>