Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
94 stars 13 forks source link

Use "reshape" for postgres migrations #67

Open jayvdb opened 1 year ago

jayvdb commented 1 year ago

I am very impressed with the design and implementation of https://github.com/fabianlindfors/reshape - it suits enterprise type deployments, but as stated it is not yet stable and ready for production usage. Much like butane ;-)

See also a long-ish blurb I wrote at https://github.com/fabianlindfors/reshape/issues/18

I would love it if butane could (via a non-default feature) write reshape compatible migrations, either directly or indirectly, and drive reshape during init and other steps so butane is in charge of the schema side of things, and delegates to reshape for the steps which actually touch a live database. Happy to do the work, as long as there is in principle agreement that this is a desirable feature of butane.

Electron100 commented 1 year ago

I'm aligned that's a desirable opt-in feature. I wouldn't want reshape to be a default requirement, but I don't see any downside in having support for it as a feature.