Skip to content

docs: plan external db#130

Merged
tianzhou merged 3 commits intomainfrom
plan-db
Oct 30, 2025
Merged

docs: plan external db#130
tianzhou merged 3 commits intomainfrom
plan-db

Conversation

@tianzhou
Copy link
Contributor

No description provided.

tianzhou and others added 3 commits October 30, 2025 16:15
Update documentation to reflect the new external database option for
plan generation:

- .env.example: Add PGSCHEMA_PLAN_* environment variables with usage
  examples and explanations
- CLAUDE.md: Document the external database feature in architecture,
  environment variables, and key patterns sections

The external database feature allows users to provide their own
PostgreSQL database instead of using embedded postgres, which is
useful for environments where embedded postgres has limitations
(e.g., ARM architectures, containerized environments).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Create detailed documentation for the external plan database feature
covering:

- Overview and when to use external database vs embedded
- Configuration options (CLI flags and environment variables)
- Real-world examples:
  - Docker Compose setup
  - GitHub Actions CI/CD pipeline
  - Kubernetes deployment
- Version compatibility requirements
- Database permissions needed
- Best practices (dedicated database, cleanup, monitoring, pooling)
- Troubleshooting common issues
- Comparison table: embedded vs external database

The documentation provides production-ready examples for containerized
environments, CI/CD pipelines, and Kubernetes deployments where the
external database feature is most valuable.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
….mdx

- Add "Common Use Cases" section with practical examples for:
  - Using PostgreSQL extensions (issue #121)
  - Handling cross-schema foreign keys (issue #122)
- Update plan.mdx to reference external plan database feature:
  - Add explanation to Overview section
  - Add "Plan Database Options" section with link
  - Add example showing external database usage
- Streamline plan-db.mdx by focusing on main use cases
- Update docs.json navigation to include plan-db page

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings October 30, 2025 08:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds documentation for the External Plan Database feature, which allows users to specify an external PostgreSQL database instead of using the embedded PostgreSQL instance when generating migration plans. This is useful for schemas requiring PostgreSQL extensions or cross-schema foreign key references.

Key changes:

  • New documentation page explaining the External Plan Database feature with usage examples and configuration options
  • Updated plan command documentation to reference the new external database option
  • Added environment variable documentation for plan database configuration

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/docs.json Added cli/plan-db to the Configuration group in navigation
docs/cli/plan.mdx Updated overview to mention external database option and added reference section
docs/cli/plan-db.mdx New comprehensive documentation for External Plan Database feature
CLAUDE.md Updated architecture documentation to explain external database support
.env.example Added plan database environment variable examples with explanatory comments

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tianzhou tianzhou merged commit 6b34234 into main Oct 30, 2025
8 checks passed
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.

2 participants