You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project uses a local sea-orm-cli (#1889) and only connects to PostgreSQL. Cargo.toml has the following:
[dependencies]
sea-orm = { version = "0.12.15", features = [
"debug-print",
"macros",
"postgres-array",
"runtime-tokio-rustls",
"sqlx-postgres",
] }
sea-orm-cli = { version = "=0.12.15", default-features = false, features = [
"codegen",
"cli",
"runtime-tokio-rustls",
] }
sea-orm-migration = { version = "0.12.15", features = [
"sqlx-postgres",
"runtime-tokio-rustls",
"with-chrono",
] }
If I comment out sea-orm-cli, then sea-orm and sea-orm-migration behave nicely and only pull in sqlx-postgres. However, sea-orm-cli pulls in sqlx-sqlite and sqlx-mysql. I'd like to avoid that.
Details
Unlike other SeaQL crates, sea-orm-cli doesn't have any feature flags to control this behavior. The problem seems to originate here, where it pulls in sea-schema/sqlx-all:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The issue
My project uses a local
sea-orm-cli
(#1889) and only connects to PostgreSQL.Cargo.toml
has the following:If I comment out
sea-orm-cli
, thensea-orm
andsea-orm-migration
behave nicely and only pull insqlx-postgres
. However,sea-orm-cli
pulls insqlx-sqlite
andsqlx-mysql
. I'd like to avoid that.Details
Unlike other SeaQL crates,
sea-orm-cli
doesn't have any feature flags to control this behavior. The problem seems to originate here, where it pulls insea-schema/sqlx-all
:Why does it need that? Can this be avoided?
With some guidance, it's possible that I can contribute the missing flags myself.
Beta Was this translation helpful? Give feedback.
All reactions