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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
255 B
TypeScript
Raw Normal View History

2024-01-08 15:31:05 -05:00
import { Author, db } from 'astro:db';
const authors: Array<typeof Author.$inferInsert> = [
{
name: 'Ben',
},
{
2024-01-08 18:02:42 -05:00
name: 'Nate',
2024-01-08 15:31:05 -05:00
},
{
2024-01-08 18:02:42 -05:00
name: 'Erika',
2024-01-08 15:31:05 -05:00
},
{
2024-01-08 18:02:42 -05:00
name: 'Bjorn',
2024-01-08 15:31:05 -05:00
},
{
2024-01-08 18:02:42 -05:00
name: 'Sarah',
2024-01-08 15:31:05 -05:00
},
];
await db.insert(Author).values(authors);