MCPcopy Create free account
hub / github.com/Migorithm/rustiful-backend / transaction

Method transaction

library/src/adapters/database.rs:88–93  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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 }

Callers 3

updateMethod · 0.80
_addMethod · 0.80
_updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected