We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29aefdd commit 368e6c5Copy full SHA for 368e6c5
src/modules/db/sqlx/mod.rs
@@ -824,7 +824,7 @@ fn with_transaction<R, C: FnOnce(&Arc<SqlxTransaction>) -> R>(
824
})
825
}
826
827
-fn store_connection(con: Arc<SqlxConnection>) -> usize {
+pub fn store_connection(con: Arc<SqlxConnection>) -> usize {
828
CONNECTIONS.with(|rc| {
829
let map = &mut rc.borrow_mut();
830
map.insert(con)
@@ -838,7 +838,7 @@ fn drop_connection(proxy_instance_id: &usize) {
838
839
840
841
-fn store_transaction(tx: SqlxTransaction) -> usize {
+pub fn store_transaction(tx: SqlxTransaction) -> usize {
842
TRANSACTIONS.with(|rc| {
843
let map = &mut *rc.borrow_mut();
844
map.insert(Arc::new(tx))
0 commit comments