Skip to content

Support bigint and UUID pagination identifiers - #782

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

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

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Details:

No release type found in pull request title "Support bigint and UUID pagination identifiers". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

@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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant