sql.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. sqlite_config:
  16. url: sqlite:/tmp/test.db
  17. sqlserver_config:
  18. url: sqlserver://username:password@140.210.204.147/testdb
  19. internalSqlQueryCfg:
  20. table: Student
  21. limit: 10
  22. indexField: id
  23. indexValue: 1000
  24. # indexFieldType: "DATETIME"
  25. # dateTimeFormat: "YYYY-MM-dd HH:mm:ssSSS"
  26. # select top 10 * from Student where id > 1010 order by id ASC
  27. mysql_config:
  28. interval: 10000
  29. url: mysql://user:test@140.210.204.147/user?parseTime=true
  30. internalSqlQueryCfg:
  31. table: test
  32. limit: 1
  33. indexField: registerTime
  34. indexValue: "2022-04-21 10:23:55"
  35. indexFieldType: "DATETIME"
  36. dateTimeFormat: "YYYY-MM-dd HH:mm:ss"
  37. template_config:
  38. templateSqlQueryCfg:
  39. TemplateSql: "select * from table where entry_date > '{{.entry_date}}'"
  40. indexField: entry_date
  41. indexValue: "2022-04-13 06:22:32.233"
  42. indexFieldType: "DATETIME"
  43. dateTimeFormat: "YYYY-MM-dd HH:mm:ssSSS"