| 1 | use craterust-analyzer cargo sqlx-core 0.8.3 crate/::anyrust-analyzer cargo sqlx-core 0.8.3 any/::{Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#, AnyConnectionrust-analyzer cargo sqlx-core 0.8.3 any/connection/AnyConnection#, AnyQueryResultrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#, AnyRowrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#, AnyStatementrust-analyzer cargo sqlx-core 0.8.3 any/statement/AnyStatement#, AnyTypeInforust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo#}; |
| 2 | use craterust-analyzer cargo sqlx-core 0.8.3 crate/::describerust-analyzer cargo sqlx-core 0.8.3 describe/::Describerust-analyzer cargo sqlx-core 0.8.3 describe/Describe#; |
| 3 | use craterust-analyzer cargo sqlx-core 0.8.3 crate/::errorrust-analyzer cargo sqlx-core 0.8.3 error/::Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#; |
| 4 | use craterust-analyzer cargo sqlx-core 0.8.3 crate/::executorrust-analyzer cargo sqlx-core 0.8.3 executor/::{Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#, Executorrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#}; |
| 5 | use eitherrust-analyzer cargo either 1.18.0 crate/::Eitherrust-analyzer cargo either 1.18.0 Either#; |
| 6 | use futures_corerust-analyzer cargo futures-core 0.3.34 crate/::futurerust-analyzer cargo futures-core 0.3.34 future/::BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#; |
| 7 | use futures_corerust-analyzer cargo futures-core 0.3.34 crate/::streamrust-analyzer cargo futures-core 0.3.34 stream/::BoxStreamrust-analyzer cargo futures-core 0.3.34 stream/BoxStream#; |
| 8 | use futures_utilrust-analyzer cargo futures-util 0.3.34 crate/::{streamrust-analyzer cargo futures-util 0.3.34 stream/, FutureExtrust-analyzer cargo futures-util 0.3.34 future/future/FutureExt#, StreamExtrust-analyzer cargo futures-util 0.3.34 stream/stream/StreamExt#}; |
| 9 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::futurerust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/; |
| 10 | |
| 11 | impl<'c> Executorrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#<'c> for &'c mut AnyConnectionrust-analyzer cargo sqlx-core 0.8.3 any/connection/AnyConnection# { |
| 12 | type Databaserust-analyzer cargo sqlx-core 0.8.3 any/connection/executor/impl#[`&'c mut AnyConnection`][`Executor<'c>`]Database# = Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#; |
| 13 | |
| 14 | fn fetch_manyrust-analyzer cargo sqlx-core 0.8.3 any/connection/executor/impl#[`&'c mut AnyConnection`][`Executor<'c>`]fetch_many().<'e, 'q: 'e, E>( |
| 15 | self, |
| 16 | mut query: E, |
| 17 | ) -> BoxStreamrust-analyzer cargo futures-core 0.3.34 stream/BoxStream#<'e, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Eitherrust-analyzer cargo either 1.18.0 Either#<AnyQueryResultrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#, AnyRowrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 18 | where |
| 19 | 'c: 'e, |
| 20 | E: 'q + Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#>, |
| 21 | { |
| 22 | let arguments = match query.take_argumentsrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#take_arguments().().map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::Encoderust-analyzer cargo sqlx-core 0.8.3 error/Error#Encode#) { |
| 23 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(arguments) => arguments, |
| 24 | Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(error) => return streamrust-analyzer cargo futures-util 0.3.34 stream/::oncerust-analyzer cargo futures-util 0.3.34 stream/once/once().(futurerust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/::readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/ready/ready().(Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(error))).boxedrust-analyzer cargo futures-util 0.3.34 stream/stream/StreamExt#boxed().(), |
| 25 | }; |
| 26 | self.backendrust-analyzer cargo sqlx-core 0.8.3 any/connection/AnyConnection#backend. |
| 27 | .fetch_manyrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#fetch_many().(query.sqlrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#sql().(), query.persistentrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#persistent().(), arguments) |
| 28 | } |
| 29 | |
| 30 | fn fetch_optionalrust-analyzer cargo sqlx-core 0.8.3 any/connection/executor/impl#[`&'c mut AnyConnection`][`Executor<'c>`]fetch_optional().<'e, 'q: 'e, E>( |
| 31 | self, |
| 32 | mut query: E, |
| 33 | ) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'e, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<AnyRowrust-analyzer cargo sqlx-core 0.8.3 any/row/AnyRow#>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 34 | where |
| 35 | 'c: 'e, |
| 36 | E: 'q + Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, Selfrust-analyzer cargo sqlx-core 0.8.3 any/connection/executor/impl#[`&'c mut AnyConnection`][`Executor<'c>`]::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>, |
| 37 | { |
| 38 | let arguments = match query.take_argumentsrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#take_arguments().().map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::Encoderust-analyzer cargo sqlx-core 0.8.3 error/Error#Encode#) { |
| 39 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(arguments) => arguments, |
| 40 | Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(error) => return futurerust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/::readyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/ready/ready().(Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(error)).boxedrust-analyzer cargo futures-util 0.3.34 future/future/FutureExt#boxed().(), |
| 41 | }; |
| 42 | self.backendrust-analyzer cargo sqlx-core 0.8.3 any/connection/AnyConnection#backend. |
| 43 | .fetch_optionalrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#fetch_optional().(query.sqlrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#sql().(), query.persistentrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#persistent().(), arguments) |
| 44 | } |
| 45 | |
| 46 | fn prepare_withrust-analyzer cargo sqlx-core 0.8.3 any/connection/executor/impl#[`&'c mut AnyConnection`][`Executor<'c>`]prepare_with().<'e, 'q: 'e>( |
| 47 | self, |
| 48 | sql: &'q str, |
| 49 | parameters: &[AnyTypeInforust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo#], |
| 50 | ) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'e, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<AnyStatementrust-analyzer cargo sqlx-core 0.8.3 any/statement/AnyStatement#<'q>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 51 | where |
| 52 | 'c: 'e, |
| 53 | { |
| 54 | self.backendrust-analyzer cargo sqlx-core 0.8.3 any/connection/AnyConnection#backend..prepare_withrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#prepare_with().(sql, parameters) |
| 55 | } |
| 56 | |
| 57 | fn describerust-analyzer cargo sqlx-core 0.8.3 any/connection/executor/impl#[`&'c mut AnyConnection`][`Executor<'c>`]describe().<'e, 'q: 'e>( |
| 58 | self, |
| 59 | sql: &'q str, |
| 60 | ) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'e, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Describerust-analyzer cargo sqlx-core 0.8.3 describe/Describe#<Selfrust-analyzer cargo sqlx-core 0.8.3 any/connection/executor/impl#[`&'c mut AnyConnection`][`Executor<'c>`]::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 61 | where |
| 62 | 'c: 'e, |
| 63 | { |
| 64 | self.backendrust-analyzer cargo sqlx-core 0.8.3 any/connection/AnyConnection#backend..describerust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#describe().(sql) |
| 65 | } |
| 66 | } |