feat: enhance MySQL connection handling with bare option and optimize component imports

This commit is contained in:
t8y2 committed 2026-05-02 23:25:39 +08:00
1 parent db31a7c45e
commit f598b5a91c
7 files changed
+102 -55

No files matched your search

+3 -2
View File
@@ -140,10 +140,11 @@ async fn do_execute(
})
.await
}
PoolKind::Mysql(p) => {
PoolKind::Mysql(p, bare) => {
let p = p.clone();
let bare = *bare;
drop(connections);
wait_for_query(cancel_token, db::mysql::execute_query(&p, sql))
wait_for_query(cancel_token, db::mysql::execute_query(&p, sql, bare))
.await
.map(truncate_result)
}