Skip to content

feat: Support bigint and UUID pagination identifiers - #782

Open
aXenDeveloper wants to merge 1 commit into
canaryfrom
feat/pagination-bigint-uuid-cursors
Open

feat: Support bigint and UUID pagination identifiers#782
aXenDeveloper wants to merge 1 commit into
canaryfrom
feat/pagination-bigint-uuid-cursors

Conversation

@aXenDeveloper

Copy link
Copy Markdown
Owner

Summary

  • allow primaryCursor to use integer, bigint, or UUID columns
  • preserve bigint precision by storing identifiers as decimal strings in opaque cursors
  • validate UUIDs and PostgreSQL bigint bounds before building SQL predicates
  • support mixed tuples such as a bigint order column with a UUID tiebreaker
  • document the supported identifier types and correct the pagination projection example

Verification

  • pnpm --filter @vitnode/core test — 6,164 tests passed
  • pnpm --filter @vitnode/core test:types — 315 type tests passed, no type errors
  • pnpm --filter @vitnode/core exec tsc -p tsconfig.json --noEmit
  • targeted ESLint checks passed

@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vitnode-prod Ready Ready Preview Sep 1, 2026 7:59pm UTC

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 853274ceb3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


```ts
import z from "zod";
import { getTableColumns } from "drizzle-orm";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the current Drizzle column helper

With the repository's pinned Drizzle v1 release, getTableColumns was renamed to getColumns; the live cron route already imports and calls getColumns in packages/vitnode/src/api/modules/admin/advanced/cron/routes/get.route.ts. Anyone copying this newly updated basic example will therefore get a missing-export error before reaching the pagination code, so replace both getTableColumns references with getColumns.

Useful? React with 👍 / 👎.

@aXenDeveloper aXenDeveloper changed the title Support bigint and UUID pagination identifiers feat: Support bigint and UUID pagination identifiers Sep 6, 2026
@github-actions github-actions Bot added the 💡 Feature A new feature label Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💡 Feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant