sql.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. default:
  2. interval: 10000
  3. url: mysql://user:test@140.210.204.147/user?parseTime=true
  4. internalSqlQueryCfg:
  5. table: test
  6. limit: 1
  7. indexField: registerTime
  8. indexValue: "2022-04-21 10:23:55"
  9. indexFieldType: "DATETIME"
  10. dateTimeFormat: "YYYY-MM-dd HH:mm:ss"
  11. lookup:
  12. cache: true
  13. cacheTtl: 600
  14. cacheMissingKey: true
  15. sqlserver_config:
  16. url: sqlserver://username:password@140.210.204.147/testdb
  17. internalSqlQueryCfg:
  18. table: Student
  19. limit: 10
  20. indexField: id
  21. indexValue: 1000
  22. # indexFieldType: "DATETIME"
  23. # dateTimeFormat: "YYYY-MM-dd HH:mm:ssSSS"
  24. # select top 10 * from Student where id > 1010 order by id ASC
  25. mysql_config:
  26. interval: 10000
  27. url: mysql://user:test@140.210.204.147/user?parseTime=true
  28. internalSqlQueryCfg:
  29. table: test
  30. limit: 1
  31. indexField: registerTime
  32. indexValue: "2022-04-21 10:23:55"
  33. indexFieldType: "DATETIME"
  34. dateTimeFormat: "YYYY-MM-dd HH:mm:ss"
  35. template_config:
  36. templateSqlQueryCfg:
  37. TemplateSql: "select * from table where entry_date > '{{.entry_date}}'"
  38. indexField: entry_date
  39. indexValue: "2022-04-13 06:22:32.233"
  40. indexFieldType: "DATETIME"
  41. dateTimeFormat: "YYYY-MM-dd HH:mm:ssSSS"