[PR #9149] docs: add subsection for advanced database configuration options #25368

Open
opened 2026-04-15 22:51:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/9149
Author: @peyremorgan
Created: 4/13/2026
Status: 🔄 Open

Base: mainHead: doc/database-advanced-options


📝 Commits (1)

  • cee0e88 docs(database): document custom strategies for ID generation and findMany queries

📊 Changes

1 file changed (+30 additions, -0 deletions)

View changed files

📝 docs/content/docs/reference/options.mdx (+30 -0)

📄 Description

Add a subsection to the options reference to document the advanced.database config options.

Fixes #9148


Summary by cubic

Adds advanced database configuration to the options reference for ID generation and findMany limits. Explains generateId (false/"serial" use DB auto-IDs, "uuid" uses native UUID with fallback, custom function receives { model, size }, default random base‑62) and defaultFindManyLimit (default 100), with a small example.

Written for commit cee0e88be8. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/9149 **Author:** [@peyremorgan](https://github.com/peyremorgan) **Created:** 4/13/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `doc/database-advanced-options` --- ### 📝 Commits (1) - [`cee0e88`](https://github.com/better-auth/better-auth/commit/cee0e88be8b6a0490175242c06ec2bce3ea9fe40) docs(database): document custom strategies for ID generation and findMany queries ### 📊 Changes **1 file changed** (+30 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/reference/options.mdx` (+30 -0) </details> ### 📄 Description Add a subsection to the options reference to document the `advanced.database` config options. Fixes #9148 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds advanced `database` configuration to the options reference for ID generation and `findMany` limits. Explains `generateId` (`false`/`"serial"` use DB auto-IDs, `"uuid"` uses native UUID with fallback, custom function receives `{ model, size }`, default random base‑62) and `defaultFindManyLimit` (default `100`), with a small example. <sup>Written for commit cee0e88be8b6a0490175242c06ec2bce3ea9fe40. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:51:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25368