Skip to content

[Feature]: Add sea-orm support for shuttle_shared_db #1755

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
1 task done
joshua-mo-143 opened this issue Apr 24, 2024 · 2 comments
Open
1 task done

[Feature]: Add sea-orm support for shuttle_shared_db #1755

joshua-mo-143 opened this issue Apr 24, 2024 · 2 comments
Labels
S-Investigation This issue needs further investigation or design to figure out a solution

Comments

@joshua-mo-143
Copy link
Contributor

joshua-mo-143 commented Apr 24, 2024

Describe the feature

A feature that allows users to provision a sea_orm Postgres connection from shuttle_shared_db.

Suggestion or Example of how the feature would be used

#[shuttle_runtime]
async fn main(
#[shuttle_shared_db::Postgres] db: sea_orm::DatabaseConnection<SqlxPostgresPoolConnection>
) -> shuttle_axum::ShuttleAxum {
  // .. etc
}

Duplicate declaration

  • I have searched the issues and this feature has not been requested before.
@joshua-mo-143 joshua-mo-143 added S-Triage Awaiting decision for what to do T-Feature Request labels Apr 24, 2024
@jonaro00
Copy link
Member

I suppose it would do something like this for you? https://www.sea-ql.org/SeaORM/docs/install-and-config/connection/#connect-options
Worth considering.

@jonaro00 jonaro00 added S-Investigation This issue needs further investigation or design to figure out a solution and removed S-Triage Awaiting decision for what to do T-Feature Request labels Mar 12, 2025
@joshua-mo-143
Copy link
Contributor Author

Yeah pretty much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Investigation This issue needs further investigation or design to figure out a solution
Projects
None yet
Development

No branches or pull requests

2 participants