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
  8e14fb93_4983_14f8_8416_b6cffe500132["paginated()"]
  eac5037d_76b6_ca59_e2c2_e7a440dd574a["select.ts"]
  8e14fb93_4983_14f8_8416_b6cffe500132 -->|defined in| eac5037d_76b6_ca59_e2c2_e7a440dd574a
  style 8e14fb93_4983_14f8_8416_b6cffe500132 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/mysql/select.ts lines 690–692

	function paginated<T extends MySqlSelect>(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/mysql/select.ts.
Where is paginated() defined?
paginated() is defined in drizzle-orm/type-tests/mysql/select.ts at line 690.

Analyze Your Own Codebase

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

Try Supermodel Free