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

point() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  68f4cee9_8331_2936_3879_0cd59b17394a["point()"]
  58c078fc_6d1a_a3c6_17ef_66abfc1c74f5["point.ts"]
  68f4cee9_8331_2936_3879_0cd59b17394a -->|defined in| 58c078fc_6d1a_a3c6_17ef_66abfc1c74f5
  style 68f4cee9_8331_2936_3879_0cd59b17394a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/point.ts lines 121–127

export function point(a?: string | PgPointConfig, b?: PgPointConfig) {
	const { name, config } = getColumnNameAndConfig<PgPointConfig>(a, b);
	if (!config?.mode || config.mode === 'tuple') {
		return new PgPointTupleBuilder(name);
	}
	return new PgPointObjectBuilder(name);
}

Domain

Subdomains

Frequently Asked Questions

What does point() do?
point() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/point.ts.
Where is point() defined?
point() is defined in drizzle-orm/src/pg-core/columns/point.ts at line 121.

Analyze Your Own Codebase

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

Try Supermodel Free