数据同步
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.toml 1.2KB

12345678910111213141516171819202122232425262728293031323334
  1. [server]
  2. #host = "10.180.4.88"
  3. host = "127.0.0.1"
  4. port = 9090
  5. [client]
  6. # 定时任务配置
  7. interval_seconds = 3600 # 每隔多少秒执行一次
  8. max_retries = 3
  9. read_timeout_secs = 10
  10. write_timeout_secs = 10
  11. retry_delay_secs = 2
  12. [database]
  13. host = "10.180.4.100"
  14. port = 5432
  15. name = "Auseft_RL_Web"
  16. user = "postgres"
  17. password = "Auseft@2025qwer"
  18. # 要同步的表配置
  19. [[tables]]
  20. name = "comm_bm_vehicleinfo"
  21. query = "SELECT id, licenseplate, type, grosswt::text as grosswt, tarewt::text as tarewt, owner, dl, supervision, outage, insurancedate, insurancenum, lock, transcompany, createdby, creationtime, modifiedby, modifiedtime, reviewed, reviewedby, reviewedtime, remarks, phonenumber, electronicnumber, rfidmodifiedtime, rfidstop, rfidstopby, rfidstoptime, rfidgrantby, rfidgranttime, samplingpoints, drawbar, carriagelength::text as carriagelength , carriagewidth::text as carriagewidth, carriageheight::text as carriageheight, underbodyheight::text as underbodyheight, frontsampling, backsampling, rod1::text as rod1, rod2::text as rod2, rod3::text as rod3, rod4::text as rod4, rod5::text as rod5, rod6::text as rod6, supplier_id, supplier_name, material_id, material_name,group_type FROM public.comm_bm_vehicleinfo"
  22. incremental = false
  23. key_field = "UpdateTime"