This commit is contained in:
@@ -1,7 +1,20 @@
|
||||
[[sources]]
|
||||
id = "main"
|
||||
description = "当前项目库"
|
||||
description = "当前项目库测试环境以及本地环境"
|
||||
dsn = "postgresql://erp_pgsql:erp_2025@cxd.whcxd.cn:16159/junhong_cmp_test?sslmode=disable"
|
||||
lazy = true
|
||||
|
||||
|
||||
[[sources]]
|
||||
id = "pro_main"
|
||||
description = "当前项目库正式环境"
|
||||
dsn = "postgresql://junhong_cmp:CtCom1zBzPQbpVNf3rCNxH@127.0.0.1:5432/junhong_cmp_prod?sslmode=disable"
|
||||
ssh_host = "116.162.101.91"
|
||||
ssh_port = 22
|
||||
ssh_user = "root"
|
||||
ssh_key = "~/.ssh/id_ed25519"
|
||||
lazy = true
|
||||
|
||||
|
||||
[[sources]]
|
||||
id = "legacy_mysql"
|
||||
@@ -22,8 +35,18 @@ source = "main"
|
||||
[[tools]]
|
||||
name = "execute_sql"
|
||||
source = "main"
|
||||
readonly = true # Only allow SELECT, SHOW, DESCRIBE, EXPLAIN
|
||||
max_rows = 1000 # Limit query results
|
||||
readonly = true # Only allow SELECT, SHOW, DESCRIBE, EXPLAIN
|
||||
max_rows = 1000 # Limit query results
|
||||
|
||||
[[tools]]
|
||||
name = "search_objects"
|
||||
source = "pro_main"
|
||||
|
||||
[[tools]]
|
||||
name = "execute_sql"
|
||||
source = "pro_main"
|
||||
readonly = true
|
||||
max_rows = 1000
|
||||
|
||||
[[tools]]
|
||||
name = "search_objects"
|
||||
@@ -32,5 +55,5 @@ source = "legacy_mysql"
|
||||
[[tools]]
|
||||
name = "execute_sql"
|
||||
source = "legacy_mysql"
|
||||
readonly = true # Only allow SELECT, SHOW, DESCRIBE, EXPLAIN
|
||||
max_rows = 5000 # Limit query results for migration exploration
|
||||
readonly = true # Only allow SELECT, SHOW, DESCRIBE, EXPLAIN
|
||||
max_rows = 5000 # Limit query results for migration exploration
|
||||
|
||||
Reference in New Issue
Block a user