thirsd opened a new issue, #8941:
URL: https://github.com/apache/seatunnel/issues/8941

   ### Search before asking
   
   - [x] I had searched in the 
[feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22)
 and found no similar feature requirement.
   
   
   ### Description
   
   支持连接配置统一管理和引用,方便配置复用和配置在开发和线上分离
   
   connection configuration
   
   I hope to maintain the connection configuration information uniformly and 
reference it in the Job configuration by using the conn_id method, thereby 
achieving the reuse of connection information and facilitating the decoupling 
of the test environment and the online environment.
   
   example:
   connection.conf
   `connection {
     # 定义 MySQL 连接配置
     mysql_prod {
       url = "jdbc:mysql://localhost:3306/test"
       driver = "com.mysql.cj.jdbc.Driver"
       connection_check_timeout_sec = 100
       user = "root"
       password = "123456"
       fetch_size = 10000
     }
   
     # 定义 Kafka 连接配置
     kafka_test {
       bootstrap.servers = "kafka-test:9092"
       topic = "test_topic"
     }
     
     sqlite_test {
       url = 
"jdbc:sqlite:D://MyWorld/05Projects/java/Seatunnel/SeaTunnel/db/test.db"
       driver = "org.sqlite.JDBC"
       connection_check_timeout_sec = 100
       user = "root"
       password = "123456"
       fetch_size = 10000
     }
   }
   `
   
   in job config, i can use conn_id to replace connect config.
   `env {
     parallelism = 1
     job.mode = "BATCH"
   }
   
   source {
     Jdbc {
       conn_id = "sqlite_test"
       query="select * from department"
     }
   }
   
   transform {
   }
   
   sink {
     console {
     }
   }`
   
   
   
   ### Usage Scenario
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to