prepareSingleStoreDbPushSnapshot() — drizzle-orm Function Reference
Architecture documentation for the prepareSingleStoreDbPushSnapshot() function in migrationPreparator.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 5b294717_9aa4_14a5_dd68_0e739883eebf["prepareSingleStoreDbPushSnapshot()"] 4078709f_3fc0_5514_7728_8f28a7b0e807["migrationPreparator.ts"] 5b294717_9aa4_14a5_dd68_0e739883eebf -->|defined in| 4078709f_3fc0_5514_7728_8f28a7b0e807 ca8ecd27_def2_e49f_f750_e3e6c8f46de5["prepareSingleStorePush()"] ca8ecd27_def2_e49f_f750_e3e6c8f46de5 -->|calls| 5b294717_9aa4_14a5_dd68_0e739883eebf 89b7ba7c_6d44_6830_1256_8740e8b6838e["serializeSingleStore()"] 5b294717_9aa4_14a5_dd68_0e739883eebf -->|calls| 89b7ba7c_6d44_6830_1256_8740e8b6838e style 5b294717_9aa4_14a5_dd68_0e739883eebf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/migrationPreparator.ts lines 26–40
export const prepareSingleStoreDbPushSnapshot = async (
prev: SingleStoreSchema,
schemaPath: string | string[],
casing: CasingType | undefined,
): Promise<{ prev: SingleStoreSchema; cur: SingleStoreSchema }> => {
const serialized = await serializeSingleStore(schemaPath, casing);
const id = randomUUID();
const idPrev = prev.id;
const { version, dialect, ...rest } = serialized;
const result: SingleStoreSchema = { version, dialect, id, prevId: idPrev, ...rest };
return { prev, cur: result };
};
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does prepareSingleStoreDbPushSnapshot() do?
prepareSingleStoreDbPushSnapshot() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/migrationPreparator.ts.
Where is prepareSingleStoreDbPushSnapshot() defined?
prepareSingleStoreDbPushSnapshot() is defined in drizzle-kit/src/migrationPreparator.ts at line 26.
What does prepareSingleStoreDbPushSnapshot() call?
prepareSingleStoreDbPushSnapshot() calls 1 function(s): serializeSingleStore.
What calls prepareSingleStoreDbPushSnapshot()?
prepareSingleStoreDbPushSnapshot() is called by 1 function(s): prepareSingleStorePush.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free