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 815c7db8_373e_7ea5_26a5_2cba9cecca9b["seed.ts"] 66ee75f6_fac3_ebe4_5bdd_7defe2b64b92["shared.ts"] 815c7db8_373e_7ea5_26a5_2cba9cecca9b --> 66ee75f6_fac3_ebe4_5bdd_7defe2b64b92 f92f4288_d2a3_264d_4379_34b9b9c2c7f4["astro:db"] 815c7db8_373e_7ea5_26a5_2cba9cecca9b --> f92f4288_d2a3_264d_4379_34b9b9c2c7f4 7ee49e75_9304_6a82_afdf_4193e04c2e40["utils"] 815c7db8_373e_7ea5_26a5_2cba9cecca9b --> 7ee49e75_9304_6a82_afdf_4193e04c2e40 style 815c7db8_373e_7ea5_26a5_2cba9cecca9b 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/integrations/integration/seed.ts (domain: CoreAstro, directory: packages/db/test/fixtures/integrations/integration).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free