diff --git a/sqlx-core/src/cursor.rs b/sqlx-core/src/cursor.rs index cccd1b2291..190a7de368 100644 --- a/sqlx-core/src/cursor.rs +++ b/sqlx-core/src/cursor.rs @@ -18,11 +18,13 @@ where { type Database: Database; + #[doc(hidden)] fn from_pool<E>(pool: &Pool<<Self::Database as Database>::Connection>, query: E) -> Self where Self: Sized, E: Execute<'q, Self::Database>; + #[doc(hidden)] fn from_connection<E>( connection: &'c mut <Self::Database as Database>::Connection, query: E, diff --git a/sqlx-core/src/mysql/cursor.rs b/sqlx-core/src/mysql/cursor.rs index 49572931cb..392b9ed48c 100644 --- a/sqlx-core/src/mysql/cursor.rs +++ b/sqlx-core/src/mysql/cursor.rs @@ -21,6 +21,7 @@ pub struct MySqlCursor<'c, 'q> { impl<'c, 'q> Cursor<'c, 'q> for MySqlCursor<'c, 'q> { type Database = MySql; + #[doc(hidden)] fn from_pool<E>(pool: &Pool<MySqlConnection>, query: E) -> Self where Self: Sized, @@ -35,6 +36,7 @@ impl<'c, 'q> Cursor<'c, 'q> for MySqlCursor<'c, 'q> { } } + #[doc(hidden)] fn from_connection<E>(conn: &'c mut MySqlConnection, query: E) -> Self where Self: Sized, diff --git a/sqlx-core/src/postgres/cursor.rs b/sqlx-core/src/postgres/cursor.rs index fcfa444c3a..b7a442fb64 100644 --- a/sqlx-core/src/postgres/cursor.rs +++ b/sqlx-core/src/postgres/cursor.rs @@ -22,6 +22,7 @@ pub struct PgCursor<'c, 'q> { impl<'c, 'q> Cursor<'c, 'q> for PgCursor<'c, 'q> { type Database = Postgres; + #[doc(hidden)] fn from_pool<E>(pool: &Pool<PgConnection>, query: E) -> Self where Self: Sized, @@ -35,6 +36,7 @@ impl<'c, 'q> Cursor<'c, 'q> for PgCursor<'c, 'q> { } } + #[doc(hidden)] fn from_connection<E>(conn: &'c mut PgConnection, query: E) -> Self where Self: Sized, diff --git a/sqlx-core/src/sqlite/cursor.rs b/sqlx-core/src/sqlite/cursor.rs index 2fed34004b..e471e7b3c0 100644 --- a/sqlx-core/src/sqlite/cursor.rs +++ b/sqlx-core/src/sqlite/cursor.rs @@ -17,6 +17,7 @@ pub struct SqliteCursor<'c, 'q> { impl<'c, 'q> Cursor<'c, 'q> for SqliteCursor<'c, 'q> { type Database = Sqlite; + #[doc(hidden)] fn from_pool<E>(pool: &Pool<SqliteConnection>, query: E) -> Self where Self: Sized, @@ -32,6 +33,7 @@ impl<'c, 'q> Cursor<'c, 'q> for SqliteCursor<'c, 'q> { } } + #[doc(hidden)] fn from_connection<E>(conn: &'c mut SqliteConnection, query: E) -> Self where Self: Sized,