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

convert() — drizzle-orm Function Reference

Architecture documentation for the convert() function in sqlgenerator.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  394d4293_720d_e051_2c8a_7dc36052aeca["convert()"]
  bf924457_5327_1543_49ff_0fe826dbde7f["SqliteAlterTableAlterColumnDropDefaultConvertor"]
  394d4293_720d_e051_2c8a_7dc36052aeca -->|defined in| bf924457_5327_1543_49ff_0fe826dbde7f
  style 394d4293_720d_e051_2c8a_7dc36052aeca fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/sqlgenerator.ts lines 3061–3070

	convert(statement: JsonAlterColumnDropDefaultStatement) {
		return (
			'/*\n SQLite does not support "Drop default from column" out of the box, we do not generate automatic migration for that, so it has to be done manually'
			+ '\n Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php'
			+ '\n                  https://www.sqlite.org/lang_altertable.html'
			+ '\n                  https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3'
			+ "\n\n Due to that we don't generate migration automatically and it has to be done manually"
			+ '\n*/'
		);
	}

Domain

Subdomains

Frequently Asked Questions

What does convert() do?
convert() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/sqlgenerator.ts.
Where is convert() defined?
convert() is defined in drizzle-kit/src/sqlgenerator.ts at line 3061.

Analyze Your Own Codebase

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

Try Supermodel Free