mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-01-20 15:46:30 +00:00
- enforce compile-time errors if you try to block on an async-only runtime or await a blocking runtime - remove viral HRTB for Streams - support UNIX streams
14 lines
257 B
Rust
14 lines
257 B
Rust
use super::Runtime;
|
|
|
|
pub trait Connect<Rt>: crate::Connect<Rt>
|
|
where
|
|
Rt: Runtime,
|
|
{
|
|
fn connect(url: &str) -> crate::Result<Self>
|
|
where
|
|
Self: Sized;
|
|
}
|
|
|
|
// TODO: impl Connect for Pool { ... }
|
|
// TODO: impl Connect for PgConnection { ... }
|