sql.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {
  2. "about": {
  3. "trial": true,
  4. "author": {
  5. "name": "EMQ",
  6. "email": "contact@emqx.io",
  7. "company": "EMQ Technologies Co., Ltd",
  8. "website": "https://www.emqx.io"
  9. },
  10. "helpUrl": {
  11. "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/rules/sinks/plugin/sql.md",
  12. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/rules/sinks/plugin/sql.md"
  13. },
  14. "description": {
  15. "en_US": "This a sink plugin for Sql based Database, it can be used for saving the analysis data into Sql based database.",
  16. "zh_CN": "本插件为 SQL Database 的持久化插件,可以用于将分析数据存入支持 SQL 语法的数据库中"
  17. }
  18. },
  19. "libs": [
  20. ],
  21. "properties": [{
  22. "name": "url",
  23. "default": "",
  24. "optional": false,
  25. "control": "text",
  26. "type": "string",
  27. "hint": {
  28. "en_US": "The url of the database",
  29. "zh_CN": "数据库服务器的 URL"
  30. },
  31. "label": {
  32. "en_US": "server address",
  33. "zh_CN": "数据库地址"
  34. }
  35. }, {
  36. "name": "table",
  37. "default": "",
  38. "optional": false,
  39. "control": "text",
  40. "type": "string",
  41. "hint": {
  42. "en_US": "Table name",
  43. "zh_CN": "表名"
  44. },
  45. "label": {
  46. "en_US": "Table name",
  47. "zh_CN": "表名"
  48. }
  49. }, {
  50. "name": "fields",
  51. "default": [],
  52. "optional": false,
  53. "control": "list",
  54. "type": "list_string",
  55. "hint": {
  56. "en_US": "Field of table",
  57. "zh_CN": "表字段"
  58. },
  59. "label": {
  60. "en_US": "Table field",
  61. "zh_CN": "表字段"
  62. }
  63. }
  64. ]
  65. }