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

render() — drizzle-orm Function Reference

Architecture documentation for the render() function in selector-ui.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  a6191ddf_c119_718d_8adb_1cf1f8e385b3["render()"]
  9934e2c6_9f05_2845_f34b_12d10c0c69f6["Select"]
  a6191ddf_c119_718d_8adb_1cf1f8e385b3 -->|defined in| 9934e2c6_9f05_2845_f34b_12d10c0c69f6
  d906c913_0bfa_0d4d_e180_62a6d24c7d6e["logSuggestionsAndReturn()"]
  d906c913_0bfa_0d4d_e180_62a6d24c7d6e -->|calls| a6191ddf_c119_718d_8adb_1cf1f8e385b3
  99a768a1_158f_61ad_5701_374c946e2765["pgSuggestions()"]
  99a768a1_158f_61ad_5701_374c946e2765 -->|calls| a6191ddf_c119_718d_8adb_1cf1f8e385b3
  8ee7c845_c3a4_fbc5_6447_aab21a1f9ef1["mysqlPush()"]
  8ee7c845_c3a4_fbc5_6447_aab21a1f9ef1 -->|calls| a6191ddf_c119_718d_8adb_1cf1f8e385b3
  7a06eeb3_bb02_056b_baf7_97590f690573["singlestorePush()"]
  7a06eeb3_bb02_056b_baf7_97590f690573 -->|calls| a6191ddf_c119_718d_8adb_1cf1f8e385b3
  5f1dc8e1_c9ac_354c_77c5_286782036654["pgPush()"]
  5f1dc8e1_c9ac_354c_77c5_286782036654 -->|calls| a6191ddf_c119_718d_8adb_1cf1f8e385b3
  d5e531dd_96a9_6b7d_4539_09bbbce0b9f5["sqlitePush()"]
  d5e531dd_96a9_6b7d_4539_09bbbce0b9f5 -->|calls| a6191ddf_c119_718d_8adb_1cf1f8e385b3
  282ad536_6bf2_f2d6_69aa_6c9e64464e83["libSQLPush()"]
  282ad536_6bf2_f2d6_69aa_6c9e64464e83 -->|calls| a6191ddf_c119_718d_8adb_1cf1f8e385b3
  f32c8b45_d102_ae2f_22ae_08f69039bd00["logSuggestionsAndReturn()"]
  f32c8b45_d102_ae2f_22ae_08f69039bd00 -->|calls| a6191ddf_c119_718d_8adb_1cf1f8e385b3
  style a6191ddf_c119_718d_8adb_1cf1f8e385b3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/cli/selector-ui.ts lines 18–30

	render(status: 'idle' | 'submitted' | 'aborted'): string {
		if (status === 'submitted' || status === 'aborted') return '';

		let text = ``;
		this.data.items.forEach((it, idx) => {
			text += idx === this.data.selectedIdx
				? `${chalk.green('❯ ' + it.label)}`
				: `  ${it.label}`;
			text += idx != this.data.items.length - 1 ? '\n' : '';
		});

		return text;
	}

Domain

Subdomains

Frequently Asked Questions

What does render() do?
render() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/selector-ui.ts.
Where is render() defined?
render() is defined in drizzle-kit/src/cli/selector-ui.ts at line 18.
What calls render()?
render() is called by 8 function(s): libSQLPush, logSuggestionsAndReturn, logSuggestionsAndReturn, mysqlPush, pgPush, pgSuggestions, singlestorePush, sqlitePush.

Analyze Your Own Codebase

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

Try Supermodel Free