0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/packages/db/test/fixtures/basics/db.seed.ts
2024-01-24 16:29:45 -06:00

21 lines
259 B
TypeScript

import { Author, db } from 'astro:db';
const authors: Array<typeof Author.$inferInsert> = [
{
name: 'Ben',
},
{
title: 'Nate',
},
{
title: 'Erika',
},
{
title: 'Bjorn',
},
{
title: 'Sarah',
},
];
await db.insert(Author).values(authors);