Skip to content

Improve generic D1 mirroring support#3

Open
stritt wants to merge 1 commit intomainfrom
codex/make-codebase-generic-for-any-d1-database
Open

Improve generic D1 mirroring support#3
stritt wants to merge 1 commit intomainfrom
codex/make-codebase-generic-for-any-d1-database

Conversation

@stritt
Copy link
Contributor

@stritt stritt commented Sep 18, 2025

Summary

  • add shared SQL utilities for identifier quoting, placeholder conversion, and Postgres value formatting to support arbitrary schemas
  • patch prepared statement execution so every D1 write is mirrored with normalized parameters and placeholder conversion
  • stream exports and generate migrations using discovered primary keys and quoted identifiers for any table shape

Testing

  • npx tsc --noEmit

https://chatgpt.com/codex/tasks/task_e_68cc85a26ea483249bedb4ba2eb0250f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant