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

Method test_before_acquire

src/database/mod.rs:339–342  ·  view source on GitHub ↗

If true, the connection will be pinged upon acquiring from the pool (default true).

(&mut self, value: bool)

Source from the content-addressed store, hash-verified

337
338 /// If true, the connection will be pinged upon acquiring from the pool (default true).
339 pub fn test_before_acquire(&mut self, value: bool) -> &mut Self {
340 self.test_before_acquire = value;
341 self
342 }
343
344 /// If set to `true`, the db connection pool will be created using SQLx's
345 /// [connect_lazy](https://docs.rs/sqlx/latest/sqlx/struct.Pool.html#method.connect_lazy) method.

Callers 1

sqlx_pool_optionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected