| 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#, AnyArgumentsrust-analyzer cargo sqlx-core 0.8.3 any/arguments/AnyArguments#, 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 eitherrust-analyzer cargo either 1.18.0 crate/::Eitherrust-analyzer cargo either 1.18.0 Either#; |
| 4 | 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#; |
| 5 | 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#; |
| 6 | 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#; |
| 7 | |
| 8 | pub trait AnyConnectionBackendrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::anyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core any/::Anyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core any/Any# + Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# + 'static { |
| 9 | /// The backend name. |
| 10 | fn namerust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#name().(&self) -> &str; |
| 11 | |
| 12 | /// Explicitly close this database connection. |
| 13 | /// |
| 14 | /// This method is **not required** for safe and consistent operation. However, it is |
| 15 | /// recommended to call it instead of letting a connection `drop` as the database backend |
| 16 | /// will be faster at cleaning up resources. |
| 17 | fn closerust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#close().(self: Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<Self>) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'static, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<()>>; |
| 18 | |
| 19 | /// Immediately close the connection without sending a graceful shutdown. |
| 20 | /// |
| 21 | /// This should still at least send a TCP `FIN` frame to let the server know we're dying. |
| 22 | #[doc(hidden)] |
| 23 | fn close_hardrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#close_hard().(self: Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<Self>) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'static, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<()>>; |
| 24 | |
| 25 | /// Checks if a connection to the database is still valid. |
| 26 | fn pingrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#ping().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<()>>; |
| 27 | |
| 28 | /// Begin a new transaction or establish a savepoint within the active transaction. |
| 29 | fn beginrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#begin().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<()>>; |
| 30 | |
| 31 | fn commitrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#commit().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<()>>; |
| 32 | |
| 33 | fn rollbackrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#rollback().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<()>>; |
| 34 | |
| 35 | fn start_rollbackrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#start_rollback().(&mut self); |
| 36 | |
| 37 | /// The number of statements currently cached in the connection. |
| 38 | fn cached_statements_sizerust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#cached_statements_size().(&self) -> usize { |
| 39 | 0 |
| 40 | } |
| 41 | |
| 42 | /// Removes all statements from the cache, closing them on the server if |
| 43 | /// needed. |
| 44 | fn clear_cached_statementsrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#clear_cached_statements().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<()>> { |
| 45 | Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#::pinrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/impl#[`Box<T>`]pin().(async move { Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) }) |
| 46 | } |
| 47 | |
| 48 | /// Forward to [`Connection::shrink_buffers()`]. |
| 49 | /// |
| 50 | /// [`Connection::shrink_buffers()`]: method@crate::connection::Connection::shrink_buffers |
| 51 | fn shrink_buffersrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#shrink_buffers().(&mut self); |
| 52 | |
| 53 | #[doc(hidden)] |
| 54 | fn flushrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#flush().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<()>>; |
| 55 | |
| 56 | #[doc(hidden)] |
| 57 | fn should_flushrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#should_flush().(&self) -> bool; |
| 58 | |
| 59 | #[cfg(feature = "migrate")] |
| 60 | fn as_migraterust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#as_migrate().(&mut self) -> craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<&mut (dyn craterust-analyzer cargo sqlx-core 0.8.3 crate/::migraterust-analyzer cargo sqlx-core 0.8.3 migrate/::Migraterust-analyzer cargo sqlx-core 0.8.3 migrate/migrate/Migrate# + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# + 'static)> { |
| 61 | Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(craterust-analyzer cargo sqlx-core 0.8.3 crate/::Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#::Configurationrust-analyzer cargo sqlx-core 0.8.3 error/Error#Configuration#( |
| 62 | formatrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/format!!( |
| 63 | "{} driver does not support migrations or `migrate` feature was not enabled", |
| 64 | self.namerust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#name().() |
| 65 | ) |
| 66 | .intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().(), |
| 67 | )) |
| 68 | } |
| 69 | |
| 70 | fn fetch_manyrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#fetch_many().<'q>( |
| 71 | &'q mut self, |
| 72 | query: &'q str, |
| 73 | persistent: bool, |
| 74 | arguments: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<AnyArgumentsrust-analyzer cargo sqlx-core 0.8.3 any/arguments/AnyArguments#<'q>>, |
| 75 | ) -> BoxStreamrust-analyzer cargo futures-core 0.3.34 stream/BoxStream#<'q, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/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#>>>; |
| 76 | |
| 77 | fn fetch_optionalrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#fetch_optional().<'q>( |
| 78 | &'q mut self, |
| 79 | query: &'q str, |
| 80 | persistent: bool, |
| 81 | arguments: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<AnyArgumentsrust-analyzer cargo sqlx-core 0.8.3 any/arguments/AnyArguments#<'q>>, |
| 82 | ) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'q, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/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#>>>; |
| 83 | |
| 84 | fn prepare_withrust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#prepare_with().<'c, 'q: 'c>( |
| 85 | &'c mut self, |
| 86 | sql: &'q str, |
| 87 | parameters: &[AnyTypeInforust-analyzer cargo sqlx-core 0.8.3 any/type_info/AnyTypeInfo#], |
| 88 | ) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'c, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<AnyStatementrust-analyzer cargo sqlx-core 0.8.3 any/statement/AnyStatement#<'q>>>; |
| 89 | |
| 90 | fn describerust-analyzer cargo sqlx-core 0.8.3 any/connection/backend/AnyConnectionBackend#describe().<'q>(&'q mut self, sql: &'q str) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'q, craterust-analyzer cargo sqlx-core 0.8.3 crate/::Resultrust-analyzer cargo sqlx-core 0.8.3 error/Result#<Describerust-analyzer cargo sqlx-core 0.8.3 describe/Describe#<Anyrust-analyzer cargo sqlx-core 0.8.3 any/database/Any#>>>; |
| 91 | } |