mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
21 lines
259 B
TypeScript
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);
|