sql.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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": "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. }