-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using dbmigrate programmatically -> why is it not a lib/why is functionality not in dbmigrate-lib #26
Comments
Hey |
I just saw the reason why I didn't move the code to the lib, it has lots of |
The question is why that is tied to the |
I guess the migrate macro could be turned into a function into dbmigrate-lib but the others cannot just be changed to a |
Any news here? I want to use dbmigrate programmatically but it requires copy\paste from |
I don't use that crate myself but I will merge a good implementation of that issue |
Why you stop using it?
You mean that I can contribute with PR? |
I don't do anything database related right now with Rust.
Yep! |
Oh, it requires a lot of refactoring, if I understand correctly? |
How can we organize this work so that I don’t do a very large pull request for review at once? |
I wrote some code a while back, didn't come around to get it ready for a PR yet. Tested with SQLite and Postgres, but not with MySQL: https://github.com/FSMaxB/dbmigrate/tree/simplify-migration-struct |
This relates to #38 which makes it easier to use the library programmatically since you don't need to check for |
Yep #38 is a great way to start. After that, the changes should not be THAT big. |
I think that we should start with move code with current implementation into lib as much as we can. Right? |
#38 is just simplifying the code, not strictly required but it makes it easier to think about. |
You think that with this refactoring we should not only move code into lib? |
Hello!
Consider myself a noobie, please.
I am (successfully) using your awesome migration tool (thanks for that!) programmatically in an application of mine.
To get it working I had a look at your implementation of
dbmigrate
(as suggested in the readme) and basically more or less re-implemented the same macro and functions myself.dbmigrate
is not a library (correct me if I am wrong and simply too dumb to get the crate somehow).That leaves me with 2 questions/proposals:
Can it be done that functionality (e.g.
migrate
macro andup
etc. functions) be moved todbmigrate-lib
?If not (I would be curious as to the why then, actually really curious why they were done in the
dbmigrate
- as said, consider myself a noobie!), coulddbmigrate
be also made a lib?Thanks again for your time and efforts!
The text was updated successfully, but these errors were encountered: