Merge remote-tracking branch 'origin/main'

# Conflicts:
#	mysql-proxy/src/handler.rs
This commit is contained in:
lxy committed 2026-10-28 11:57:02 +08:00
commit ecdebdd6c0
3 files changed
+39

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
[server]
port = 3309
host = "127.0.0.1"
[pool]
idle_timeout_secs = 300
check_interval_secs = 60
[[connections]]
name = "suke_dev"
host = "39.99.243.191"
port = 27017
database = "suke"
username = "u_suke"
password = "123456"
[[connections]]
name = "suke_pro"
host = "39.100.50.215"
port = 27017
database = "suke_pro"
username = "u_suke"
password = "231122"
+2
View File
@@ -167,6 +167,7 @@ pub async fn query(
} }
}; };
let result = result.map_err(|e| { let result = result.map_err(|e| {
logger.log(&LogEntry::new("/query", "http").with_conn(&req.conn).with_sql(&req.sql).with_error(&e.1.error)); logger.log(&LogEntry::new("/query", "http").with_conn(&req.conn).with_sql(&req.sql).with_error(&e.1.error));
e e
@@ -224,6 +225,7 @@ pub async fn execute(
} }
}; };
let exec_result = exec_result.map_err(|e| { let exec_result = exec_result.map_err(|e| {
logger.log(&LogEntry::new("/execute", "http").with_conn(&req.conn).with_sql(&req.sql).with_error(&e.1.error)); logger.log(&LogEntry::new("/execute", "http").with_conn(&req.conn).with_sql(&req.sql).with_error(&e.1.error));
e e
+14
View File
@@ -0,0 +1,14 @@
[server]
port = 3310
host = "127.0.0.1"
[pool]
idle_timeout_secs = 300
check_interval_secs = 60
[[connections]]
name = "flux_dev"
host = "39.99.243.191"
port = 6379
password = "suke123!"
db = 0