123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- {
- "about": {
- "trial": true,
- "author": {
- "name": "EMQ",
- "email": "contact@emqx.io",
- "company": "EMQ Technologies Co., Ltd",
- "website": "https://www.emqx.io"
- },
- "helpUrl": {
- "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/rules/sources/plugin/sql.md",
- "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/rules/sources/plugin/sql.md"
- },
- "description": {
- "en_US": "Read message from sql database",
- "zh_CN": "从数据库中读取消息"
- }
- },
- "libs": [],
- "properties": {
- "default": [
- {
- "name": "url",
- "default": "",
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "The url of the database",
- "zh_CN": "数据库服务器的 URL"
- },
- "label": {
- "en_US": "server address",
- "zh_CN": "数据库地址"
- }
- },
- {
- "name": "interval",
- "default": 1000,
- "optional": false,
- "control": "text",
- "type": "int",
- "hint": {
- "en_US": "The interval (ms) to issue a query",
- "zh_CN": "发出消息的间隔(毫秒)"
- },
- "label": {
- "en_US": "Interval",
- "zh_CN": "间隔时间"
- }
- },
- {
- "name": "internalSqlQueryCfg",
- "default": [
- {
- "name": "table",
- "default": "tableName",
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "table name to query",
- "zh_CN": "指定查询的数据库表名"
- },
- "label": {
- "en_US": "tableName",
- "zh_CN": "表名"
- }
- },
- {
- "name": "indexField",
- "default": "",
- "optional": true,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "index field",
- "zh_CN": "索引字段名"
- },
- "label": {
- "en_US": "indexField",
- "zh_CN": "索引字段名"
- }
- },
- {
- "name": "indexValue",
- "default": "",
- "optional": true,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "index init value",
- "zh_CN": "索引字段初始值"
- },
- "label": {
- "en_US": "index init value",
- "zh_CN": "索引字段初始值"
- }
- },
- {
- "name": "limit",
- "default": 10,
- "optional": true,
- "control": "text",
- "type": "int",
- "hint": {
- "en_US": "query result limit",
- "zh_CN": "查询结果条数限制"
- },
- "label": {
- "en_US": "Limit",
- "zh_CN": "查询条数限制"
- }
- },
- {
- "name": "indexFieldType",
- "default": "",
- "optional": true,
- "control": "select",
- "type": "string",
- "values": ["DATETIME"],
- "hint": {
- "en_US": "is the index datetime type",
- "zh_CN": "是否为时间格式"
- },
- "label": {
- "en_US": "indexFieldType",
- "zh_CN": "indexFieldType"
- }
- },
- {
- "name": "dateTimeFormat",
- "default": "",
- "optional": true,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "dateTimeFormat",
- "zh_CN": "dateTimeFormat"
- },
- "label": {
- "en_US": "dateTimeFormat",
- "zh_CN": "dateTimeFormat"
- }
- }
- ],
- "optional": true,
- "control": "list",
- "type": "list_object",
- "hint": {
- "en_US": "basic configuration for the query",
- "zh_CN": "查询基础配置"
- },
- "label": {
- "en_US": "Query Parameters",
- "zh_CN": "查询参数"
- }
- },
- {
- "name": "templateSqlQueryCfg",
- "default": [
- {
- "name": "TemplateSql",
- "default": "",
- "optional": false,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "query template",
- "zh_CN": "查询语句模版"
- },
- "label": {
- "en_US": "query template",
- "zh_CN": "查询语句模版"
- }
- },
- {
- "name": "indexField",
- "default": "",
- "optional": true,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "index field",
- "zh_CN": "索引字段名"
- },
- "label": {
- "en_US": "indexField",
- "zh_CN": "索引字段名"
- }
- },
- {
- "name": "indexValue",
- "default": "",
- "optional": true,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "index init value",
- "zh_CN": "索引字段初始值"
- },
- "label": {
- "en_US": "index init value",
- "zh_CN": "索引字段初始值"
- }
- },
- {
- "name": "indexFieldType",
- "default": "",
- "optional": true,
- "control": "select",
- "type": "string",
- "values": ["DATETIME"],
- "hint": {
- "en_US": "is the index datetime type",
- "zh_CN": "是否为时间格式"
- },
- "label": {
- "en_US": "indexFieldType",
- "zh_CN": "indexFieldType"
- }
- },
- {
- "name": "dateTimeFormat",
- "default": "",
- "optional": true,
- "control": "text",
- "type": "string",
- "hint": {
- "en_US": "dateTimeFormat",
- "zh_CN": "dateTimeFormat"
- },
- "label": {
- "en_US": "dateTimeFormat",
- "zh_CN": "dateTimeFormat"
- }
- }
- ],
- "optional": true,
- "control": "list",
- "type": "list_object",
- "hint": {
- "en_US": "Query Template",
- "zh_CN": "查询模版"
- },
- "label": {
- "en_US": "Query Template",
- "zh_CN": "查询模版"
- }
- }
- ]
- }
- }
|