Skip to content

CLi: made cli-lib modules publicly available for other crates #3881

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

silvestrpredko
Copy link

Made modules database, metadata, ... publicly available for users that want to include sqlx-cli into their own helper binary or other library. (It's easier to use migrate::run directly without building Opt).

PR doesn't contain any significant changes.

@abonander
Copy link
Collaborator

sqlx-cli is not meant to be used as a library. I don't want to have to think of downstream API users when making changes to it.

@silvestrpredko
Copy link
Author

sqlx-cli is not meant to be used as a library. I don't want to have to think of downstream API users when making changes to it.

There is nothing wrong with opening these modules; even if there will be breaking changes, it's not a problem for the project, I think.

For now, I want to have a custom behaviour for certain operations with migration revert, and I need to write all the logic for the rest of the CLI by myself, or build a whole Opt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants