Lines Matching refs:tx
63 .and_then(|tx| f(&tx).map(|result| (result, tx))) in with_transaction()
64 .and_then(|(result, tx)| { in with_transaction()
65 tx.commit().context("In with_transaction: Failed to commit transaction.")?; in with_transaction()
90 self.with_transaction(TransactionBehavior::Immediate, |tx| { in init_tables()
91 tx.execute( in init_tables()
105 self.with_transaction(TransactionBehavior::Deferred, |tx| { in list()
106 let mut stmt = tx in list()
119 self.with_transaction(TransactionBehavior::Immediate, |tx| { in put()
120 tx.execute( in put()
130 self.with_transaction(TransactionBehavior::Deferred, |tx| { in get()
131 tx.query_row( in get()
142 let removed = self.with_transaction(TransactionBehavior::Immediate, |tx| { in remove()
143 tx.execute( in remove()
153 self.with_transaction(TransactionBehavior::Immediate, |tx| { in remove_uid()
154 tx.execute("DELETE FROM profiles WHERE owner = ?;", params![uid]) in remove_uid()
161 self.with_transaction(TransactionBehavior::Immediate, |tx| { in remove_user()
162 tx.execute( in remove_user()