Execute with a cached connection (fast path - no HashMap lookup)
(
&self,
cached_conn: &Arc<parking_lot::Mutex<rusqlite::Connection>>,
f: F
)
| 2595 | |
| 2596 | /// Execute with a cached connection (fast path - no HashMap lookup) |
| 2597 | pub async fn with_cached_connection<F, R>( |
| 2598 | &self, |
| 2599 | cached_conn: &Arc<parking_lot::Mutex<rusqlite::Connection>>, |
| 2600 | f: F |
| 2601 | ) -> Result<R, PgSqliteError> |
| 2602 | where |
| 2603 | F: FnOnce(&rusqlite::Connection) -> Result<R, rusqlite::Error> |
| 2604 | { |
| 2605 | self.connection_manager.execute_with_cached_connection(cached_conn, f) |
| 2606 | } |
| 2607 | |
| 2608 | /// Execute with a mutable cached connection (fast path - no HashMap lookup) |
| 2609 | pub async fn with_cached_connection_mut<F, R>( |
nothing calls this directly
no test coverage detected