sql.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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. "name": "fields",
  65. "default": [],
  66. "optional": true,
  67. "control": "list",
  68. "type": "list_string",
  69. "hint": {
  70. "en_US": "Field of table",
  71. "zh_CN": "表字段"
  72. },
  73. "label": {
  74. "en_US": "Table field",
  75. "zh_CN": "表字段"
  76. }
  77. },
  78. {
  79. "name": "rowkindField",
  80. "default": "",
  81. "optional": true,
  82. "control": "text",
  83. "type": "string",
  84. "hint": {
  85. "en_US": "Specify which field represents the action like insert or update. If not specified, all rows are default to insert",
  86. "zh_CN": "指定哪个字段表示操作,例如插入或更新。如果不指定,默认所有的数据都是插入操作"
  87. },
  88. "label": {
  89. "en_US": "Rowkind Field",
  90. "zh_CN": "动作字段"
  91. }
  92. },
  93. {
  94. "name": "keyField",
  95. "default": "",
  96. "optional": true,
  97. "control": "text",
  98. "type": "string",
  99. "hint": {
  100. "en_US": "Specify which field is the primary key. If rowKindField is set this field is required.",
  101. "zh_CN": "指定哪个字段为主键字段。如果设置了 rowKindField 则本属性必填。"
  102. },
  103. "label": {
  104. "en_US": "Key Field",
  105. "zh_CN": "Key 字段"
  106. }
  107. }
  108. ],
  109. "node": {
  110. "category": "sink",
  111. "icon": "iconPath",
  112. "label": {
  113. "en": "SQL",
  114. "zh": "SQL"
  115. }
  116. }
  117. }