If true, the connection will be pinged upon acquiring from the pool (default true).
(&mut self, value: bool)
| 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. |