forked from elasticio/mssql-component
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomponent.json
147 lines (147 loc) · 4.48 KB
/
component.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"title": "SQL Server",
"description": "elastic.io integration component for Microsoft SQL Server",
"version": "1.1.5",
"credentials": {
"fields": {
"server": {
"label": "Server",
"required": true,
"viewClass": "TextFieldView",
"placeholder": "localhost",
"help": {
"description": "Server to connect. You can use 'host\\\\instance' to connect to named instance."
}
},
"database": {
"label": "Database Name",
"required": true,
"viewClass": "TextFieldView",
"placeholder": "database",
"help": {
"description": "Database to connect. Default is dependent on server configuration."
}
},
"username": {
"label": "Username",
"required": true,
"viewClass": "TextFieldView",
"placeholder": "username",
"help": {
"description": "User name to use for authentication with the database."
}
},
"password": {
"label": "Password",
"required": true,
"viewClass": "PasswordFieldView",
"placeholder": "password",
"help": {
"description": "Password to use for authentication with the database."
}
},
"port": {
"label": "Port",
"required": false,
"viewClass": "TextFieldView",
"placeholder": "1433",
"help": {
"description": "Port to connect. If not provided default port 1433 is used. Don't set when connecting to named instance."
}
},
"domain": {
"label": "Domain",
"required": false,
"viewClass": "TextFieldView",
"placeholder": "domain",
"help": {
"description": "If domain is provided, the connection to SQL Server will be done using domain login."
}
},
"encrypt": {
"label": "Encrypt",
"viewClass": "CheckBoxView",
"help": {
"description": "Enable this option if you're using Windows Azure"
}
}
}
},
"actions": {
"insert": {
"title": "INSERT/UPDATE/DELETE",
"main": "./lib/actions/insert.js",
"help": {
"description": "Executes a single SQL statement that causes database data update and returns a number of affected records, like INSERT, UPDATE or DELETE",
"link": "/components/mssql/index.html#insertdeleteupdate-action"
},
"fields": {
"query": {
"label": "SQL Query",
"required": true,
"viewClass": "TextAreaWithNoteView",
"placeholder": "INSERT INTO films (code,title,kind) VALUES (@code:number,@title:string,@kind:string)",
"help": {
"description": "SQL query to execute. You can use parameters of message body as '@value:number' and type is ':type'"
}
}
},
"dynamicMetadata": true
},
"selectAction": {
"title": "SELECT",
"main": "./lib/actions/select.js",
"help": {
"description": "Executes a SELECT statement that fetches potentially multiple database rows from the database",
"link": "/components/mssql/index.html#select-action"
},
"metadata": {
"in": {
"type": "object",
"properties": {
"query": {
"type": "string",
"title": "SQL SELECT Statement",
"required": true,
"description": "Executes a SELECT statement that fetches potentially multiple database rows from the database"
}
}
}
}
}
},
"triggers": {
"selectTrigger": {
"title": "SQL SELECT Statement",
"main": "./lib/actions/select.js",
"type": "polling",
"help": {
"description": "Executes a SELECT statement that fetches potentially multiple database rows from the database",
"link": "/components/mssql/index.html#select-trigger-and-action"
},
"fields": {
"query": {
"label": "SQL SELECT Statement",
"required": true,
"viewClass": "TextAreaWithNoteView",
"placeholder": "SELECT * FROM Employee WHERE EmpID = 322",
"help": {
"description": "SQL SELECT Statement to execute"
}
}
},
"metadata": {
"in": {
"type": "object",
"properties": {
"query": {
"type": "string",
"title": "SQL Query",
"required": true
}
}
}
}
}
}
}