base mysql db added

This commit is contained in:
2026-02-07 14:02:03 -05:00
parent ee9c26265d
commit ccf61afb73
5 changed files with 856 additions and 3 deletions

14
src/pages/test.astro Normal file
View File

@@ -0,0 +1,14 @@
---
// src/pages/users.astro
import { db } from '../db/index';
import { users } from '../db/schema';
const allUsers = await db.select().from(users);
---
<h1>User List</h1>
<ul>
{allUsers.map((user) => (
<li>{user.name} ({user.email})</li>
))}
</ul>