Skip to content
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

add support for AnyPool #77

Closed
prabirshrestha opened this issue Oct 19, 2022 · 3 comments
Closed

add support for AnyPool #77

prabirshrestha opened this issue Oct 19, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@prabirshrestha
Copy link

Add support for AnyPool such that database can be chosen at runtime. match can then be used to run specific queries.

match pool.any_kind() {
    AnyKind::Postgres => {...},
    AnyKind::Sqlite => {...},
    AnyKind::MySql => {...},
}
@casbin-bot
Copy link

@hackerchai @PsiACE

@prabirshrestha
Copy link
Author

In the meantime I have file an issue on Sqlx side for making it easy to convert to and from AnyPool. launchbadge/sqlx#2162. This could help every other projects.

@hsluoyz
Copy link
Member

hsluoyz commented Mar 3, 2024

@prabirshrestha can you provide more details about this requirement?

@hsluoyz hsluoyz closed this as completed Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants