Skip to content

feat(transform): add bundle transpile/apply drivers - #317

Closed
pyramation wants to merge 1 commit into
mainfrom
feat/transform-bundle-driver
Closed

feat(transform): add bundle transpile/apply drivers#317
pyramation wants to merge 1 commit into
mainfrom
feat/transform-bundle-driver

Conversation

@pyramation

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #316: brings bundle-driver.ts into @pgsql/transform after all. It was originally excluded on the assumption it depended on @pgpmjs/bundle — it doesn't: the pgpm bundle seams (transpileBundle's renameChange/transformScript, applyBundle's validateReferences) are structurally typed in the driver, so makeSchemaTranspiler / makeNamespaceValidator are pure function factories over transformSql + classifyStatements with zero new dependencies.

  • Adds src/bundle-driver.ts (verbatim from transform-schemas) + its unit test (bundle-driver.test.ts, 9 tests) and re-exports (BundleScriptContext, SchemaTranspilerOptions, SchemaTranspiler, NamespaceValidatorOptions, makeSchemaTranspiler, makeNamespaceValidator).
  • The pgpm-coupled e2e test (which really does import @pgpmjs/bundle) stays downstream in constructive-db.

With this, @pgsql/transform covers 100% of transform-schemas' src/, so constructive-db can delete the package outright (no relocation needed). Build + 183 tests pass.

Link to Devin session: https://app.devin.ai/sessions/1aa52746e60c4df38ef2678d168269b9
Requested by: @pyramation

@pyramation pyramation self-assigned this Jul 27, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

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