(&mut self)
| 86 | } |
| 87 | |
| 88 | pub fn transaction(&mut self) -> &mut Transaction<'static, Postgres> { |
| 89 | match self.transaction.as_mut() { |
| 90 | Some(trx) => trx, |
| 91 | None => panic!("Transaction Has Not Begun!"), |
| 92 | } |
| 93 | } |
| 94 | pub fn connection(&self) -> &PgPool { |
| 95 | self.pool |
| 96 | } |