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

paginated() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  da1116b4_16c0_dbcf_fe35_e6924fe5dd32["paginated()"]
  e0590ec9_eee4_a25d_2bbf_54c94ac5420f["select.ts"]
  da1116b4_16c0_dbcf_fe35_e6924fe5dd32 -->|defined in| e0590ec9_eee4_a25d_2bbf_54c94ac5420f
  style da1116b4_16c0_dbcf_fe35_e6924fe5dd32 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/pg/select.ts lines 1083–1085

	function paginated<T extends PgSelect>(qb: T, page: number) {
		return qb.limit(10).offset((page - 1) * 10);
	}

Domain

Subdomains

Frequently Asked Questions

What does paginated() do?
paginated() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/pg/select.ts.
Where is paginated() defined?
paginated() is defined in drizzle-orm/type-tests/pg/select.ts at line 1083.

Analyze Your Own Codebase

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

Try Supermodel Free