Reuse reset MySQL connections per worker

This commit is contained in:
udo
2026-07-16 17:00:28 +00:00
parent b04ce3d005
commit 6a02c07bcb
11 changed files with 185 additions and 10 deletions
+2
View File
@@ -22,6 +22,7 @@ struct MySQL {
String statement_info = ""; //
bool request_cleanup_delete = false;
bool request_pooled = false;
bool worker_persistent = false;
u32 request_leases = 0;
String request_host;
String request_username;
@@ -30,6 +31,7 @@ struct MySQL {
std::vector<MySQLFieldInfo> field_info;
bool connect(String host = "localhost", String username = "root", String password = "");
bool reset_connection();
void disconnect();
String error();
String escape(String raw, char quote_char = '\'');