Skip to content

feat(database): foundation — schema builder, plugin skeleton, connectors#354

Draft
ditadi wants to merge 20 commits intomainfrom
stack/database/foundation
Draft

feat(database): foundation — schema builder, plugin skeleton, connectors#354
ditadi wants to merge 20 commits intomainfrom
stack/database/foundation

Conversation

@ditadi
Copy link
Copy Markdown
Contributor

@ditadi ditadi commented May 6, 2026

🥞 Stacked PR

Use this link to review incremental changes.


Overview

This is the first PR in the database plugin stack. It adds the foundation needed by the later server, CLI, frontend, and RLS layers, without introducing the full end-user workflow yet.

What changed

  • Adds the beta database plugin skeleton, manifest, defaults, convention loader, and package exports.
  • Adds defineSchema() plus typed column helpers for declaring AppKit-managed database schemas.
  • Adds column metadata used by runtime validation, type generation, drift detection, and docs.
  • Adds column.private() metadata so later layers can hide sensitive columns from default reads, routes, and generated UI.
  • Adds Lakebase/PostgREST connector primitives and safer pool/shutdown behavior (statement_timeout, async drain, schema-load isolation, pool stats).

Review guidance

Start here before reviewing the rest of the stack. The main contract to validate is the schema-builder API and metadata shape, because downstream PRs consume it for route generation, introspection, browser types, and UI metadata.

Test plan

  • Schema builder and column helper tests
  • Plugin skeleton/config tests
  • Pool drain and shutdown tests
  • Full stack verification run locally before push

ditadi added 15 commits May 5, 2026 14:01
Signed-off-by: ditadi <victordperd@gmail.com>
Signed-off-by: ditadi <victordperd@gmail.com>
Signed-off-by: ditadi <victordperd@gmail.com>
Signed-off-by: ditadi <victordperd@gmail.com>
Signed-off-by: ditadi <victordperd@gmail.com>
…; add private-column helpers

Signed-off-by: ditadi <victordperd@gmail.com>
…tabase/postgrest-js dep

Signed-off-by: ditadi <victordperd@gmail.com>
…eaked exports

Signed-off-by: ditadi <victordperd@gmail.com>
…ma-load failure

Signed-off-by: ditadi <victordperd@gmail.com>
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