Closed xuxiaocheng0201 closed 3 months ago
Hey @xuxiaocheng0201, runtime-tokio
is just a placeholder feature. It did nothing behind the scene. Please enable one of
runtime-tokio-native-tls
runtime-tokio-rustls
https://github.com/SeaQL/sea-orm/blob/0ff000b8f845dc469e98000410443cc008f60d8c/Cargo.toml#L116-L126
Hey @xuxiaocheng0201,
runtime-tokio
is just a placeholder feature. It did nothing behind the scene. Please enable one of
runtime-tokio-native-tls
runtime-tokio-rustls
Thanks @billy1624 .
But I only use the sqlite
backend, which needn't tls.
Enable runtime-tokio-native-tls
or runtime-tokio-rustls
resulted in additional unnecessary dependencies.
I see what you mean now. I just drafted a PR, would you like to try it? https://github.com/SeaQL/sea-orm/pull/2175
Fixed in #2171
Description
Enabled
runtime-tokio
insea-orm
but panicsin
sqlx-core
.Steps to Reproduce
sea-orm = { version = "1.0.0-rc.3", features = ["sqlx-sqlite", "runtime-tokio"] }
toCargo.toml
main.rs
:[tokio::main]
async fn main() -> anyhow::Result<()> { let connection = Database::connect("sqlite://1.db?mode=rwc").await?; connection.ping().await?; Ok(()) }
Reproduces How Often
Always.
Workarounds
Missing downward feature.
Reproducible Example
Codes above.
Versions
I tested
1.0.0-rc.3
and0.12.15
, both had this problem.