MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / idle_timeout

Method idle_timeout

src/database/mod.rs:245–248  ·  view source on GitHub ↗

Set the idle duration before closing a connection

(&mut self, value: Duration)

Source from the content-addressed store, hash-verified

243
244 /// Set the idle duration before closing a connection
245 pub fn idle_timeout(&mut self, value: Duration) -> &mut Self {
246 self.idle_timeout = Some(value);
247 self
248 }
249
250 /// Get the idle duration before closing a connection, if set
251 pub fn get_idle_timeout(&self) -> Option<Duration> {

Callers 3

sqlx_pool_optionsMethod · 0.80
initMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected