Execute with statement pool and parameters
(
&self,
query: &str,
params: &[Option<Vec<u8>>],
session_id: &Uuid,
)
| 2561 | |
| 2562 | /// Execute with statement pool and parameters |
| 2563 | pub async fn execute_with_statement_pool_params( |
| 2564 | &self, |
| 2565 | query: &str, |
| 2566 | params: &[Option<Vec<u8>>], |
| 2567 | session_id: &Uuid, |
| 2568 | ) -> Result<DbResponse, PgSqliteError> { |
| 2569 | // Forward to execute_with_params |
| 2570 | self.execute_with_params(query, params, session_id).await |
| 2571 | } |
| 2572 | |
| 2573 | // Execute a closure with access to the session's connection |
| 2574 | pub async fn with_session_connection<F, R>( |