Sets the resolver that picks the isolation level applied to each new connection.
(mut self, isolation: IsolationLevelFn)
| 129 | |
| 130 | /// Sets the resolver that picks the isolation level applied to each new connection. |
| 131 | pub fn with_isolation(mut self, isolation: IsolationLevelFn) -> Self { |
| 132 | self.isolation = isolation; |
| 133 | self |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | /// A Postgres client wrapper that uses deadpool as a connection pool. |