stripe / pg-schema-diff

Go library for diffing Postgres schemas and generating SQL migrations
MIT License
278 stars 20 forks source link

Add plugin support #69

Open bplunkett-stripe opened 10 months ago

bplunkett-stripe commented 10 months ago

We allow diffing native Postgres schema objects. Hypothetically, we may be able to extend this to include diffing tangental items through plugins support.

Current plugin ideas:

We will need to think about a good design for plugin support. How much should we expose to the plugins? If we expose too much interface, they will be annoying to maintain. If we expose too little, then they might have to re-hash a lot of our own internal functions. I'm leaning more towards the former than the latter, since our the internal implementations are not yet stable.