seed.ts — astro Source File
Architecture documentation for seed.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 48250f2e_bb33_03b7_2fc4_9dedb49db649["seed.ts"] f92f4288_d2a3_264d_4379_34b9b9c2c7f4["astro:db"] 48250f2e_bb33_03b7_2fc4_9dedb49db649 --> f92f4288_d2a3_264d_4379_34b9b9c2c7f4 style 48250f2e_bb33_03b7_2fc4_9dedb49db649 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { db, Likes, Comment } from "astro:db";
// https://astro.build/db/seed
export default async function seed() {
await db.insert(Likes).values({
postId: "first-post",
likes: 10,
});
await db.insert(Comment).values({
postId: "first-post",
author: "Alice",
body: "Great post!",
});
}
Domain
Subdomains
Functions
Dependencies
- astro:db
Source
Frequently Asked Questions
What does seed.ts do?
seed.ts is a source file in the astro codebase, written in typescript. It belongs to the E2ETesting domain, TestFixtures subdomain.
What functions are defined in seed.ts?
seed.ts defines 1 function(s): seed.
What does seed.ts depend on?
seed.ts imports 1 module(s): astro:db.
Where is seed.ts in the architecture?
seed.ts is located at packages/astro/e2e/fixtures/actions-react-19/db/seed.ts (domain: E2ETesting, subdomain: TestFixtures, directory: packages/astro/e2e/fixtures/actions-react-19/db).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free