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

Method max_lifetime

src/database/mod.rs:267–270  ·  view source on GitHub ↗

Set the maximum lifetime of individual connections

(&mut self, lifetime: Duration)

Source from the content-addressed store, hash-verified

265
266 /// Set the maximum lifetime of individual connections
267 pub fn max_lifetime(&mut self, lifetime: Duration) -> &mut Self {
268 self.max_lifetime = Some(lifetime);
269 self
270 }
271
272 /// Get the maximum lifetime of individual connections, if set
273 pub fn get_max_lifetime(&self) -> Option<Duration> {

Callers 1

sqlx_pool_optionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected