We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14309cb commit a54a568Copy full SHA for a54a568
sqlx-test/src/lib.rs
@@ -12,6 +12,7 @@ pub fn setup_if_needed() {
12
pub async fn new<DB>() -> anyhow::Result<DB::Connection>
13
where
14
DB: Database,
15
+ <DB::Connection as Connection>::Options: std::str::FromStr<Err = sqlx::error::Error>,
16
{
17
setup_if_needed();
18
@@ -23,6 +24,7 @@ where
23
24
pub async fn pool<DB>() -> anyhow::Result<Pool<DB>>
25
26
27
28
29
30
0 commit comments