From 6682d4dce78e845194f05cc65ad062a5c3340f1a Mon Sep 17 00:00:00 2001 From: Austin Bonander Date: Mon, 13 Jan 2020 20:43:32 -0800 Subject: [PATCH] Pool::new(): forward to connection types for string syntax --- sqlx-core/src/pool/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sqlx-core/src/pool/mod.rs b/sqlx-core/src/pool/mod.rs index f68aefb5..fb03166c 100644 --- a/sqlx-core/src/pool/mod.rs +++ b/sqlx-core/src/pool/mod.rs @@ -43,6 +43,12 @@ where DB::Connection: crate::Connection, { /// Creates a connection pool with the default configuration. + /// + /// The connection URL syntax is documented on the connection type for the respective + /// database you're connecting to: + /// + /// * MySQL/MariaDB: [crate::MySqlConnection] + /// * PostgreSQL: [crate::PgConnection] pub async fn new(url: &str) -> crate::Result { Self::builder().build(url).await }