Home / Function/ upSqliteHandler() — drizzle-orm Function Reference

upSqliteHandler() — drizzle-orm Function Reference

Architecture documentation for the upSqliteHandler() function in sqliteUp.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  a951e55e_c8d5_0591_7052_c26b83bfd3f2["upSqliteHandler()"]
  94965299_9f07_b2e2_0976_2d31bbc17f1a["sqliteUp.ts"]
  a951e55e_c8d5_0591_7052_c26b83bfd3f2 -->|defined in| 94965299_9f07_b2e2_0976_2d31bbc17f1a
  4a6e097c_99b9_068e_9f2a_61b0ea3326d0["up.handler()"]
  4a6e097c_99b9_068e_9f2a_61b0ea3326d0 -->|calls| a951e55e_c8d5_0591_7052_c26b83bfd3f2
  4c83c7fc_df93_8e5a_e2db_46ec9d96b601["updateUpToV6()"]
  a951e55e_c8d5_0591_7052_c26b83bfd3f2 -->|calls| 4c83c7fc_df93_8e5a_e2db_46ec9d96b601
  style a951e55e_c8d5_0591_7052_c26b83bfd3f2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/cli/commands/sqliteUp.ts lines 7–26

export const upSqliteHandler = (out: string) => {
	const { snapshots } = prepareOutFolder(out, 'sqlite');
	const report = validateWithReport(snapshots, 'sqlite');

	report.nonLatest
		.map((it) => ({
			path: it,
			raw: report.rawMap[it]!! as Record<string, any>,
		}))
		.forEach((it) => {
			const path = it.path;
			const result = updateUpToV6(it.raw);

			console.log(`[${chalk.green('✓')}] ${path}`);

			writeFileSync(path, JSON.stringify(result, null, 2));
		});

	console.log("Everything's fine 🐶🔥");
};

Domain

Subdomains

Called By

Frequently Asked Questions

What does upSqliteHandler() do?
upSqliteHandler() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/commands/sqliteUp.ts.
Where is upSqliteHandler() defined?
upSqliteHandler() is defined in drizzle-kit/src/cli/commands/sqliteUp.ts at line 7.
What does upSqliteHandler() call?
upSqliteHandler() calls 1 function(s): updateUpToV6.
What calls upSqliteHandler()?
upSqliteHandler() is called by 1 function(s): up.handler.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free