pushSchema() — astro Function Reference
Architecture documentation for the pushSchema() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 87af403c_099b_77aa_edce_f10307a1f2a4["pushSchema()"] d792b779_355c_47a7_c602_04c8b8882820["index.ts"] 87af403c_099b_77aa_edce_f10307a1f2a4 -->|defined in| d792b779_355c_47a7_c602_04c8b8882820 5b9ae329_75d0_aca2_14b6_dde81b7fd73b["cmd()"] 5b9ae329_75d0_aca2_14b6_dde81b7fd73b -->|calls| 87af403c_099b_77aa_edce_f10307a1f2a4 fd485177_700f_c3cc_9169_090bb47ed166["pushToDb()"] 87af403c_099b_77aa_edce_f10307a1f2a4 -->|calls| fd485177_700f_c3cc_9169_090bb47ed166 style 87af403c_099b_77aa_edce_f10307a1f2a4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/db/src/core/cli/commands/push/index.ts lines 83–107
async function pushSchema({
statements,
dbInfo,
appToken,
isDryRun,
currentSnapshot,
}: {
statements: string[];
dbInfo: RemoteDatabaseInfo;
appToken: string;
isDryRun: boolean;
currentSnapshot: DBSnapshot;
}) {
const requestBody: RequestBody = {
snapshot: currentSnapshot,
sql: statements,
version: MIGRATION_VERSION,
};
if (isDryRun) {
console.info('[DRY RUN] Batch query:', JSON.stringify(requestBody, null, 2));
return new Response(null, { status: 200 });
}
return pushToDb(requestBody, appToken, dbInfo.url);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does pushSchema() do?
pushSchema() is a function in the astro codebase, defined in packages/db/src/core/cli/commands/push/index.ts.
Where is pushSchema() defined?
pushSchema() is defined in packages/db/src/core/cli/commands/push/index.ts at line 83.
What does pushSchema() call?
pushSchema() calls 1 function(s): pushToDb.
What calls pushSchema()?
pushSchema() is called by 1 function(s): cmd.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free