aboutsummaryrefslogtreecommitdiff
path: root/packages/db/test/fixtures/libsql-remote/db/seed.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/db/test/fixtures/libsql-remote/db/seed.ts')
-rw-r--r--packages/db/test/fixtures/libsql-remote/db/seed.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/db/test/fixtures/libsql-remote/db/seed.ts b/packages/db/test/fixtures/libsql-remote/db/seed.ts
new file mode 100644
index 000000000..7d9aa3292
--- /dev/null
+++ b/packages/db/test/fixtures/libsql-remote/db/seed.ts
@@ -0,0 +1,7 @@
+import { User, db } from 'astro:db';
+
+export default async function () {
+ await db.batch([
+ db.insert(User).values([{ id: 'mario', username: 'Mario', password: 'itsame' }]),
+ ]);
+}