seed.ts — astro Source File
Architecture documentation for seed.ts, a typescript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 796cb89b_bac5_00c7_c1c9_2a08887ca0ff["seed.ts"] f00d274d_3e76_0f9a_85c3_5fce8c4373ba["shared.ts"] 796cb89b_bac5_00c7_c1c9_2a08887ca0ff --> f00d274d_3e76_0f9a_85c3_5fce8c4373ba f92f4288_d2a3_264d_4379_34b9b9c2c7f4["astro:db"] 796cb89b_bac5_00c7_c1c9_2a08887ca0ff --> f92f4288_d2a3_264d_4379_34b9b9c2c7f4 7ee49e75_9304_6a82_afdf_4193e04c2e40["utils"] 796cb89b_bac5_00c7_c1c9_2a08887ca0ff --> 7ee49e75_9304_6a82_afdf_4193e04c2e40 style 796cb89b_bac5_00c7_c1c9_2a08887ca0ff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { db } from 'astro:db';
import { asDrizzleTable } from '@astrojs/db/utils';
import { menu } from './shared';
export default async function () {
const table = asDrizzleTable('menu', menu);
await db.insert(table).values([
{ name: 'Pancakes', price: 9.5, type: 'Breakfast' },
{ name: 'French Toast', price: 11.25, type: 'Breakfast' },
{ name: 'Coffee', price: 3, type: 'Beverages' },
{ name: 'Cappuccino', price: 4.5, type: 'Beverages' },
]);
}
Domain
Dependencies
- astro:db
- shared.ts
- utils
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 CoreAstro domain.
What does seed.ts depend on?
seed.ts imports 3 module(s): astro:db, shared.ts, utils.
Where is seed.ts in the architecture?
seed.ts is located at packages/db/test/fixtures/integration-only/integration/seed.ts (domain: CoreAstro, directory: packages/db/test/fixtures/integration-only/integration).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free