Skip to content

Add storage size parameters to create database and branch requests#303

Merged
nholden merged 1 commit intomainfrom
nick/storage-config
Apr 7, 2026
Merged

Add storage size parameters to create database and branch requests#303
nholden merged 1 commit intomainfrom
nick/storage-config

Conversation

@nholden
Copy link
Copy Markdown
Member

@nholden nholden commented Apr 7, 2026

Summary

Adds support for configuring storage size (minimum and maximum bytes) when creating databases and PostgreSQL branches. This is the SDK layer needed to expose storage configuration in the CLI.

API PRs:

  • planetscale/api-bb#18339 — create database storage support
  • planetscale/api-bb#18389 — create branch storage support

Issue: planetscale/surfaces#3485 — users running automated import workflows had to create a database with default minimum storage and immediately resize, often hitting storage limits before the resize could take effect.

Test plan

  • TestDatabases_CreateWithStorage
  • TestPostgresBranches_CreateWithStorage

🤖 Generated with Claude Code

Add StorageConfig struct and optional Storage field to
CreateDatabaseRequest and CreatePostgresBranchRequest, allowing
callers to configure minimum and maximum storage bytes when creating
databases and PostgreSQL branches.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nholden nholden marked this pull request as ready for review April 7, 2026 17:45
@nholden nholden requested a review from a team as a code owner April 7, 2026 17:45
@nholden nholden self-assigned this Apr 7, 2026
@nholden nholden merged commit 176ed45 into main Apr 7, 2026
5 checks passed
@nholden nholden deleted the nick/storage-config branch April 7, 2026 17:50
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