diff --git a/sqlx-core/src/cursor.rs b/sqlx-core/src/cursor.rs index cccd1b22..190a7de3 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(pool: &Pool<::Connection>, query: E) -> Self where Self: Sized, E: Execute<'q, Self::Database>; + #[doc(hidden)] fn from_connection( connection: &'c mut ::Connection, query: E, diff --git a/sqlx-core/src/mysql/cursor.rs b/sqlx-core/src/mysql/cursor.rs index 49572931..392b9ed4 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(pool: &Pool, 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(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 fcfa444c..b7a442fb 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(pool: &Pool, 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(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 2fed3400..e471e7b3 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(pool: &Pool, 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(conn: &'c mut SqliteConnection, query: E) -> Self where Self: Sized,