sql.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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://ekuiper.org/docs/en/latest/guide/sinks/plugin/sql.html",
  12. "zh_CN": "https://ekuiper.org/docs/zh/latest/guide/sinks/plugin/sql.html"
  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": "tableDataField",
  51. "default": "",
  52. "optional": true,
  53. "control": "text",
  54. "type": "string",
  55. "hint": {
  56. "en_US": "table Data from Stream Field",
  57. "zh_CN": "表数据来源"
  58. },
  59. "label": {
  60. "en_US": "Table Data from Stream Field",
  61. "zh_CN": "表数据来源"
  62. }
  63. },
  64. {
  65. "name": "rowkindField",
  66. "default": "",
  67. "optional": true,
  68. "control": "text",
  69. "type": "string",
  70. "hint": {
  71. "en_US": "Specify which field represents the action like insert or update. If not specified, all rows are default to insert",
  72. "zh_CN": "指定哪个字段表示操作,例如插入或更新。如果不指定,默认所有的数据都是插入操作"
  73. },
  74. "label": {
  75. "en_US": "Rowkind Field",
  76. "zh_CN": "动作字段"
  77. }
  78. },
  79. {
  80. "name": "keyField",
  81. "default": "",
  82. "optional": true,
  83. "control": "text",
  84. "type": "string",
  85. "hint": {
  86. "en_US": "Specify which field is the primary key. If rowKindField is set this field is required.",
  87. "zh_CN": "指定哪个字段为主键字段。如果设置了 rowKindField 则本属性必填。"
  88. },
  89. "label": {
  90. "en_US": "Key Field",
  91. "zh_CN": "Key 字段"
  92. }
  93. }
  94. ],
  95. "node": {
  96. "category": "sink",
  97. "icon": "iconPath",
  98. "label": {
  99. "en": "SQL",
  100. "zh": "SQL"
  101. }
  102. }
  103. }