| 1 | use craterust-analyzer cargo sqlx-core 0.8.3 crate/::databaserust-analyzer cargo sqlx-core 0.8.3 database/::Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#; |
| 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/::{BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#}; |
| 4 | |
| 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/::{futurerust-analyzer cargo futures-util 0.3.34 future/, FutureExtrust-analyzer cargo futures-util 0.3.34 future/future/FutureExt#, StreamExtrust-analyzer cargo futures-util 0.3.34 stream/stream/StreamExt#, TryFutureExtrust-analyzer cargo futures-util 0.3.34 future/try_future/TryFutureExt#, TryStreamExtrust-analyzer cargo futures-util 0.3.34 stream/try_stream/TryStreamExt#}; |
| 9 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug#; |
| 10 | |
| 11 | /// A type that contains or can provide a database |
| 12 | /// connection to use for executing queries against the database. |
| 13 | /// |
| 14 | /// No guarantees are provided that successive queries run on the same |
| 15 | /// physical database connection. |
| 16 | /// |
| 17 | /// A [`Connection`](crate::connection::Connection) is an `Executor` that guarantees that |
| 18 | /// successive queries are ran on the same physical database connection. |
| 19 | /// |
| 20 | /// Implemented for the following: |
| 21 | /// |
| 22 | /// * [`&Pool`](super::pool::Pool) |
| 23 | /// * [`&mut Connection`](super::connection::Connection) |
| 24 | /// |
| 25 | /// The [`Executor`] impls for [`Transaction`](crate::transaction::Transaction) |
| 26 | /// and [`PoolConnection`](crate::pool::PoolConnection) have been deleted because they |
| 27 | /// cannot exist in the new crate architecture without rewriting the Executor trait entirely. |
| 28 | /// To fix this breakage, simply add a dereference where an impl [`Executor`] is expected, as |
| 29 | /// they both dereference to the inner connection type which will still implement it: |
| 30 | /// * `&mut transaction` -> `&mut *transaction` |
| 31 | /// * `&mut connection` -> `&mut *connection` |
| 32 | /// |
| 33 | pub trait Executorrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#<'c>: Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# + Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# + Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized# { |
| 34 | type Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#; |
| 35 | |
| 36 | /// Execute the query and return the total number of rows affected. |
| 37 | fn executerust-analyzer cargo sqlx-core 0.8.3 executor/Executor#execute().<'e, 'q: 'e, E>( |
| 38 | self, |
| 39 | query: E, |
| 40 | ) -> 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#<<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::QueryResultrust-analyzer cargo sqlx-core 0.8.3 database/Database#QueryResult#, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 41 | where |
| 42 | 'c: 'e, |
| 43 | E: 'q + Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>, |
| 44 | { |
| 45 | self.execute_manyrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#execute_many().(query).try_collectrust-analyzer cargo futures-util 0.3.34 stream/try_stream/TryStreamExt#try_collect().().boxedrust-analyzer cargo futures-util 0.3.34 future/future/FutureExt#boxed().() |
| 46 | } |
| 47 | |
| 48 | /// Execute multiple queries and return the rows affected from each query, in a stream. |
| 49 | fn execute_manyrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#execute_many().<'e, 'q: 'e, E>( |
| 50 | self, |
| 51 | query: E, |
| 52 | ) -> 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#<<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::QueryResultrust-analyzer cargo sqlx-core 0.8.3 database/Database#QueryResult#, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 53 | where |
| 54 | 'c: 'e, |
| 55 | E: 'q + Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>, |
| 56 | { |
| 57 | self.fetch_manyrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#fetch_many().(query) |
| 58 | .try_filter_maprust-analyzer cargo futures-util 0.3.34 stream/try_stream/TryStreamExt#try_filter_map().(|step| async move { |
| 59 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(match step { |
| 60 | Eitherrust-analyzer cargo either 1.18.0 Either#::Leftrust-analyzer cargo either 1.18.0 Either#Left#(rows) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(rows), |
| 61 | Eitherrust-analyzer cargo either 1.18.0 Either#::Rightrust-analyzer cargo either 1.18.0 Either#Right#(_) => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 62 | }) |
| 63 | }) |
| 64 | .boxedrust-analyzer cargo futures-util 0.3.34 stream/stream/StreamExt#boxed().() |
| 65 | } |
| 66 | |
| 67 | /// Execute the query and return the generated results as a stream. |
| 68 | fn fetchrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#fetch().<'e, 'q: 'e, E>( |
| 69 | self, |
| 70 | query: E, |
| 71 | ) -> 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#<<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Rowrust-analyzer cargo sqlx-core 0.8.3 database/Database#Row#, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 72 | where |
| 73 | 'c: 'e, |
| 74 | E: 'q + Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>, |
| 75 | { |
| 76 | self.fetch_manyrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#fetch_many().(query) |
| 77 | .try_filter_maprust-analyzer cargo futures-util 0.3.34 stream/try_stream/TryStreamExt#try_filter_map().(|step| async move { |
| 78 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(match step { |
| 79 | Eitherrust-analyzer cargo either 1.18.0 Either#::Leftrust-analyzer cargo either 1.18.0 Either#Left#(_) => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#, |
| 80 | Eitherrust-analyzer cargo either 1.18.0 Either#::Rightrust-analyzer cargo either 1.18.0 Either#Right#(row) => Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(row), |
| 81 | }) |
| 82 | }) |
| 83 | .boxedrust-analyzer cargo futures-util 0.3.34 stream/stream/StreamExt#boxed().() |
| 84 | } |
| 85 | |
| 86 | /// Execute multiple queries and return the generated results as a stream |
| 87 | /// from each query, in a stream. |
| 88 | fn fetch_manyrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#fetch_many().<'e, 'q: 'e, E>( |
| 89 | self, |
| 90 | query: E, |
| 91 | ) -> BoxStreamrust-analyzer cargo futures-core 0.3.34 stream/BoxStream#< |
| 92 | 'e, |
| 93 | Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#< |
| 94 | Eitherrust-analyzer cargo either 1.18.0 Either#<<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::QueryResultrust-analyzer cargo sqlx-core 0.8.3 database/Database#QueryResult#, <Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Rowrust-analyzer cargo sqlx-core 0.8.3 database/Database#Row#>, |
| 95 | Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#, |
| 96 | >, |
| 97 | > |
| 98 | where |
| 99 | 'c: 'e, |
| 100 | E: 'q + Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>; |
| 101 | |
| 102 | /// Execute the query and return all the generated results, collected into a [`Vec`]. |
| 103 | fn fetch_allrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#fetch_all().<'e, 'q: 'e, E>( |
| 104 | self, |
| 105 | query: E, |
| 106 | ) -> 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#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Rowrust-analyzer cargo sqlx-core 0.8.3 database/Database#Row#>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 107 | where |
| 108 | 'c: 'e, |
| 109 | E: 'q + Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>, |
| 110 | { |
| 111 | self.fetchrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#fetch().(query).try_collectrust-analyzer cargo futures-util 0.3.34 stream/try_stream/TryStreamExt#try_collect().().boxedrust-analyzer cargo futures-util 0.3.34 future/future/FutureExt#boxed().() |
| 112 | } |
| 113 | |
| 114 | /// Execute the query and returns exactly one row. |
| 115 | fn fetch_onerust-analyzer cargo sqlx-core 0.8.3 executor/Executor#fetch_one().<'e, 'q: 'e, E>( |
| 116 | self, |
| 117 | query: E, |
| 118 | ) -> 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#<<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Rowrust-analyzer cargo sqlx-core 0.8.3 database/Database#Row#, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 119 | where |
| 120 | 'c: 'e, |
| 121 | E: 'q + Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>, |
| 122 | { |
| 123 | self.fetch_optionalrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#fetch_optional().(query) |
| 124 | .and_thenrust-analyzer cargo futures-util 0.3.34 future/try_future/TryFutureExt#and_then().(|row| match row { |
| 125 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(row) => futurerust-analyzer cargo futures-util 0.3.34 future/::okrust-analyzer cargo futures-util 0.3.34 future/ready/ok().(row), |
| 126 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => futurerust-analyzer cargo futures-util 0.3.34 future/::errrust-analyzer cargo futures-util 0.3.34 future/ready/err().(Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::RowNotFoundrust-analyzer cargo sqlx-core 0.8.3 error/Error#RowNotFound#), |
| 127 | }) |
| 128 | .boxedrust-analyzer cargo futures-util 0.3.34 future/future/FutureExt#boxed().() |
| 129 | } |
| 130 | |
| 131 | /// Execute the query and returns at most one row. |
| 132 | fn fetch_optionalrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#fetch_optional().<'e, 'q: 'e, E>( |
| 133 | self, |
| 134 | query: E, |
| 135 | ) -> 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#<<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Rowrust-analyzer cargo sqlx-core 0.8.3 database/Database#Row#>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 136 | where |
| 137 | 'c: 'e, |
| 138 | E: 'q + Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>; |
| 139 | |
| 140 | /// Prepare the SQL query to inspect the type information of its parameters |
| 141 | /// and results. |
| 142 | /// |
| 143 | /// Be advised that when using the `query`, `query_as`, or `query_scalar` functions, the query |
| 144 | /// is transparently prepared and executed. |
| 145 | /// |
| 146 | /// This explicit API is provided to allow access to the statement metadata available after |
| 147 | /// it prepared but before the first row is returned. |
| 148 | #[inline] |
| 149 | fn preparerust-analyzer cargo sqlx-core 0.8.3 executor/Executor#prepare().<'e, 'q: 'e>( |
| 150 | self, |
| 151 | query: &'q str, |
| 152 | ) -> 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#<<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Statementrust-analyzer cargo sqlx-core 0.8.3 database/Database#Statement#<'q>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 153 | where |
| 154 | 'c: 'e, |
| 155 | { |
| 156 | self.prepare_withrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#prepare_with().(query, &[]) |
| 157 | } |
| 158 | |
| 159 | /// Prepare the SQL query, with parameter type information, to inspect the |
| 160 | /// type information about its parameters and results. |
| 161 | /// |
| 162 | /// Only some database drivers (PostgreSQL, MSSQL) can take advantage of |
| 163 | /// this extra information to influence parameter type inference. |
| 164 | fn prepare_withrust-analyzer cargo sqlx-core 0.8.3 executor/Executor#prepare_with().<'e, 'q: 'e>( |
| 165 | self, |
| 166 | sql: &'q str, |
| 167 | parameters: &'e [<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::TypeInforust-analyzer cargo sqlx-core 0.8.3 database/Database#TypeInfo#], |
| 168 | ) -> 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#<<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database# as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Statementrust-analyzer cargo sqlx-core 0.8.3 database/Database#Statement#<'q>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 169 | where |
| 170 | 'c: 'e; |
| 171 | |
| 172 | /// Describe the SQL query and return type information about its parameters |
| 173 | /// and results. |
| 174 | /// |
| 175 | /// This is used by compile-time verification in the query macros to |
| 176 | /// power their type inference. |
| 177 | #[doc(hidden)] |
| 178 | fn describerust-analyzer cargo sqlx-core 0.8.3 executor/Executor#describe().<'e, 'q: 'e>( |
| 179 | self, |
| 180 | sql: &'q str, |
| 181 | ) -> 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#<Self::Databaserust-analyzer cargo sqlx-core 0.8.3 executor/Executor#Database#>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>> |
| 182 | where |
| 183 | 'c: 'e; |
| 184 | } |
| 185 | |
| 186 | /// A type that may be executed against a database connection. |
| 187 | /// |
| 188 | /// Implemented for the following: |
| 189 | /// |
| 190 | /// * [`&str`](std::str) |
| 191 | /// * [`Query`](super::query::Query) |
| 192 | /// |
| 193 | pub trait Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, DB: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>: Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# + Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized# { |
| 194 | /// Gets the SQL that will be executed. |
| 195 | fn sqlrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#sql().(&self) -> &'q str; |
| 196 | |
| 197 | /// Gets the previously cached statement, if available. |
| 198 | fn statementrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#statement().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&DB::Statementrust-analyzer cargo sqlx-core 0.8.3 database/Database#Statement#<'q>>; |
| 199 | |
| 200 | /// Returns the arguments to be bound against the query string. |
| 201 | /// |
| 202 | /// Returning `Ok(None)` for `Arguments` indicates to use a "simple" query protocol and to not |
| 203 | /// prepare the query. Returning `Ok(Some(Default::default()))` is an empty arguments object that |
| 204 | /// will be prepared (and cached) before execution. |
| 205 | /// |
| 206 | /// Returns `Err` if encoding any of the arguments failed. |
| 207 | fn take_argumentsrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#take_arguments().(&mut self) -> 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#<<DB as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Argumentsrust-analyzer cargo sqlx-core 0.8.3 database/Database#Arguments#<'q>>, BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#>; |
| 208 | |
| 209 | /// Returns `true` if the statement should be cached. |
| 210 | fn persistentrust-analyzer cargo sqlx-core 0.8.3 executor/Execute#persistent().(&self) -> bool; |
| 211 | } |
| 212 | |
| 213 | // NOTE: `Execute` is explicitly not implemented for String and &String to make it slightly more |
| 214 | // involved to write `conn.execute(format!("SELECT {val}"))` |
| 215 | impl<'q, DB: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#> Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, DB> for &'q str { |
| 216 | #[inline] |
| 217 | fn sqlrust-analyzer cargo sqlx-core 0.8.3 executor/impl#[`&'q str`][`Execute<'q, DB>`]sql().(&self) -> &'q str { |
| 218 | self |
| 219 | } |
| 220 | |
| 221 | #[inline] |
| 222 | fn statementrust-analyzer cargo sqlx-core 0.8.3 executor/impl#[`&'q str`][`Execute<'q, DB>`]statement().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&DB::Statementrust-analyzer cargo sqlx-core 0.8.3 database/Database#Statement#<'q>> { |
| 223 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 224 | } |
| 225 | |
| 226 | #[inline] |
| 227 | fn take_argumentsrust-analyzer cargo sqlx-core 0.8.3 executor/impl#[`&'q str`][`Execute<'q, DB>`]take_arguments().(&mut self) -> 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#<<DB as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Argumentsrust-analyzer cargo sqlx-core 0.8.3 database/Database#Arguments#<'q>>, BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#> { |
| 228 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#) |
| 229 | } |
| 230 | |
| 231 | #[inline] |
| 232 | fn persistentrust-analyzer cargo sqlx-core 0.8.3 executor/impl#[`&'q str`][`Execute<'q, DB>`]persistent().(&self) -> bool { |
| 233 | true |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | impl<'q, DB: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#> Executerust-analyzer cargo sqlx-core 0.8.3 executor/Execute#<'q, DB> for (&'q str, Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<<DB as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Argumentsrust-analyzer cargo sqlx-core 0.8.3 database/Database#Arguments#<'q>>) { |
| 238 | #[inline] |
| 239 | fn sqlrust-analyzer cargo sqlx-core 0.8.3 executor/impl#[`(&'q str, Option<<DB as Database>::Arguments<'q>>)`][`Execute<'q, DB>`]sql().(&self) -> &'q str { |
| 240 | self.0 |
| 241 | } |
| 242 | |
| 243 | #[inline] |
| 244 | fn statementrust-analyzer cargo sqlx-core 0.8.3 executor/impl#[`(&'q str, Option<<DB as Database>::Arguments<'q>>)`][`Execute<'q, DB>`]statement().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<&DB::Statementrust-analyzer cargo sqlx-core 0.8.3 database/Database#Statement#<'q>> { |
| 245 | Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# |
| 246 | } |
| 247 | |
| 248 | #[inline] |
| 249 | fn take_argumentsrust-analyzer cargo sqlx-core 0.8.3 executor/impl#[`(&'q str, Option<<DB as Database>::Arguments<'q>>)`][`Execute<'q, DB>`]take_arguments().(&mut self) -> 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#<<DB as Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#>::Argumentsrust-analyzer cargo sqlx-core 0.8.3 database/Database#Arguments#<'q>>, BoxDynErrorrust-analyzer cargo sqlx-core 0.8.3 error/BoxDynError#> { |
| 250 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(self.1.takerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]take().()) |
| 251 | } |
| 252 | |
| 253 | #[inline] |
| 254 | fn persistentrust-analyzer cargo sqlx-core 0.8.3 executor/impl#[`(&'q str, Option<<DB as Database>::Arguments<'q>>)`][`Execute<'q, DB>`]persistent().(&self) -> bool { |
| 255 | true |
| 256 | } |
| 257 | } |