Remove unnecessary impl GenericClient docs
This commit is contained in:
parent
1ea8b7b2d4
commit
5d08af01ec
@ -506,7 +506,6 @@ impl Client {
|
|||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl GenericClient for Client {
|
impl GenericClient for Client {
|
||||||
/// Like `Client::execute`.
|
|
||||||
async fn execute<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<u64, Error>
|
async fn execute<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<u64, Error>
|
||||||
where
|
where
|
||||||
T: ?Sized + ToStatement + Sync + Send,
|
T: ?Sized + ToStatement + Sync + Send,
|
||||||
@ -514,7 +513,6 @@ impl GenericClient for Client {
|
|||||||
self.execute(query, params).await
|
self.execute(query, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Client::execute_raw`.
|
|
||||||
async fn execute_raw<'b, I, T>(&self, statement: &T, params: I) -> Result<u64, Error>
|
async fn execute_raw<'b, I, T>(&self, statement: &T, params: I) -> Result<u64, Error>
|
||||||
where
|
where
|
||||||
T: ?Sized + ToStatement + Sync + Send,
|
T: ?Sized + ToStatement + Sync + Send,
|
||||||
@ -524,7 +522,6 @@ impl GenericClient for Client {
|
|||||||
self.execute_raw(statement, params).await
|
self.execute_raw(statement, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Client::query`.
|
|
||||||
async fn query<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<Vec<Row>, Error>
|
async fn query<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<Vec<Row>, Error>
|
||||||
where
|
where
|
||||||
T: ?Sized + ToStatement + Sync + Send,
|
T: ?Sized + ToStatement + Sync + Send,
|
||||||
@ -532,7 +529,6 @@ impl GenericClient for Client {
|
|||||||
self.query(query, params).await
|
self.query(query, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Client::query_one`.
|
|
||||||
async fn query_one<T>(
|
async fn query_one<T>(
|
||||||
&self,
|
&self,
|
||||||
statement: &T,
|
statement: &T,
|
||||||
@ -544,7 +540,6 @@ impl GenericClient for Client {
|
|||||||
self.query_one(statement, params).await
|
self.query_one(statement, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Client::query_opt`.
|
|
||||||
async fn query_opt<T>(
|
async fn query_opt<T>(
|
||||||
&self,
|
&self,
|
||||||
statement: &T,
|
statement: &T,
|
||||||
@ -556,7 +551,6 @@ impl GenericClient for Client {
|
|||||||
self.query_opt(statement, params).await
|
self.query_opt(statement, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Client::query_raw`.
|
|
||||||
async fn query_raw<'b, T, I>(&self, statement: &T, params: I) -> Result<RowStream, Error>
|
async fn query_raw<'b, T, I>(&self, statement: &T, params: I) -> Result<RowStream, Error>
|
||||||
where
|
where
|
||||||
T: ?Sized + ToStatement + Sync + Send,
|
T: ?Sized + ToStatement + Sync + Send,
|
||||||
@ -566,12 +560,10 @@ impl GenericClient for Client {
|
|||||||
self.query_raw(statement, params).await
|
self.query_raw(statement, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Client::prepare`.
|
|
||||||
async fn prepare(&self, query: &str) -> Result<Statement, Error> {
|
async fn prepare(&self, query: &str) -> Result<Statement, Error> {
|
||||||
self.prepare(query).await
|
self.prepare(query).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Client::prepare_typed`.
|
|
||||||
async fn prepare_typed(
|
async fn prepare_typed(
|
||||||
&self,
|
&self,
|
||||||
query: &str,
|
query: &str,
|
||||||
@ -580,7 +572,6 @@ impl GenericClient for Client {
|
|||||||
self.prepare_typed(query, parameter_types).await
|
self.prepare_typed(query, parameter_types).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Client::transaction`.
|
|
||||||
async fn transaction(&mut self) -> Result<Transaction<'_>, Error> {
|
async fn transaction(&mut self) -> Result<Transaction<'_>, Error> {
|
||||||
self.transaction().await
|
self.transaction().await
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,6 @@ impl<'a> Transaction<'a> {
|
|||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl crate::GenericClient for Transaction<'_> {
|
impl crate::GenericClient for Transaction<'_> {
|
||||||
/// Like `Transaction::execute`.
|
|
||||||
async fn execute<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<u64, Error>
|
async fn execute<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<u64, Error>
|
||||||
where
|
where
|
||||||
T: ?Sized + ToStatement + Sync + Send,
|
T: ?Sized + ToStatement + Sync + Send,
|
||||||
@ -297,7 +296,6 @@ impl crate::GenericClient for Transaction<'_> {
|
|||||||
self.execute(query, params).await
|
self.execute(query, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Transaction::execute_raw`.
|
|
||||||
async fn execute_raw<'b, I, T>(&self, statement: &T, params: I) -> Result<u64, Error>
|
async fn execute_raw<'b, I, T>(&self, statement: &T, params: I) -> Result<u64, Error>
|
||||||
where
|
where
|
||||||
T: ?Sized + ToStatement + Sync + Send,
|
T: ?Sized + ToStatement + Sync + Send,
|
||||||
@ -307,7 +305,6 @@ impl crate::GenericClient for Transaction<'_> {
|
|||||||
self.execute_raw(statement, params).await
|
self.execute_raw(statement, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Transaction::query`.
|
|
||||||
async fn query<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<Vec<Row>, Error>
|
async fn query<T>(&self, query: &T, params: &[&(dyn ToSql + Sync)]) -> Result<Vec<Row>, Error>
|
||||||
where
|
where
|
||||||
T: ?Sized + ToStatement + Sync + Send,
|
T: ?Sized + ToStatement + Sync + Send,
|
||||||
@ -315,7 +312,6 @@ impl crate::GenericClient for Transaction<'_> {
|
|||||||
self.query(query, params).await
|
self.query(query, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Transaction::query_one`.
|
|
||||||
async fn query_one<T>(
|
async fn query_one<T>(
|
||||||
&self,
|
&self,
|
||||||
statement: &T,
|
statement: &T,
|
||||||
@ -327,7 +323,6 @@ impl crate::GenericClient for Transaction<'_> {
|
|||||||
self.query_one(statement, params).await
|
self.query_one(statement, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Transaction::query_opt`.
|
|
||||||
async fn query_opt<T>(
|
async fn query_opt<T>(
|
||||||
&self,
|
&self,
|
||||||
statement: &T,
|
statement: &T,
|
||||||
@ -339,7 +334,6 @@ impl crate::GenericClient for Transaction<'_> {
|
|||||||
self.query_opt(statement, params).await
|
self.query_opt(statement, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Transaction::query_raw`.
|
|
||||||
async fn query_raw<'b, T, I>(&self, statement: &T, params: I) -> Result<RowStream, Error>
|
async fn query_raw<'b, T, I>(&self, statement: &T, params: I) -> Result<RowStream, Error>
|
||||||
where
|
where
|
||||||
T: ?Sized + ToStatement + Sync + Send,
|
T: ?Sized + ToStatement + Sync + Send,
|
||||||
@ -349,12 +343,10 @@ impl crate::GenericClient for Transaction<'_> {
|
|||||||
self.query_raw(statement, params).await
|
self.query_raw(statement, params).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Transaction::prepare`.
|
|
||||||
async fn prepare(&self, query: &str) -> Result<Statement, Error> {
|
async fn prepare(&self, query: &str) -> Result<Statement, Error> {
|
||||||
self.prepare(query).await
|
self.prepare(query).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Transaction::prepare_typed`.
|
|
||||||
async fn prepare_typed(
|
async fn prepare_typed(
|
||||||
&self,
|
&self,
|
||||||
query: &str,
|
query: &str,
|
||||||
@ -363,7 +355,6 @@ impl crate::GenericClient for Transaction<'_> {
|
|||||||
self.prepare_typed(query, parameter_types).await
|
self.prepare_typed(query, parameter_types).await
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Like `Transaction::transaction`.
|
|
||||||
#[allow(clippy::needless_lifetimes)]
|
#[allow(clippy::needless_lifetimes)]
|
||||||
async fn transaction<'a>(&'a mut self) -> Result<Transaction<'a>, Error> {
|
async fn transaction<'a>(&'a mut self) -> Result<Transaction<'a>, Error> {
|
||||||
self.transaction().await
|
self.transaction().await
|
||||||
|
Loading…
Reference in New Issue
Block a user