sql.yaml 924 B

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