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

getTableLikeFields() — drizzle-orm Function Reference

Architecture documentation for the getTableLikeFields() function in update.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  3238fc0a_15c3_86c0_b18e_e49c5f970a96["getTableLikeFields()"]
  40e4076c_05d5_c280_7940_f08e5d3868d9["GelUpdateBase"]
  3238fc0a_15c3_86c0_b18e_e49c5f970a96 -->|defined in| 40e4076c_05d5_c280_7940_f08e5d3868d9
  e4cd8719_9e69_dac2_e0b4_723ac029103b["createJoin()"]
  e4cd8719_9e69_dac2_e0b4_723ac029103b -->|calls| 3238fc0a_15c3_86c0_b18e_e49c5f970a96
  889e5450_39ed_97c7_0946_a02bfedddecf["returning()"]
  889e5450_39ed_97c7_0946_a02bfedddecf -->|calls| 3238fc0a_15c3_86c0_b18e_e49c5f970a96
  style 3238fc0a_15c3_86c0_b18e_e49c5f970a96 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/gel-core/query-builders/update.ts lines 356–363

	private getTableLikeFields(table: GelTable | Subquery | GelViewBase): Record<string, unknown> {
		if (is(table, GelTable)) {
			return table[Table.Symbol.Columns];
		} else if (is(table, Subquery)) {
			return table._.selectedFields;
		}
		return table[ViewBaseConfig].selectedFields;
	}

Domain

Subdomains

Frequently Asked Questions

What does getTableLikeFields() do?
getTableLikeFields() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/query-builders/update.ts.
Where is getTableLikeFields() defined?
getTableLikeFields() is defined in drizzle-orm/src/gel-core/query-builders/update.ts at line 356.
What calls getTableLikeFields()?
getTableLikeFields() is called by 2 function(s): createJoin, returning.

Analyze Your Own Codebase

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

Try Supermodel Free