feat(database): brownfield support — introspector, drift detection, db CLI#356
Draft
ditadi wants to merge 9 commits intostack/database/serverfrom
Draft
feat(database): brownfield support — introspector, drift detection, db CLI#356ditadi wants to merge 9 commits intostack/database/serverfrom
ditadi wants to merge 9 commits intostack/database/serverfrom
Conversation
…e, drift help dedup
This was referenced May 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🥞 Stacked PR
Use this link to review incremental changes.
Brownfield support for existing Lakebase/Postgres schemas. This layer lets AppKit inspect a live database, render schema files, detect drift, and manage migrations from the CLI.
Introspection + rendering
Adds the introspector engine, Drizzle adapter, schema-to-introspection bridge, SQL rendering, type mapping, and roundtrip tests.
Drift detection
Adds boot-time drift detection with fatal/warn classifications, production fail-closed behavior for unsafe drift, live-only warnings, healthz saturation, and pg-to-http error mapping.
Database CLI
Adds
appkit db introspect,generate,migrate,verify,setup:dev,seed, and migration helpers.Test plan
Signed-off-by: Victor Ditadi victor.ditadi@databricks.com
PR Stack
appkit db initonboarding — feat(cli): appkit db init — one-command lakebase onboarding #357