Electron100 / butane

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

Clear DB #16

Closed janosimas closed 2 years ago

janosimas commented 2 years ago

Is there a way to clear the db with the butane_cli? I'm doing a proof of concept and very frequently I want to reset the state to an empty db.

It would also be nice to reset the migrations. For prototypes, the db schema changes a lot and now I have a huge list of migrations with small changes to test the best schema. What I wanted is to delete all migrations and generate a new initial from the current state.

Electron100 commented 2 years ago

There's not currently for either, but they both seem like useful features -- I'll try to add them this week.

Electron100 commented 2 years ago

Wasn't "this week", but I've published 0.4.3 which adds clear and collapse commands which should fulfill this functionality. Let me know if you see any issues.

janosimas commented 2 years ago

I was/am supper busy these last weeks, I'll try to take a look this weekend. Thanks! :+1: