aboutsummaryrefslogtreecommitdiff
path: root/packages/db/test/fixtures/static-remote/src/pages/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'packages/db/test/fixtures/static-remote/src/pages/index.astro')
-rw-r--r--packages/db/test/fixtures/static-remote/src/pages/index.astro19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/db/test/fixtures/static-remote/src/pages/index.astro b/packages/db/test/fixtures/static-remote/src/pages/index.astro
new file mode 100644
index 000000000..849e65d18
--- /dev/null
+++ b/packages/db/test/fixtures/static-remote/src/pages/index.astro
@@ -0,0 +1,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>