Debian Codegraph @

src/connection.rs

raw symbols SCIP
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#, HasStatementCacherust-analyzer cargo sqlx-core 0.8.3 database/HasStatementCache#};
2 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#;
3
4 use craterust-analyzer cargo sqlx-core 0.8.3 crate/::transactionrust-analyzer cargo sqlx-core 0.8.3 transaction/::Transactionrust-analyzer cargo sqlx-core 0.8.3 transaction/Transaction#;
5 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#;
6 use logrust-analyzer cargo log 0.4.34 crate/::LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#;
7 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#;
8 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::strrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc str/::FromStrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr#;
9 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::timerust-analyzer cargo std https://github.com/rust-lang/rust/library/std time/::Durationrust-analyzer cargo core https://github.com/rust-lang/rust/library/core time/Duration#;
10 use urlrust-analyzer cargo url 2.5.8 crate/::Urlrust-analyzer cargo url 2.5.8 Url#;
11
12 /// Represents a single database connection.
13 pub trait Connectionrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#: Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# {
14 type Databaserust-analyzer cargo sqlx-core 0.8.3 connection/Connection#Database#: Databaserust-analyzer cargo sqlx-core 0.8.3 database/Database#<Connectionrust-analyzer cargo sqlx-core 0.8.3 database/Database#Connection# = Self>;
15
16 type Optionsrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#Options#: ConnectOptionsrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#<Connectionrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#Connection# = Self>;
17
18 /// Explicitly close this database connection.
19 ///
20 /// This notifies the database server that the connection is closing so that it can
21 /// free up any server-side resources in use.
22 ///
23 /// While connections can simply be dropped to clean up local resources,
24 /// the `Drop` handler itself cannot notify the server that the connection is being closed
25 /// because that may require I/O to send a termination message. That can result in a delay
26 /// before the server learns that the connection is gone, usually from a TCP keepalive timeout.
27 ///
28 /// Creating and dropping many connections in short order without calling `.close()` may
29 /// lead to errors from the database server because those senescent connections will still
30 /// count against any connection limit or quota that is configured.
31 ///
32 /// Therefore it is recommended to call `.close()` on a connection when you are done using it
33 /// and to `.await` the result to ensure the termination message is sent.
34 fn closerust-analyzer cargo sqlx-core 0.8.3 connection/Connection#close().(self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'static, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>>;
35
36 /// Immediately close the connection without sending a graceful shutdown.
37 ///
38 /// This should still at least send a TCP `FIN` frame to let the server know we're dying.
39 #[doc(hidden)]
40 fn close_hardrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#close_hard().(self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'static, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>>;
41
42 /// Checks if a connection to the database is still valid.
43 fn pingrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#ping().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>>;
44
45 /// Begin a new transaction or establish a savepoint within the active transaction.
46 ///
47 /// Returns a [`Transaction`] for controlling and tracking the new transaction.
48 fn beginrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#begin().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Transactionrust-analyzer cargo sqlx-core 0.8.3 transaction/Transaction#<'_, Self::Databaserust-analyzer cargo sqlx-core 0.8.3 connection/Connection#Database#>, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>>
49 where
50 Self: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#;
51
52 /// Execute the function inside a transaction.
53 ///
54 /// If the function returns an error, the transaction will be rolled back. If it does not
55 /// return an error, the transaction will be committed.
56 ///
57 /// # Example
58 ///
59 /// ```rust
60 /// use sqlx::postgres::{PgConnection, PgRow};
61 /// use sqlx::Connection;
62 ///
63 /// # pub async fn _f(conn: &mut PgConnection) -> sqlx::Result<Vec<PgRow>> {
64 /// conn.transaction(|txn| Box::pin(async move {
65 /// sqlx::query("select * from ..").fetch_all(&mut **txn).await
66 /// })).await
67 /// # }
68 /// ```
69 fn transactionrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#transaction().<'a, F, R, E>(&'a mut self, callback: F) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'a, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<R, E>>
70 where
71 for<'c> F: FnOncerust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/function/FnOnce#(&'c mut Transactionrust-analyzer cargo sqlx-core 0.8.3 transaction/Transaction#<'_, Self::Databaserust-analyzer cargo sqlx-core 0.8.3 connection/Connection#Database#>) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'c, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<R, E>>
72 + 'a
73 + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send#
74 + Syncrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sync#,
75 Self: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#,
76 R: Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send#,
77 E: Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#> + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send#,
78 {
79 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 {
80 let mut transaction = self.beginrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#begin().().rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/impl#[`Pin<P>`][Future]poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/impl#[`Pin<P>`][Future]poll().?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
81 let ret = callback(&mut transaction).rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/impl#[`Pin<P>`][Future]poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/impl#[`Pin<P>`][Future]poll().;
82
83 match ret {
84 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(ret) => {
85 transaction.commitrust-analyzer cargo sqlx-core 0.8.3 transaction/impl#[`Transaction<'c, DB>`]commit().().rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
86
87 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(ret)
88 }
89 Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(err) => {
90 transaction.rollbackrust-analyzer cargo sqlx-core 0.8.3 transaction/impl#[`Transaction<'c, DB>`]rollback().().rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
91
92 Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(err)
93 }
94 }
95 })
96 }
97
98 /// The number of statements currently cached in the connection.
99 fn cached_statements_sizerust-analyzer cargo sqlx-core 0.8.3 connection/Connection#cached_statements_size().(&self) -> usize
100 where
101 Self::Databaserust-analyzer cargo sqlx-core 0.8.3 connection/Connection#Database#: HasStatementCacherust-analyzer cargo sqlx-core 0.8.3 database/HasStatementCache#,
102 {
103 0
104 }
105
106 /// Removes all statements from the cache, closing them on the server if
107 /// needed.
108 fn clear_cached_statementsrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#clear_cached_statements().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>>
109 where
110 Self::Databaserust-analyzer cargo sqlx-core 0.8.3 connection/Connection#Database#: HasStatementCacherust-analyzer cargo sqlx-core 0.8.3 database/HasStatementCache#,
111 {
112 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#(()) })
113 }
114
115 /// Restore any buffers in the connection to their default capacity, if possible.
116 ///
117 /// Sending a large query or receiving a resultset with many columns can cause the connection
118 /// to allocate additional buffer space to fit the data which is retained afterwards in
119 /// case it's needed again. This can give the outward appearance of a memory leak, but is
120 /// in fact the intended behavior.
121 ///
122 /// Calling this method tells the connection to release that excess memory if it can,
123 /// though be aware that calling this too often can cause unnecessary thrashing or
124 /// fragmentation in the global allocator. If there's still data in the connection buffers
125 /// (unlikely if the last query was run to completion) then it may need to be moved to
126 /// allow the buffers to shrink.
127 fn shrink_buffersrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#shrink_buffers().(&mut self);
128
129 #[doc(hidden)]
130 fn flushrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#flush().(&mut self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>>;
131
132 #[doc(hidden)]
133 fn should_flushrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#should_flush().(&self) -> bool;
134
135 /// Establish a new database connection.
136 ///
137 /// A value of [`Options`][Self::Options] is parsed from the provided connection string. This parsing
138 /// is database-specific.
139 #[inline]
140 fn connectrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#connect().(url: &str) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'static, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Self, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>>
141 where
142 Self: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#,
143 {
144 let options = url.parserust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]parse().();
145
146 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 { Self::connect_withrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#connect_with().(&options?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().).rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/impl#[`Pin<P>`][Future]poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/impl#[`Pin<P>`][Future]poll(). })
147 }
148
149 /// Establish a new database connection with the provided options.
150 fn connect_withrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#connect_with().(options: &Self::Optionsrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#Options#) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Self, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>>
151 where
152 Self: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#,
153 {
154 options.connectrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#connect().()
155 }
156 }
157
158 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
159 #[non_exhaustive]
160 pub struct LogSettingsrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings# {
161 pub statements_levelrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings#statements_level.: LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#,
162 pub slow_statements_levelrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings#slow_statements_level.: LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#,
163 pub slow_statements_durationrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings#slow_statements_duration.: Durationrust-analyzer cargo core https://github.com/rust-lang/rust/library/core time/Duration#,
164 }
165
166 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for LogSettingsrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings# {
167 fn defaultrust-analyzer cargo sqlx-core 0.8.3 connection/impl#[LogSettings][Default]default().() -> Selfrust-analyzer cargo sqlx-core 0.8.3 connection/impl#[LogSettings][Default] {
168 LogSettingsrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings# {
169 statements_levelrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings#statements_level.: LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#::Debugrust-analyzer cargo log 0.4.34 LevelFilter#Debug#,
170 slow_statements_levelrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings#slow_statements_level.: LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#::Warnrust-analyzer cargo log 0.4.34 LevelFilter#Warn#,
171 slow_statements_durationrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings#slow_statements_duration.: Durationrust-analyzer cargo core https://github.com/rust-lang/rust/library/core time/Duration#::from_secsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core time/impl#[Duration]from_secs().(1),
172 }
173 }
174 }
175
176 impl LogSettingsrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings# {
177 pub fn log_statementsrust-analyzer cargo sqlx-core 0.8.3 connection/impl#[LogSettings]log_statements().(&mut self, level: LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#) {
178 self.statements_levelrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings#statements_level. = level;
179 }
180 pub fn log_slow_statementsrust-analyzer cargo sqlx-core 0.8.3 connection/impl#[LogSettings]log_slow_statements().(&mut self, level: LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#, duration: Durationrust-analyzer cargo core https://github.com/rust-lang/rust/library/core time/Duration#) {
181 self.slow_statements_levelrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings#slow_statements_level. = level;
182 self.slow_statements_durationrust-analyzer cargo sqlx-core 0.8.3 connection/LogSettings#slow_statements_duration. = duration;
183 }
184 }
185
186 pub trait ConnectOptionsrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#: 'static + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send# + Syncrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sync# + FromStrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr#<Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/traits/FromStr#Err# = Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#> + Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# + Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone# {
187 type Connectionrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#Connection#: Connectionrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#<Optionsrust-analyzer cargo sqlx-core 0.8.3 connection/Connection#Options# = Self> + ?Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#;
188
189 /// Parse the `ConnectOptions` from a URL.
190 fn from_urlrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#from_url().(url: &Urlrust-analyzer cargo url 2.5.8 Url#) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Self, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>;
191
192 /// Get a connection URL that may be used to connect to the same database as this `ConnectOptions`.
193 ///
194 /// ### Note: Lossy
195 /// Any flags or settings which do not have a representation in the URL format will be lost.
196 /// They will fall back to their default settings when the URL is parsed.
197 ///
198 /// The only settings guaranteed to be preserved are:
199 /// * Username
200 /// * Password
201 /// * Hostname
202 /// * Port
203 /// * Database name
204 /// * Unix socket or SQLite database file path
205 /// * SSL mode (if applicable)
206 /// * SSL CA certificate path
207 /// * SSL client certificate path
208 /// * SSL client key path
209 ///
210 /// Additional settings are driver-specific. Refer to the source of a given implementation
211 /// to see which options are preserved in the URL.
212 ///
213 /// ### Panics
214 /// This defaults to `unimplemented!()`.
215 ///
216 /// Individual drivers should override this to implement the intended behavior.
217 fn to_url_lossyrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#to_url_lossy().(&self) -> Urlrust-analyzer cargo url 2.5.8 Url# {
218 unimplementedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/unimplemented!!()
219 }
220
221 /// Establish a new database connection with the options specified by `self`.
222 fn connectrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#connect().(&self) -> BoxFuturerust-analyzer cargo futures-core 0.3.34 future/BoxFuture#<'_, Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Self::Connectionrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#Connection#, Errorrust-analyzer cargo sqlx-core 0.8.3 error/Error#>>
223 where
224 Self::Connectionrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#Connection#: Sizedrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sized#;
225
226 /// Log executed statements with the specified `level`
227 fn log_statementsrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#log_statements().(self, level: LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#) -> Self;
228
229 /// Log executed statements with a duration above the specified `duration`
230 /// at the specified `level`.
231 fn log_slow_statementsrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#log_slow_statements().(self, level: LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#, duration: Durationrust-analyzer cargo core https://github.com/rust-lang/rust/library/core time/Duration#) -> Self;
232
233 /// Entirely disables statement logging (both slow and regular).
234 fn disable_statement_loggingrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#disable_statement_logging().(self) -> Self {
235 self.log_statementsrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#log_statements().(LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#::Offrust-analyzer cargo log 0.4.34 LevelFilter#Off#)
236 .log_slow_statementsrust-analyzer cargo sqlx-core 0.8.3 connection/ConnectOptions#log_slow_statements().(LevelFilterrust-analyzer cargo log 0.4.34 LevelFilter#::Offrust-analyzer cargo log 0.4.34 LevelFilter#Off#, Durationrust-analyzer cargo core https://github.com/rust-lang/rust/library/core time/Duration#::defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core time/impl#[Duration][Default]default().())
237 }
238 }