@aaqu/fromcubes-db 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/NOTICE +24 -0
- package/README.md +442 -2
- package/SECURITY.md +75 -0
- package/THIRD-PARTY-NOTICES.md +151 -0
- package/examples/Quick Start/All Databases.json +1719 -0
- package/examples/Quick Start/ClickHouse.json +278 -0
- package/examples/Quick Start/CockroachDB.json +280 -0
- package/examples/Quick Start/Firebird.json +278 -0
- package/examples/Quick Start/MariaDB.json +281 -0
- package/examples/Quick Start/MySQL.json +281 -0
- package/examples/Quick Start/Oracle.json +280 -0
- package/examples/Quick Start/PostgreSQL.json +280 -0
- package/examples/Quick Start/SQL Server.json +282 -0
- package/examples/Quick Start/SQLite.json +278 -0
- package/examples/Quick Start/TiDB.json +281 -0
- package/examples/Quick Start/YugabyteDB.json +280 -0
- package/examples/SQLite Sensor Log With Portal.json +391 -0
- package/examples/Select With Parameters.json +130 -0
- package/index.js +32 -0
- package/lib/adapters/clickhouse.js +254 -0
- package/lib/adapters/firebird.js +416 -0
- package/lib/adapters/index.js +37 -0
- package/lib/adapters/mssql.js +178 -0
- package/lib/adapters/mysql.js +171 -0
- package/lib/adapters/oracle.js +272 -0
- package/lib/adapters/postgres.js +161 -0
- package/lib/adapters/read.js +57 -0
- package/lib/adapters/sqlite.js +193 -0
- package/lib/adapters/time.js +89 -0
- package/lib/bound.js +29 -0
- package/lib/editor-api.js +134 -0
- package/lib/editor-preview.js +191 -0
- package/lib/errors.js +66 -0
- package/lib/params.js +966 -0
- package/lib/pool.js +391 -0
- package/lib/settings.js +302 -0
- package/lib/sql/compile.js +160 -0
- package/lib/sql/dialect.js +194 -0
- package/lib/sql/parse.js +202 -0
- package/lib/sql/types.js +1071 -0
- package/lib/sqlite-files.js +137 -0
- package/nodes/connection.html +728 -0
- package/nodes/connection.js +179 -0
- package/nodes/editor/ark-pixel.LICENSE.txt +96 -0
- package/nodes/editor/ark-pixel.woff2 +0 -0
- package/nodes/editor/mark.svg +5 -0
- package/nodes/editor/sql-editor.css +604 -0
- package/nodes/editor/sql-editor.js +1490 -0
- package/nodes/editor/sql-model.js +203 -0
- package/nodes/icons/fromcubes-db.svg +24 -0
- package/nodes/query.html +662 -0
- package/nodes/query.js +195 -0
- package/package.json +81 -4
|
@@ -0,0 +1,1719 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "fcdb-qs-all",
|
|
4
|
+
"type": "tab",
|
|
5
|
+
"label": "All databases quick start",
|
|
6
|
+
"disabled": false,
|
|
7
|
+
"info": "**What:** every database at once — the rows of the single Quick Start flows on one tab. On deploy each creates `fromcubes_demo`; the buttons on the left insert, read and clear on all of them.\n\n**How:** start the servers (MariaDB on 3307, beside MySQL's 3306):\n\n docker run -d --name fromcubes-postgres -p 5432:5432 -e POSTGRES_USER=test -e POSTGRES_PASSWORD=test -e POSTGRES_DB=test postgres:19.0-alpine\n docker run -d --name fromcubes-cockroachdb -p 26257:26257 cockroachdb/cockroach:v26.4.1 start-single-node --insecure --accept-sql-without-tls\n docker run -d --name fromcubes-yugabytedb -p 5433:5433 yugabytedb/yugabyte:2026.1.3.1-b6 bin/yugabyted start --background=false\n docker run -d --name fromcubes-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=test -e MYSQL_USER=test -e MYSQL_PASSWORD=test mysql:26.10\n docker run -d --name fromcubes-mariadb -p 3307:3306 -e MARIADB_ROOT_PASSWORD=root -e MARIADB_DATABASE=test -e MARIADB_USER=test -e MARIADB_PASSWORD=test mariadb:13.1\n docker run -d --name fromcubes-tidb -p 4000:4000 pingcap/tidb:v8.5.8\n docker run -d --platform linux/amd64 --name fromcubes-mssql -p 1433:1433 -e ACCEPT_EULA=Y -e 'MSSQL_SA_PASSWORD=Str0ng!Passw0rd' mcr.microsoft.com/mssql/server:2025-latest\n docker run -d --name fromcubes-oracle -p 1521:1521 -e ORACLE_PASSWORD=test -e APP_USER=test -e APP_USER_PASSWORD=test gvenzl/oracle-free:23.26.4-slim-faststart\n docker run -d --name fromcubes-firebird -p 3050:3050 -e FIREBIRD_ROOT_PASSWORD=root -e FIREBIRD_USER=test -e FIREBIRD_PASSWORD=test -e FIREBIRD_DATABASE=test.fdb -e FIREBIRD_DATABASE_DEFAULT_CHARSET=UTF8 firebirdsql/firebird:5.0.3\n docker run -d --name fromcubes-clickhouse -p 8123:8123 -e CLICKHOUSE_USER=test -e CLICKHOUSE_PASSWORD=test -e CLICKHOUSE_DB=test -e CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 clickhouse/clickhouse-server:26.11\n\nEnter each connection's user and password (an example cannot carry credentials):\n\n- PostgreSQL: `test` / `test`\n- CockroachDB: `root` / no password\n- YugabyteDB: `yugabyte` / `yugabyte`\n- MySQL: `test` / `test`\n- MariaDB: `test` / `test`\n- TiDB: `root` / no password\n- SQL Server: `sa` / `Str0ng!Passw0rd`\n- Oracle: `test` / `test`\n- Firebird: `test` / `test`\n- ClickHouse: `test` / `test`\n\n**Trust server certificate** is on for SQL Server's self-signed container certificate — turn it off for a real server. A database that is not running only fails its own row.\n\n**Expected:** each database's result in the Debug sidebar and the Node-RED log under its name; errors under **error**, with the node that raised them."
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"id": "fcdb-qs-all-note",
|
|
11
|
+
"type": "comment",
|
|
12
|
+
"z": "fcdb-qs-all",
|
|
13
|
+
"name": "every database: create → insert → select → clear (see the tab's info)",
|
|
14
|
+
"info": "**What:** every database at once — the rows of the single Quick Start flows on one tab. On deploy each creates `fromcubes_demo`; the buttons on the left insert, read and clear on all of them.\n\n**How:** start the servers (MariaDB on 3307, beside MySQL's 3306):\n\n docker run -d --name fromcubes-postgres -p 5432:5432 -e POSTGRES_USER=test -e POSTGRES_PASSWORD=test -e POSTGRES_DB=test postgres:19.0-alpine\n docker run -d --name fromcubes-cockroachdb -p 26257:26257 cockroachdb/cockroach:v26.4.1 start-single-node --insecure --accept-sql-without-tls\n docker run -d --name fromcubes-yugabytedb -p 5433:5433 yugabytedb/yugabyte:2026.1.3.1-b6 bin/yugabyted start --background=false\n docker run -d --name fromcubes-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=test -e MYSQL_USER=test -e MYSQL_PASSWORD=test mysql:26.10\n docker run -d --name fromcubes-mariadb -p 3307:3306 -e MARIADB_ROOT_PASSWORD=root -e MARIADB_DATABASE=test -e MARIADB_USER=test -e MARIADB_PASSWORD=test mariadb:13.1\n docker run -d --name fromcubes-tidb -p 4000:4000 pingcap/tidb:v8.5.8\n docker run -d --platform linux/amd64 --name fromcubes-mssql -p 1433:1433 -e ACCEPT_EULA=Y -e 'MSSQL_SA_PASSWORD=Str0ng!Passw0rd' mcr.microsoft.com/mssql/server:2025-latest\n docker run -d --name fromcubes-oracle -p 1521:1521 -e ORACLE_PASSWORD=test -e APP_USER=test -e APP_USER_PASSWORD=test gvenzl/oracle-free:23.26.4-slim-faststart\n docker run -d --name fromcubes-firebird -p 3050:3050 -e FIREBIRD_ROOT_PASSWORD=root -e FIREBIRD_USER=test -e FIREBIRD_PASSWORD=test -e FIREBIRD_DATABASE=test.fdb -e FIREBIRD_DATABASE_DEFAULT_CHARSET=UTF8 firebirdsql/firebird:5.0.3\n docker run -d --name fromcubes-clickhouse -p 8123:8123 -e CLICKHOUSE_USER=test -e CLICKHOUSE_PASSWORD=test -e CLICKHOUSE_DB=test -e CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT=1 clickhouse/clickhouse-server:26.11\n\nEnter each connection's user and password (an example cannot carry credentials):\n\n- PostgreSQL: `test` / `test`\n- CockroachDB: `root` / no password\n- YugabyteDB: `yugabyte` / `yugabyte`\n- MySQL: `test` / `test`\n- MariaDB: `test` / `test`\n- TiDB: `root` / no password\n- SQL Server: `sa` / `Str0ng!Passw0rd`\n- Oracle: `test` / `test`\n- Firebird: `test` / `test`\n- ClickHouse: `test` / `test`\n\n**Trust server certificate** is on for SQL Server's self-signed container certificate — turn it off for a real server. A database that is not running only fails its own row.\n\n**Expected:** each database's result in the Debug sidebar and the Node-RED log under its name; errors under **error**, with the node that raised them.",
|
|
15
|
+
"x": 300,
|
|
16
|
+
"y": 40,
|
|
17
|
+
"wires": []
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"id": "fcdb-qs-all-on-deploy",
|
|
21
|
+
"type": "inject",
|
|
22
|
+
"z": "fcdb-qs-all",
|
|
23
|
+
"name": "on deploy: create all",
|
|
24
|
+
"props": [
|
|
25
|
+
{
|
|
26
|
+
"p": "payload"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"repeat": "",
|
|
30
|
+
"crontab": "",
|
|
31
|
+
"once": true,
|
|
32
|
+
"onceDelay": "1",
|
|
33
|
+
"topic": "",
|
|
34
|
+
"payload": "",
|
|
35
|
+
"payloadType": "date",
|
|
36
|
+
"x": 170,
|
|
37
|
+
"y": 100,
|
|
38
|
+
"wires": [
|
|
39
|
+
[
|
|
40
|
+
"fcdb-qs-all-postgres-create",
|
|
41
|
+
"fcdb-qs-all-cockroachdb-create",
|
|
42
|
+
"fcdb-qs-all-yugabytedb-create",
|
|
43
|
+
"fcdb-qs-all-mysql-create",
|
|
44
|
+
"fcdb-qs-all-mariadb-create",
|
|
45
|
+
"fcdb-qs-all-tidb-create",
|
|
46
|
+
"fcdb-qs-all-mssql-create",
|
|
47
|
+
"fcdb-qs-all-oracle-create",
|
|
48
|
+
"fcdb-qs-all-firebird-create",
|
|
49
|
+
"fcdb-qs-all-clickhouse-create",
|
|
50
|
+
"fcdb-qs-all-sqlite-create"
|
|
51
|
+
]
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"id": "fcdb-qs-all-go",
|
|
56
|
+
"type": "inject",
|
|
57
|
+
"z": "fcdb-qs-all",
|
|
58
|
+
"name": "insert into all",
|
|
59
|
+
"props": [
|
|
60
|
+
{
|
|
61
|
+
"p": "payload"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"repeat": "",
|
|
65
|
+
"crontab": "",
|
|
66
|
+
"once": false,
|
|
67
|
+
"onceDelay": "0.1",
|
|
68
|
+
"topic": "",
|
|
69
|
+
"payload": "{\"note\":\"hello\",\"reading\":21.5}",
|
|
70
|
+
"payloadType": "json",
|
|
71
|
+
"x": 150,
|
|
72
|
+
"y": 140,
|
|
73
|
+
"wires": [
|
|
74
|
+
[
|
|
75
|
+
"fcdb-qs-all-postgres-insert",
|
|
76
|
+
"fcdb-qs-all-cockroachdb-insert",
|
|
77
|
+
"fcdb-qs-all-yugabytedb-insert",
|
|
78
|
+
"fcdb-qs-all-mysql-insert",
|
|
79
|
+
"fcdb-qs-all-mariadb-insert",
|
|
80
|
+
"fcdb-qs-all-tidb-insert",
|
|
81
|
+
"fcdb-qs-all-mssql-insert",
|
|
82
|
+
"fcdb-qs-all-oracle-insert",
|
|
83
|
+
"fcdb-qs-all-firebird-insert",
|
|
84
|
+
"fcdb-qs-all-clickhouse-insert",
|
|
85
|
+
"fcdb-qs-all-sqlite-insert"
|
|
86
|
+
]
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "fcdb-qs-all-read",
|
|
91
|
+
"type": "inject",
|
|
92
|
+
"z": "fcdb-qs-all",
|
|
93
|
+
"name": "read all",
|
|
94
|
+
"props": [
|
|
95
|
+
{
|
|
96
|
+
"p": "payload"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"repeat": "",
|
|
100
|
+
"crontab": "",
|
|
101
|
+
"once": false,
|
|
102
|
+
"onceDelay": "0.1",
|
|
103
|
+
"topic": "",
|
|
104
|
+
"payload": "",
|
|
105
|
+
"payloadType": "date",
|
|
106
|
+
"x": 380,
|
|
107
|
+
"y": 100,
|
|
108
|
+
"wires": [
|
|
109
|
+
[
|
|
110
|
+
"fcdb-qs-all-postgres-select",
|
|
111
|
+
"fcdb-qs-all-cockroachdb-select",
|
|
112
|
+
"fcdb-qs-all-yugabytedb-select",
|
|
113
|
+
"fcdb-qs-all-mysql-select",
|
|
114
|
+
"fcdb-qs-all-mariadb-select",
|
|
115
|
+
"fcdb-qs-all-tidb-select",
|
|
116
|
+
"fcdb-qs-all-mssql-select",
|
|
117
|
+
"fcdb-qs-all-oracle-select",
|
|
118
|
+
"fcdb-qs-all-firebird-select",
|
|
119
|
+
"fcdb-qs-all-clickhouse-select",
|
|
120
|
+
"fcdb-qs-all-sqlite-select"
|
|
121
|
+
]
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"id": "fcdb-qs-all-wipe",
|
|
126
|
+
"type": "inject",
|
|
127
|
+
"z": "fcdb-qs-all",
|
|
128
|
+
"name": "clear all",
|
|
129
|
+
"props": [
|
|
130
|
+
{
|
|
131
|
+
"p": "payload"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"repeat": "",
|
|
135
|
+
"crontab": "",
|
|
136
|
+
"once": false,
|
|
137
|
+
"onceDelay": "0.1",
|
|
138
|
+
"topic": "",
|
|
139
|
+
"payload": "",
|
|
140
|
+
"payloadType": "date",
|
|
141
|
+
"x": 380,
|
|
142
|
+
"y": 140,
|
|
143
|
+
"wires": [
|
|
144
|
+
[
|
|
145
|
+
"fcdb-qs-all-postgres-clear",
|
|
146
|
+
"fcdb-qs-all-cockroachdb-clear",
|
|
147
|
+
"fcdb-qs-all-yugabytedb-clear",
|
|
148
|
+
"fcdb-qs-all-mysql-clear",
|
|
149
|
+
"fcdb-qs-all-mariadb-clear",
|
|
150
|
+
"fcdb-qs-all-tidb-clear",
|
|
151
|
+
"fcdb-qs-all-mssql-clear",
|
|
152
|
+
"fcdb-qs-all-oracle-clear",
|
|
153
|
+
"fcdb-qs-all-firebird-clear",
|
|
154
|
+
"fcdb-qs-all-clickhouse-clear",
|
|
155
|
+
"fcdb-qs-all-sqlite-clear"
|
|
156
|
+
]
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "fcdb-qs-all-catch",
|
|
161
|
+
"type": "catch",
|
|
162
|
+
"z": "fcdb-qs-all",
|
|
163
|
+
"name": "database errors",
|
|
164
|
+
"scope": null,
|
|
165
|
+
"uncaught": false,
|
|
166
|
+
"x": 590,
|
|
167
|
+
"y": 100,
|
|
168
|
+
"wires": [
|
|
169
|
+
[
|
|
170
|
+
"fcdb-qs-all-error"
|
|
171
|
+
]
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "fcdb-qs-all-error",
|
|
176
|
+
"type": "debug",
|
|
177
|
+
"z": "fcdb-qs-all",
|
|
178
|
+
"name": "error",
|
|
179
|
+
"active": true,
|
|
180
|
+
"tosidebar": true,
|
|
181
|
+
"console": true,
|
|
182
|
+
"tostatus": false,
|
|
183
|
+
"complete": "true",
|
|
184
|
+
"targetType": "full",
|
|
185
|
+
"statusVal": "",
|
|
186
|
+
"statusType": "auto",
|
|
187
|
+
"x": 780,
|
|
188
|
+
"y": 100,
|
|
189
|
+
"wires": []
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"id": "fcdb-qs-all-postgres-label",
|
|
193
|
+
"type": "comment",
|
|
194
|
+
"z": "fcdb-qs-all",
|
|
195
|
+
"name": "PostgreSQL",
|
|
196
|
+
"info": "",
|
|
197
|
+
"x": 110,
|
|
198
|
+
"y": 200,
|
|
199
|
+
"wires": []
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "fcdb-qs-all-postgres-create",
|
|
203
|
+
"type": "fromcubes-db-query",
|
|
204
|
+
"z": "fcdb-qs-all",
|
|
205
|
+
"name": "create table",
|
|
206
|
+
"connection": "fcdb-qs-all-postgres-conn",
|
|
207
|
+
"sql": "CREATE TABLE IF NOT EXISTS fromcubes_demo (\n id BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n note TEXT NOT NULL,\n reading DOUBLE PRECISION,\n created_at TIMESTAMPTZ NOT NULL DEFAULT now()\n)",
|
|
208
|
+
"params": [],
|
|
209
|
+
"output": "count",
|
|
210
|
+
"target": "payload",
|
|
211
|
+
"timeoutMs": "",
|
|
212
|
+
"x": 290,
|
|
213
|
+
"y": 200,
|
|
214
|
+
"wires": [
|
|
215
|
+
[
|
|
216
|
+
"fcdb-qs-all-postgres-debug"
|
|
217
|
+
]
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "fcdb-qs-all-postgres-insert",
|
|
222
|
+
"type": "fromcubes-db-query",
|
|
223
|
+
"z": "fcdb-qs-all",
|
|
224
|
+
"name": "insert",
|
|
225
|
+
"connection": "fcdb-qs-all-postgres-conn",
|
|
226
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
227
|
+
"params": [
|
|
228
|
+
{
|
|
229
|
+
"name": "note",
|
|
230
|
+
"type": "msg",
|
|
231
|
+
"value": "payload.note",
|
|
232
|
+
"as": "text"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "reading",
|
|
236
|
+
"type": "msg",
|
|
237
|
+
"value": "payload.reading",
|
|
238
|
+
"as": "double precision"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"output": "count",
|
|
242
|
+
"target": "inserted",
|
|
243
|
+
"timeoutMs": "",
|
|
244
|
+
"x": 450,
|
|
245
|
+
"y": 200,
|
|
246
|
+
"wires": [
|
|
247
|
+
[
|
|
248
|
+
"fcdb-qs-all-postgres-select"
|
|
249
|
+
]
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": "fcdb-qs-all-postgres-select",
|
|
254
|
+
"type": "fromcubes-db-query",
|
|
255
|
+
"z": "fcdb-qs-all",
|
|
256
|
+
"name": "latest 10",
|
|
257
|
+
"connection": "fcdb-qs-all-postgres-conn",
|
|
258
|
+
"sql": "SELECT id, note, reading, created_at\nFROM fromcubes_demo\nORDER BY id DESC\nLIMIT 10",
|
|
259
|
+
"params": [],
|
|
260
|
+
"output": "rows",
|
|
261
|
+
"target": "payload",
|
|
262
|
+
"timeoutMs": "",
|
|
263
|
+
"x": 610,
|
|
264
|
+
"y": 200,
|
|
265
|
+
"wires": [
|
|
266
|
+
[
|
|
267
|
+
"fcdb-qs-all-postgres-debug"
|
|
268
|
+
]
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"id": "fcdb-qs-all-postgres-clear",
|
|
273
|
+
"type": "fromcubes-db-query",
|
|
274
|
+
"z": "fcdb-qs-all",
|
|
275
|
+
"name": "clear table",
|
|
276
|
+
"connection": "fcdb-qs-all-postgres-conn",
|
|
277
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
278
|
+
"params": [],
|
|
279
|
+
"output": "count",
|
|
280
|
+
"target": "payload",
|
|
281
|
+
"timeoutMs": "",
|
|
282
|
+
"x": 770,
|
|
283
|
+
"y": 200,
|
|
284
|
+
"wires": [
|
|
285
|
+
[
|
|
286
|
+
"fcdb-qs-all-postgres-debug"
|
|
287
|
+
]
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"id": "fcdb-qs-all-postgres-debug",
|
|
292
|
+
"type": "debug",
|
|
293
|
+
"z": "fcdb-qs-all",
|
|
294
|
+
"name": "PostgreSQL",
|
|
295
|
+
"active": true,
|
|
296
|
+
"tosidebar": true,
|
|
297
|
+
"console": true,
|
|
298
|
+
"tostatus": true,
|
|
299
|
+
"complete": "payload",
|
|
300
|
+
"targetType": "msg",
|
|
301
|
+
"statusVal": "payload",
|
|
302
|
+
"statusType": "auto",
|
|
303
|
+
"x": 960,
|
|
304
|
+
"y": 200,
|
|
305
|
+
"wires": []
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"id": "fcdb-qs-all-postgres-conn",
|
|
309
|
+
"type": "fromcubes-db-connection",
|
|
310
|
+
"name": "PostgreSQL quick start",
|
|
311
|
+
"dialect": "postgres",
|
|
312
|
+
"userSource": "cred",
|
|
313
|
+
"passwordSource": "cred",
|
|
314
|
+
"poolMin": 0,
|
|
315
|
+
"poolMax": 10,
|
|
316
|
+
"idleTimeoutMs": 30000,
|
|
317
|
+
"connectTimeoutMs": 15000,
|
|
318
|
+
"queryTimeoutMs": 30000,
|
|
319
|
+
"queueMax": 100,
|
|
320
|
+
"undefinedAsNull": false,
|
|
321
|
+
"options": "",
|
|
322
|
+
"host": "localhost",
|
|
323
|
+
"port": 5432,
|
|
324
|
+
"database": "test",
|
|
325
|
+
"pgSsl": "disable",
|
|
326
|
+
"pgCa": "",
|
|
327
|
+
"pgSchema": "",
|
|
328
|
+
"appName": ""
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"id": "fcdb-qs-all-cockroachdb-label",
|
|
332
|
+
"type": "comment",
|
|
333
|
+
"z": "fcdb-qs-all",
|
|
334
|
+
"name": "CockroachDB",
|
|
335
|
+
"info": "",
|
|
336
|
+
"x": 110,
|
|
337
|
+
"y": 260,
|
|
338
|
+
"wires": []
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"id": "fcdb-qs-all-cockroachdb-create",
|
|
342
|
+
"type": "fromcubes-db-query",
|
|
343
|
+
"z": "fcdb-qs-all",
|
|
344
|
+
"name": "create table",
|
|
345
|
+
"connection": "fcdb-qs-all-cockroachdb-conn",
|
|
346
|
+
"sql": "CREATE TABLE IF NOT EXISTS fromcubes_demo (\n id BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n note TEXT NOT NULL,\n reading DOUBLE PRECISION,\n created_at TIMESTAMPTZ NOT NULL DEFAULT now()\n)",
|
|
347
|
+
"params": [],
|
|
348
|
+
"output": "count",
|
|
349
|
+
"target": "payload",
|
|
350
|
+
"timeoutMs": "",
|
|
351
|
+
"x": 290,
|
|
352
|
+
"y": 260,
|
|
353
|
+
"wires": [
|
|
354
|
+
[
|
|
355
|
+
"fcdb-qs-all-cockroachdb-debug"
|
|
356
|
+
]
|
|
357
|
+
]
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"id": "fcdb-qs-all-cockroachdb-insert",
|
|
361
|
+
"type": "fromcubes-db-query",
|
|
362
|
+
"z": "fcdb-qs-all",
|
|
363
|
+
"name": "insert",
|
|
364
|
+
"connection": "fcdb-qs-all-cockroachdb-conn",
|
|
365
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
366
|
+
"params": [
|
|
367
|
+
{
|
|
368
|
+
"name": "note",
|
|
369
|
+
"type": "msg",
|
|
370
|
+
"value": "payload.note",
|
|
371
|
+
"as": "text"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "reading",
|
|
375
|
+
"type": "msg",
|
|
376
|
+
"value": "payload.reading",
|
|
377
|
+
"as": "double precision"
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"output": "count",
|
|
381
|
+
"target": "inserted",
|
|
382
|
+
"timeoutMs": "",
|
|
383
|
+
"x": 450,
|
|
384
|
+
"y": 260,
|
|
385
|
+
"wires": [
|
|
386
|
+
[
|
|
387
|
+
"fcdb-qs-all-cockroachdb-select"
|
|
388
|
+
]
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"id": "fcdb-qs-all-cockroachdb-select",
|
|
393
|
+
"type": "fromcubes-db-query",
|
|
394
|
+
"z": "fcdb-qs-all",
|
|
395
|
+
"name": "latest 10",
|
|
396
|
+
"connection": "fcdb-qs-all-cockroachdb-conn",
|
|
397
|
+
"sql": "SELECT id, note, reading, created_at\nFROM fromcubes_demo\nORDER BY id DESC\nLIMIT 10",
|
|
398
|
+
"params": [],
|
|
399
|
+
"output": "rows",
|
|
400
|
+
"target": "payload",
|
|
401
|
+
"timeoutMs": "",
|
|
402
|
+
"x": 610,
|
|
403
|
+
"y": 260,
|
|
404
|
+
"wires": [
|
|
405
|
+
[
|
|
406
|
+
"fcdb-qs-all-cockroachdb-debug"
|
|
407
|
+
]
|
|
408
|
+
]
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"id": "fcdb-qs-all-cockroachdb-clear",
|
|
412
|
+
"type": "fromcubes-db-query",
|
|
413
|
+
"z": "fcdb-qs-all",
|
|
414
|
+
"name": "clear table",
|
|
415
|
+
"connection": "fcdb-qs-all-cockroachdb-conn",
|
|
416
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
417
|
+
"params": [],
|
|
418
|
+
"output": "count",
|
|
419
|
+
"target": "payload",
|
|
420
|
+
"timeoutMs": "",
|
|
421
|
+
"x": 770,
|
|
422
|
+
"y": 260,
|
|
423
|
+
"wires": [
|
|
424
|
+
[
|
|
425
|
+
"fcdb-qs-all-cockroachdb-debug"
|
|
426
|
+
]
|
|
427
|
+
]
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"id": "fcdb-qs-all-cockroachdb-debug",
|
|
431
|
+
"type": "debug",
|
|
432
|
+
"z": "fcdb-qs-all",
|
|
433
|
+
"name": "CockroachDB",
|
|
434
|
+
"active": true,
|
|
435
|
+
"tosidebar": true,
|
|
436
|
+
"console": true,
|
|
437
|
+
"tostatus": true,
|
|
438
|
+
"complete": "payload",
|
|
439
|
+
"targetType": "msg",
|
|
440
|
+
"statusVal": "payload",
|
|
441
|
+
"statusType": "auto",
|
|
442
|
+
"x": 960,
|
|
443
|
+
"y": 260,
|
|
444
|
+
"wires": []
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"id": "fcdb-qs-all-cockroachdb-conn",
|
|
448
|
+
"type": "fromcubes-db-connection",
|
|
449
|
+
"name": "CockroachDB quick start",
|
|
450
|
+
"dialect": "cockroachdb",
|
|
451
|
+
"userSource": "cred",
|
|
452
|
+
"passwordSource": "cred",
|
|
453
|
+
"poolMin": 0,
|
|
454
|
+
"poolMax": 10,
|
|
455
|
+
"idleTimeoutMs": 30000,
|
|
456
|
+
"connectTimeoutMs": 15000,
|
|
457
|
+
"queryTimeoutMs": 30000,
|
|
458
|
+
"queueMax": 100,
|
|
459
|
+
"undefinedAsNull": false,
|
|
460
|
+
"options": "",
|
|
461
|
+
"host": "localhost",
|
|
462
|
+
"port": 26257,
|
|
463
|
+
"database": "defaultdb",
|
|
464
|
+
"pgSsl": "disable",
|
|
465
|
+
"pgCa": "",
|
|
466
|
+
"pgSchema": "",
|
|
467
|
+
"appName": ""
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"id": "fcdb-qs-all-yugabytedb-label",
|
|
471
|
+
"type": "comment",
|
|
472
|
+
"z": "fcdb-qs-all",
|
|
473
|
+
"name": "YugabyteDB",
|
|
474
|
+
"info": "",
|
|
475
|
+
"x": 110,
|
|
476
|
+
"y": 320,
|
|
477
|
+
"wires": []
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"id": "fcdb-qs-all-yugabytedb-create",
|
|
481
|
+
"type": "fromcubes-db-query",
|
|
482
|
+
"z": "fcdb-qs-all",
|
|
483
|
+
"name": "create table",
|
|
484
|
+
"connection": "fcdb-qs-all-yugabytedb-conn",
|
|
485
|
+
"sql": "CREATE TABLE IF NOT EXISTS fromcubes_demo (\n id BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n note TEXT NOT NULL,\n reading DOUBLE PRECISION,\n created_at TIMESTAMPTZ NOT NULL DEFAULT now()\n)",
|
|
486
|
+
"params": [],
|
|
487
|
+
"output": "count",
|
|
488
|
+
"target": "payload",
|
|
489
|
+
"timeoutMs": "",
|
|
490
|
+
"x": 290,
|
|
491
|
+
"y": 320,
|
|
492
|
+
"wires": [
|
|
493
|
+
[
|
|
494
|
+
"fcdb-qs-all-yugabytedb-debug"
|
|
495
|
+
]
|
|
496
|
+
]
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"id": "fcdb-qs-all-yugabytedb-insert",
|
|
500
|
+
"type": "fromcubes-db-query",
|
|
501
|
+
"z": "fcdb-qs-all",
|
|
502
|
+
"name": "insert",
|
|
503
|
+
"connection": "fcdb-qs-all-yugabytedb-conn",
|
|
504
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
505
|
+
"params": [
|
|
506
|
+
{
|
|
507
|
+
"name": "note",
|
|
508
|
+
"type": "msg",
|
|
509
|
+
"value": "payload.note",
|
|
510
|
+
"as": "text"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "reading",
|
|
514
|
+
"type": "msg",
|
|
515
|
+
"value": "payload.reading",
|
|
516
|
+
"as": "double precision"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"output": "count",
|
|
520
|
+
"target": "inserted",
|
|
521
|
+
"timeoutMs": "",
|
|
522
|
+
"x": 450,
|
|
523
|
+
"y": 320,
|
|
524
|
+
"wires": [
|
|
525
|
+
[
|
|
526
|
+
"fcdb-qs-all-yugabytedb-select"
|
|
527
|
+
]
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"id": "fcdb-qs-all-yugabytedb-select",
|
|
532
|
+
"type": "fromcubes-db-query",
|
|
533
|
+
"z": "fcdb-qs-all",
|
|
534
|
+
"name": "latest 10",
|
|
535
|
+
"connection": "fcdb-qs-all-yugabytedb-conn",
|
|
536
|
+
"sql": "SELECT id, note, reading, created_at\nFROM fromcubes_demo\nORDER BY id DESC\nLIMIT 10",
|
|
537
|
+
"params": [],
|
|
538
|
+
"output": "rows",
|
|
539
|
+
"target": "payload",
|
|
540
|
+
"timeoutMs": "",
|
|
541
|
+
"x": 610,
|
|
542
|
+
"y": 320,
|
|
543
|
+
"wires": [
|
|
544
|
+
[
|
|
545
|
+
"fcdb-qs-all-yugabytedb-debug"
|
|
546
|
+
]
|
|
547
|
+
]
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"id": "fcdb-qs-all-yugabytedb-clear",
|
|
551
|
+
"type": "fromcubes-db-query",
|
|
552
|
+
"z": "fcdb-qs-all",
|
|
553
|
+
"name": "clear table",
|
|
554
|
+
"connection": "fcdb-qs-all-yugabytedb-conn",
|
|
555
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
556
|
+
"params": [],
|
|
557
|
+
"output": "count",
|
|
558
|
+
"target": "payload",
|
|
559
|
+
"timeoutMs": "",
|
|
560
|
+
"x": 770,
|
|
561
|
+
"y": 320,
|
|
562
|
+
"wires": [
|
|
563
|
+
[
|
|
564
|
+
"fcdb-qs-all-yugabytedb-debug"
|
|
565
|
+
]
|
|
566
|
+
]
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"id": "fcdb-qs-all-yugabytedb-debug",
|
|
570
|
+
"type": "debug",
|
|
571
|
+
"z": "fcdb-qs-all",
|
|
572
|
+
"name": "YugabyteDB",
|
|
573
|
+
"active": true,
|
|
574
|
+
"tosidebar": true,
|
|
575
|
+
"console": true,
|
|
576
|
+
"tostatus": true,
|
|
577
|
+
"complete": "payload",
|
|
578
|
+
"targetType": "msg",
|
|
579
|
+
"statusVal": "payload",
|
|
580
|
+
"statusType": "auto",
|
|
581
|
+
"x": 960,
|
|
582
|
+
"y": 320,
|
|
583
|
+
"wires": []
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"id": "fcdb-qs-all-yugabytedb-conn",
|
|
587
|
+
"type": "fromcubes-db-connection",
|
|
588
|
+
"name": "YugabyteDB quick start",
|
|
589
|
+
"dialect": "yugabytedb",
|
|
590
|
+
"userSource": "cred",
|
|
591
|
+
"passwordSource": "cred",
|
|
592
|
+
"poolMin": 0,
|
|
593
|
+
"poolMax": 10,
|
|
594
|
+
"idleTimeoutMs": 30000,
|
|
595
|
+
"connectTimeoutMs": 15000,
|
|
596
|
+
"queryTimeoutMs": 30000,
|
|
597
|
+
"queueMax": 100,
|
|
598
|
+
"undefinedAsNull": false,
|
|
599
|
+
"options": "",
|
|
600
|
+
"host": "localhost",
|
|
601
|
+
"port": 5433,
|
|
602
|
+
"database": "yugabyte",
|
|
603
|
+
"pgSsl": "disable",
|
|
604
|
+
"pgCa": "",
|
|
605
|
+
"pgSchema": "",
|
|
606
|
+
"appName": ""
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"id": "fcdb-qs-all-mysql-label",
|
|
610
|
+
"type": "comment",
|
|
611
|
+
"z": "fcdb-qs-all",
|
|
612
|
+
"name": "MySQL",
|
|
613
|
+
"info": "",
|
|
614
|
+
"x": 110,
|
|
615
|
+
"y": 380,
|
|
616
|
+
"wires": []
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"id": "fcdb-qs-all-mysql-create",
|
|
620
|
+
"type": "fromcubes-db-query",
|
|
621
|
+
"z": "fcdb-qs-all",
|
|
622
|
+
"name": "create table",
|
|
623
|
+
"connection": "fcdb-qs-all-mysql-conn",
|
|
624
|
+
"sql": "CREATE TABLE IF NOT EXISTS fromcubes_demo (\n id BIGINT AUTO_INCREMENT PRIMARY KEY,\n note VARCHAR(200) NOT NULL,\n reading DOUBLE,\n created_at TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3)\n)",
|
|
625
|
+
"params": [],
|
|
626
|
+
"output": "count",
|
|
627
|
+
"target": "payload",
|
|
628
|
+
"timeoutMs": "",
|
|
629
|
+
"x": 290,
|
|
630
|
+
"y": 380,
|
|
631
|
+
"wires": [
|
|
632
|
+
[
|
|
633
|
+
"fcdb-qs-all-mysql-debug"
|
|
634
|
+
]
|
|
635
|
+
]
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"id": "fcdb-qs-all-mysql-insert",
|
|
639
|
+
"type": "fromcubes-db-query",
|
|
640
|
+
"z": "fcdb-qs-all",
|
|
641
|
+
"name": "insert",
|
|
642
|
+
"connection": "fcdb-qs-all-mysql-conn",
|
|
643
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
644
|
+
"params": [
|
|
645
|
+
{
|
|
646
|
+
"name": "note",
|
|
647
|
+
"type": "msg",
|
|
648
|
+
"value": "payload.note",
|
|
649
|
+
"as": "varchar",
|
|
650
|
+
"asArgs": "200"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"name": "reading",
|
|
654
|
+
"type": "msg",
|
|
655
|
+
"value": "payload.reading",
|
|
656
|
+
"as": "double"
|
|
657
|
+
}
|
|
658
|
+
],
|
|
659
|
+
"output": "count",
|
|
660
|
+
"target": "inserted",
|
|
661
|
+
"timeoutMs": "",
|
|
662
|
+
"x": 450,
|
|
663
|
+
"y": 380,
|
|
664
|
+
"wires": [
|
|
665
|
+
[
|
|
666
|
+
"fcdb-qs-all-mysql-select"
|
|
667
|
+
]
|
|
668
|
+
]
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"id": "fcdb-qs-all-mysql-select",
|
|
672
|
+
"type": "fromcubes-db-query",
|
|
673
|
+
"z": "fcdb-qs-all",
|
|
674
|
+
"name": "latest 10",
|
|
675
|
+
"connection": "fcdb-qs-all-mysql-conn",
|
|
676
|
+
"sql": "SELECT id, note, reading, created_at\nFROM fromcubes_demo\nORDER BY id DESC\nLIMIT 10",
|
|
677
|
+
"params": [],
|
|
678
|
+
"output": "rows",
|
|
679
|
+
"target": "payload",
|
|
680
|
+
"timeoutMs": "",
|
|
681
|
+
"x": 610,
|
|
682
|
+
"y": 380,
|
|
683
|
+
"wires": [
|
|
684
|
+
[
|
|
685
|
+
"fcdb-qs-all-mysql-debug"
|
|
686
|
+
]
|
|
687
|
+
]
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"id": "fcdb-qs-all-mysql-clear",
|
|
691
|
+
"type": "fromcubes-db-query",
|
|
692
|
+
"z": "fcdb-qs-all",
|
|
693
|
+
"name": "clear table",
|
|
694
|
+
"connection": "fcdb-qs-all-mysql-conn",
|
|
695
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
696
|
+
"params": [],
|
|
697
|
+
"output": "count",
|
|
698
|
+
"target": "payload",
|
|
699
|
+
"timeoutMs": "",
|
|
700
|
+
"x": 770,
|
|
701
|
+
"y": 380,
|
|
702
|
+
"wires": [
|
|
703
|
+
[
|
|
704
|
+
"fcdb-qs-all-mysql-debug"
|
|
705
|
+
]
|
|
706
|
+
]
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"id": "fcdb-qs-all-mysql-debug",
|
|
710
|
+
"type": "debug",
|
|
711
|
+
"z": "fcdb-qs-all",
|
|
712
|
+
"name": "MySQL",
|
|
713
|
+
"active": true,
|
|
714
|
+
"tosidebar": true,
|
|
715
|
+
"console": true,
|
|
716
|
+
"tostatus": true,
|
|
717
|
+
"complete": "payload",
|
|
718
|
+
"targetType": "msg",
|
|
719
|
+
"statusVal": "payload",
|
|
720
|
+
"statusType": "auto",
|
|
721
|
+
"x": 960,
|
|
722
|
+
"y": 380,
|
|
723
|
+
"wires": []
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"id": "fcdb-qs-all-mysql-conn",
|
|
727
|
+
"type": "fromcubes-db-connection",
|
|
728
|
+
"name": "MySQL quick start",
|
|
729
|
+
"dialect": "mysql",
|
|
730
|
+
"userSource": "cred",
|
|
731
|
+
"passwordSource": "cred",
|
|
732
|
+
"poolMin": 0,
|
|
733
|
+
"poolMax": 10,
|
|
734
|
+
"idleTimeoutMs": 30000,
|
|
735
|
+
"connectTimeoutMs": 15000,
|
|
736
|
+
"queryTimeoutMs": 30000,
|
|
737
|
+
"queueMax": 100,
|
|
738
|
+
"undefinedAsNull": false,
|
|
739
|
+
"options": "",
|
|
740
|
+
"host": "localhost",
|
|
741
|
+
"port": 3306,
|
|
742
|
+
"database": "test",
|
|
743
|
+
"mySsl": false,
|
|
744
|
+
"mySslVerify": true,
|
|
745
|
+
"myCharset": "",
|
|
746
|
+
"myTimezone": ""
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"id": "fcdb-qs-all-mariadb-label",
|
|
750
|
+
"type": "comment",
|
|
751
|
+
"z": "fcdb-qs-all",
|
|
752
|
+
"name": "MariaDB",
|
|
753
|
+
"info": "",
|
|
754
|
+
"x": 110,
|
|
755
|
+
"y": 440,
|
|
756
|
+
"wires": []
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
"id": "fcdb-qs-all-mariadb-create",
|
|
760
|
+
"type": "fromcubes-db-query",
|
|
761
|
+
"z": "fcdb-qs-all",
|
|
762
|
+
"name": "create table",
|
|
763
|
+
"connection": "fcdb-qs-all-mariadb-conn",
|
|
764
|
+
"sql": "CREATE TABLE IF NOT EXISTS fromcubes_demo (\n id BIGINT AUTO_INCREMENT PRIMARY KEY,\n note VARCHAR(200) NOT NULL,\n reading DOUBLE,\n created_at TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3)\n)",
|
|
765
|
+
"params": [],
|
|
766
|
+
"output": "count",
|
|
767
|
+
"target": "payload",
|
|
768
|
+
"timeoutMs": "",
|
|
769
|
+
"x": 290,
|
|
770
|
+
"y": 440,
|
|
771
|
+
"wires": [
|
|
772
|
+
[
|
|
773
|
+
"fcdb-qs-all-mariadb-debug"
|
|
774
|
+
]
|
|
775
|
+
]
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"id": "fcdb-qs-all-mariadb-insert",
|
|
779
|
+
"type": "fromcubes-db-query",
|
|
780
|
+
"z": "fcdb-qs-all",
|
|
781
|
+
"name": "insert",
|
|
782
|
+
"connection": "fcdb-qs-all-mariadb-conn",
|
|
783
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
784
|
+
"params": [
|
|
785
|
+
{
|
|
786
|
+
"name": "note",
|
|
787
|
+
"type": "msg",
|
|
788
|
+
"value": "payload.note",
|
|
789
|
+
"as": "varchar",
|
|
790
|
+
"asArgs": "200"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"name": "reading",
|
|
794
|
+
"type": "msg",
|
|
795
|
+
"value": "payload.reading",
|
|
796
|
+
"as": "double"
|
|
797
|
+
}
|
|
798
|
+
],
|
|
799
|
+
"output": "count",
|
|
800
|
+
"target": "inserted",
|
|
801
|
+
"timeoutMs": "",
|
|
802
|
+
"x": 450,
|
|
803
|
+
"y": 440,
|
|
804
|
+
"wires": [
|
|
805
|
+
[
|
|
806
|
+
"fcdb-qs-all-mariadb-select"
|
|
807
|
+
]
|
|
808
|
+
]
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"id": "fcdb-qs-all-mariadb-select",
|
|
812
|
+
"type": "fromcubes-db-query",
|
|
813
|
+
"z": "fcdb-qs-all",
|
|
814
|
+
"name": "latest 10",
|
|
815
|
+
"connection": "fcdb-qs-all-mariadb-conn",
|
|
816
|
+
"sql": "SELECT id, note, reading, created_at\nFROM fromcubes_demo\nORDER BY id DESC\nLIMIT 10",
|
|
817
|
+
"params": [],
|
|
818
|
+
"output": "rows",
|
|
819
|
+
"target": "payload",
|
|
820
|
+
"timeoutMs": "",
|
|
821
|
+
"x": 610,
|
|
822
|
+
"y": 440,
|
|
823
|
+
"wires": [
|
|
824
|
+
[
|
|
825
|
+
"fcdb-qs-all-mariadb-debug"
|
|
826
|
+
]
|
|
827
|
+
]
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"id": "fcdb-qs-all-mariadb-clear",
|
|
831
|
+
"type": "fromcubes-db-query",
|
|
832
|
+
"z": "fcdb-qs-all",
|
|
833
|
+
"name": "clear table",
|
|
834
|
+
"connection": "fcdb-qs-all-mariadb-conn",
|
|
835
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
836
|
+
"params": [],
|
|
837
|
+
"output": "count",
|
|
838
|
+
"target": "payload",
|
|
839
|
+
"timeoutMs": "",
|
|
840
|
+
"x": 770,
|
|
841
|
+
"y": 440,
|
|
842
|
+
"wires": [
|
|
843
|
+
[
|
|
844
|
+
"fcdb-qs-all-mariadb-debug"
|
|
845
|
+
]
|
|
846
|
+
]
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"id": "fcdb-qs-all-mariadb-debug",
|
|
850
|
+
"type": "debug",
|
|
851
|
+
"z": "fcdb-qs-all",
|
|
852
|
+
"name": "MariaDB",
|
|
853
|
+
"active": true,
|
|
854
|
+
"tosidebar": true,
|
|
855
|
+
"console": true,
|
|
856
|
+
"tostatus": true,
|
|
857
|
+
"complete": "payload",
|
|
858
|
+
"targetType": "msg",
|
|
859
|
+
"statusVal": "payload",
|
|
860
|
+
"statusType": "auto",
|
|
861
|
+
"x": 960,
|
|
862
|
+
"y": 440,
|
|
863
|
+
"wires": []
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"id": "fcdb-qs-all-mariadb-conn",
|
|
867
|
+
"type": "fromcubes-db-connection",
|
|
868
|
+
"name": "MariaDB quick start",
|
|
869
|
+
"dialect": "mariadb",
|
|
870
|
+
"userSource": "cred",
|
|
871
|
+
"passwordSource": "cred",
|
|
872
|
+
"poolMin": 0,
|
|
873
|
+
"poolMax": 10,
|
|
874
|
+
"idleTimeoutMs": 30000,
|
|
875
|
+
"connectTimeoutMs": 15000,
|
|
876
|
+
"queryTimeoutMs": 30000,
|
|
877
|
+
"queueMax": 100,
|
|
878
|
+
"undefinedAsNull": false,
|
|
879
|
+
"options": "",
|
|
880
|
+
"host": "localhost",
|
|
881
|
+
"port": 3307,
|
|
882
|
+
"database": "test",
|
|
883
|
+
"mySsl": false,
|
|
884
|
+
"mySslVerify": true,
|
|
885
|
+
"myCharset": "",
|
|
886
|
+
"myTimezone": ""
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"id": "fcdb-qs-all-tidb-label",
|
|
890
|
+
"type": "comment",
|
|
891
|
+
"z": "fcdb-qs-all",
|
|
892
|
+
"name": "TiDB",
|
|
893
|
+
"info": "",
|
|
894
|
+
"x": 110,
|
|
895
|
+
"y": 500,
|
|
896
|
+
"wires": []
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"id": "fcdb-qs-all-tidb-create",
|
|
900
|
+
"type": "fromcubes-db-query",
|
|
901
|
+
"z": "fcdb-qs-all",
|
|
902
|
+
"name": "create table",
|
|
903
|
+
"connection": "fcdb-qs-all-tidb-conn",
|
|
904
|
+
"sql": "CREATE TABLE IF NOT EXISTS fromcubes_demo (\n id BIGINT AUTO_INCREMENT PRIMARY KEY,\n note VARCHAR(200) NOT NULL,\n reading DOUBLE,\n created_at TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3)\n)",
|
|
905
|
+
"params": [],
|
|
906
|
+
"output": "count",
|
|
907
|
+
"target": "payload",
|
|
908
|
+
"timeoutMs": "",
|
|
909
|
+
"x": 290,
|
|
910
|
+
"y": 500,
|
|
911
|
+
"wires": [
|
|
912
|
+
[
|
|
913
|
+
"fcdb-qs-all-tidb-debug"
|
|
914
|
+
]
|
|
915
|
+
]
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"id": "fcdb-qs-all-tidb-insert",
|
|
919
|
+
"type": "fromcubes-db-query",
|
|
920
|
+
"z": "fcdb-qs-all",
|
|
921
|
+
"name": "insert",
|
|
922
|
+
"connection": "fcdb-qs-all-tidb-conn",
|
|
923
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
924
|
+
"params": [
|
|
925
|
+
{
|
|
926
|
+
"name": "note",
|
|
927
|
+
"type": "msg",
|
|
928
|
+
"value": "payload.note",
|
|
929
|
+
"as": "varchar",
|
|
930
|
+
"asArgs": "200"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"name": "reading",
|
|
934
|
+
"type": "msg",
|
|
935
|
+
"value": "payload.reading",
|
|
936
|
+
"as": "double"
|
|
937
|
+
}
|
|
938
|
+
],
|
|
939
|
+
"output": "count",
|
|
940
|
+
"target": "inserted",
|
|
941
|
+
"timeoutMs": "",
|
|
942
|
+
"x": 450,
|
|
943
|
+
"y": 500,
|
|
944
|
+
"wires": [
|
|
945
|
+
[
|
|
946
|
+
"fcdb-qs-all-tidb-select"
|
|
947
|
+
]
|
|
948
|
+
]
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"id": "fcdb-qs-all-tidb-select",
|
|
952
|
+
"type": "fromcubes-db-query",
|
|
953
|
+
"z": "fcdb-qs-all",
|
|
954
|
+
"name": "latest 10",
|
|
955
|
+
"connection": "fcdb-qs-all-tidb-conn",
|
|
956
|
+
"sql": "SELECT id, note, reading, created_at\nFROM fromcubes_demo\nORDER BY id DESC\nLIMIT 10",
|
|
957
|
+
"params": [],
|
|
958
|
+
"output": "rows",
|
|
959
|
+
"target": "payload",
|
|
960
|
+
"timeoutMs": "",
|
|
961
|
+
"x": 610,
|
|
962
|
+
"y": 500,
|
|
963
|
+
"wires": [
|
|
964
|
+
[
|
|
965
|
+
"fcdb-qs-all-tidb-debug"
|
|
966
|
+
]
|
|
967
|
+
]
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"id": "fcdb-qs-all-tidb-clear",
|
|
971
|
+
"type": "fromcubes-db-query",
|
|
972
|
+
"z": "fcdb-qs-all",
|
|
973
|
+
"name": "clear table",
|
|
974
|
+
"connection": "fcdb-qs-all-tidb-conn",
|
|
975
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
976
|
+
"params": [],
|
|
977
|
+
"output": "count",
|
|
978
|
+
"target": "payload",
|
|
979
|
+
"timeoutMs": "",
|
|
980
|
+
"x": 770,
|
|
981
|
+
"y": 500,
|
|
982
|
+
"wires": [
|
|
983
|
+
[
|
|
984
|
+
"fcdb-qs-all-tidb-debug"
|
|
985
|
+
]
|
|
986
|
+
]
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"id": "fcdb-qs-all-tidb-debug",
|
|
990
|
+
"type": "debug",
|
|
991
|
+
"z": "fcdb-qs-all",
|
|
992
|
+
"name": "TiDB",
|
|
993
|
+
"active": true,
|
|
994
|
+
"tosidebar": true,
|
|
995
|
+
"console": true,
|
|
996
|
+
"tostatus": true,
|
|
997
|
+
"complete": "payload",
|
|
998
|
+
"targetType": "msg",
|
|
999
|
+
"statusVal": "payload",
|
|
1000
|
+
"statusType": "auto",
|
|
1001
|
+
"x": 960,
|
|
1002
|
+
"y": 500,
|
|
1003
|
+
"wires": []
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"id": "fcdb-qs-all-tidb-conn",
|
|
1007
|
+
"type": "fromcubes-db-connection",
|
|
1008
|
+
"name": "TiDB quick start",
|
|
1009
|
+
"dialect": "tidb",
|
|
1010
|
+
"userSource": "cred",
|
|
1011
|
+
"passwordSource": "cred",
|
|
1012
|
+
"poolMin": 0,
|
|
1013
|
+
"poolMax": 10,
|
|
1014
|
+
"idleTimeoutMs": 30000,
|
|
1015
|
+
"connectTimeoutMs": 15000,
|
|
1016
|
+
"queryTimeoutMs": 30000,
|
|
1017
|
+
"queueMax": 100,
|
|
1018
|
+
"undefinedAsNull": false,
|
|
1019
|
+
"options": "",
|
|
1020
|
+
"host": "localhost",
|
|
1021
|
+
"port": 4000,
|
|
1022
|
+
"database": "test",
|
|
1023
|
+
"mySsl": false,
|
|
1024
|
+
"mySslVerify": true,
|
|
1025
|
+
"myCharset": "",
|
|
1026
|
+
"myTimezone": ""
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"id": "fcdb-qs-all-mssql-label",
|
|
1030
|
+
"type": "comment",
|
|
1031
|
+
"z": "fcdb-qs-all",
|
|
1032
|
+
"name": "SQL Server",
|
|
1033
|
+
"info": "",
|
|
1034
|
+
"x": 110,
|
|
1035
|
+
"y": 560,
|
|
1036
|
+
"wires": []
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"id": "fcdb-qs-all-mssql-create",
|
|
1040
|
+
"type": "fromcubes-db-query",
|
|
1041
|
+
"z": "fcdb-qs-all",
|
|
1042
|
+
"name": "create table",
|
|
1043
|
+
"connection": "fcdb-qs-all-mssql-conn",
|
|
1044
|
+
"sql": "IF OBJECT_ID('fromcubes_demo') IS NULL\n CREATE TABLE fromcubes_demo (\n id BIGINT IDENTITY PRIMARY KEY,\n note NVARCHAR(200) NOT NULL,\n reading FLOAT,\n created_at DATETIME2(3) NOT NULL DEFAULT SYSUTCDATETIME()\n )",
|
|
1045
|
+
"params": [],
|
|
1046
|
+
"output": "count",
|
|
1047
|
+
"target": "payload",
|
|
1048
|
+
"timeoutMs": "",
|
|
1049
|
+
"x": 290,
|
|
1050
|
+
"y": 560,
|
|
1051
|
+
"wires": [
|
|
1052
|
+
[
|
|
1053
|
+
"fcdb-qs-all-mssql-debug"
|
|
1054
|
+
]
|
|
1055
|
+
]
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"id": "fcdb-qs-all-mssql-insert",
|
|
1059
|
+
"type": "fromcubes-db-query",
|
|
1060
|
+
"z": "fcdb-qs-all",
|
|
1061
|
+
"name": "insert",
|
|
1062
|
+
"connection": "fcdb-qs-all-mssql-conn",
|
|
1063
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
1064
|
+
"params": [
|
|
1065
|
+
{
|
|
1066
|
+
"name": "note",
|
|
1067
|
+
"type": "msg",
|
|
1068
|
+
"value": "payload.note",
|
|
1069
|
+
"as": "nvarchar",
|
|
1070
|
+
"asArgs": "200"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "reading",
|
|
1074
|
+
"type": "msg",
|
|
1075
|
+
"value": "payload.reading",
|
|
1076
|
+
"as": "float"
|
|
1077
|
+
}
|
|
1078
|
+
],
|
|
1079
|
+
"output": "count",
|
|
1080
|
+
"target": "inserted",
|
|
1081
|
+
"timeoutMs": "",
|
|
1082
|
+
"x": 450,
|
|
1083
|
+
"y": 560,
|
|
1084
|
+
"wires": [
|
|
1085
|
+
[
|
|
1086
|
+
"fcdb-qs-all-mssql-select"
|
|
1087
|
+
]
|
|
1088
|
+
]
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"id": "fcdb-qs-all-mssql-select",
|
|
1092
|
+
"type": "fromcubes-db-query",
|
|
1093
|
+
"z": "fcdb-qs-all",
|
|
1094
|
+
"name": "latest 10",
|
|
1095
|
+
"connection": "fcdb-qs-all-mssql-conn",
|
|
1096
|
+
"sql": "SELECT TOP (10) id, note, reading, created_at\nFROM fromcubes_demo\nORDER BY id DESC",
|
|
1097
|
+
"params": [],
|
|
1098
|
+
"output": "rows",
|
|
1099
|
+
"target": "payload",
|
|
1100
|
+
"timeoutMs": "",
|
|
1101
|
+
"x": 610,
|
|
1102
|
+
"y": 560,
|
|
1103
|
+
"wires": [
|
|
1104
|
+
[
|
|
1105
|
+
"fcdb-qs-all-mssql-debug"
|
|
1106
|
+
]
|
|
1107
|
+
]
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"id": "fcdb-qs-all-mssql-clear",
|
|
1111
|
+
"type": "fromcubes-db-query",
|
|
1112
|
+
"z": "fcdb-qs-all",
|
|
1113
|
+
"name": "clear table",
|
|
1114
|
+
"connection": "fcdb-qs-all-mssql-conn",
|
|
1115
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
1116
|
+
"params": [],
|
|
1117
|
+
"output": "count",
|
|
1118
|
+
"target": "payload",
|
|
1119
|
+
"timeoutMs": "",
|
|
1120
|
+
"x": 770,
|
|
1121
|
+
"y": 560,
|
|
1122
|
+
"wires": [
|
|
1123
|
+
[
|
|
1124
|
+
"fcdb-qs-all-mssql-debug"
|
|
1125
|
+
]
|
|
1126
|
+
]
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"id": "fcdb-qs-all-mssql-debug",
|
|
1130
|
+
"type": "debug",
|
|
1131
|
+
"z": "fcdb-qs-all",
|
|
1132
|
+
"name": "SQL Server",
|
|
1133
|
+
"active": true,
|
|
1134
|
+
"tosidebar": true,
|
|
1135
|
+
"console": true,
|
|
1136
|
+
"tostatus": true,
|
|
1137
|
+
"complete": "payload",
|
|
1138
|
+
"targetType": "msg",
|
|
1139
|
+
"statusVal": "payload",
|
|
1140
|
+
"statusType": "auto",
|
|
1141
|
+
"x": 960,
|
|
1142
|
+
"y": 560,
|
|
1143
|
+
"wires": []
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"id": "fcdb-qs-all-mssql-conn",
|
|
1147
|
+
"type": "fromcubes-db-connection",
|
|
1148
|
+
"name": "SQL Server quick start",
|
|
1149
|
+
"dialect": "mssql",
|
|
1150
|
+
"userSource": "cred",
|
|
1151
|
+
"passwordSource": "cred",
|
|
1152
|
+
"poolMin": 0,
|
|
1153
|
+
"poolMax": 10,
|
|
1154
|
+
"idleTimeoutMs": 30000,
|
|
1155
|
+
"connectTimeoutMs": 15000,
|
|
1156
|
+
"queryTimeoutMs": 30000,
|
|
1157
|
+
"queueMax": 100,
|
|
1158
|
+
"undefinedAsNull": false,
|
|
1159
|
+
"options": "",
|
|
1160
|
+
"host": "localhost",
|
|
1161
|
+
"port": 1433,
|
|
1162
|
+
"database": "master",
|
|
1163
|
+
"msEncrypt": true,
|
|
1164
|
+
"msTrustCert": true,
|
|
1165
|
+
"msInstance": "",
|
|
1166
|
+
"msDomain": "",
|
|
1167
|
+
"appName": ""
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"id": "fcdb-qs-all-oracle-label",
|
|
1171
|
+
"type": "comment",
|
|
1172
|
+
"z": "fcdb-qs-all",
|
|
1173
|
+
"name": "Oracle",
|
|
1174
|
+
"info": "",
|
|
1175
|
+
"x": 110,
|
|
1176
|
+
"y": 620,
|
|
1177
|
+
"wires": []
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"id": "fcdb-qs-all-oracle-create",
|
|
1181
|
+
"type": "fromcubes-db-query",
|
|
1182
|
+
"z": "fcdb-qs-all",
|
|
1183
|
+
"name": "create table",
|
|
1184
|
+
"connection": "fcdb-qs-all-oracle-conn",
|
|
1185
|
+
"sql": "CREATE TABLE IF NOT EXISTS fromcubes_demo (\n id NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n note VARCHAR2(200 CHAR) NOT NULL,\n reading BINARY_DOUBLE,\n created_at TIMESTAMP DEFAULT SYS_EXTRACT_UTC(SYSTIMESTAMP) NOT NULL\n)",
|
|
1186
|
+
"params": [],
|
|
1187
|
+
"output": "count",
|
|
1188
|
+
"target": "payload",
|
|
1189
|
+
"timeoutMs": "",
|
|
1190
|
+
"x": 290,
|
|
1191
|
+
"y": 620,
|
|
1192
|
+
"wires": [
|
|
1193
|
+
[
|
|
1194
|
+
"fcdb-qs-all-oracle-debug"
|
|
1195
|
+
]
|
|
1196
|
+
]
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"id": "fcdb-qs-all-oracle-insert",
|
|
1200
|
+
"type": "fromcubes-db-query",
|
|
1201
|
+
"z": "fcdb-qs-all",
|
|
1202
|
+
"name": "insert",
|
|
1203
|
+
"connection": "fcdb-qs-all-oracle-conn",
|
|
1204
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
1205
|
+
"params": [
|
|
1206
|
+
{
|
|
1207
|
+
"name": "note",
|
|
1208
|
+
"type": "msg",
|
|
1209
|
+
"value": "payload.note",
|
|
1210
|
+
"as": "varchar2",
|
|
1211
|
+
"asArgs": "200"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"name": "reading",
|
|
1215
|
+
"type": "msg",
|
|
1216
|
+
"value": "payload.reading",
|
|
1217
|
+
"as": "binary_double"
|
|
1218
|
+
}
|
|
1219
|
+
],
|
|
1220
|
+
"output": "count",
|
|
1221
|
+
"target": "inserted",
|
|
1222
|
+
"timeoutMs": "",
|
|
1223
|
+
"x": 450,
|
|
1224
|
+
"y": 620,
|
|
1225
|
+
"wires": [
|
|
1226
|
+
[
|
|
1227
|
+
"fcdb-qs-all-oracle-select"
|
|
1228
|
+
]
|
|
1229
|
+
]
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"id": "fcdb-qs-all-oracle-select",
|
|
1233
|
+
"type": "fromcubes-db-query",
|
|
1234
|
+
"z": "fcdb-qs-all",
|
|
1235
|
+
"name": "latest 10",
|
|
1236
|
+
"connection": "fcdb-qs-all-oracle-conn",
|
|
1237
|
+
"sql": "SELECT id AS \"id\", note AS \"note\", reading AS \"reading\", created_at AS \"created_at\"\nFROM fromcubes_demo\nORDER BY id DESC\nFETCH FIRST 10 ROWS ONLY",
|
|
1238
|
+
"params": [],
|
|
1239
|
+
"output": "rows",
|
|
1240
|
+
"target": "payload",
|
|
1241
|
+
"timeoutMs": "",
|
|
1242
|
+
"x": 610,
|
|
1243
|
+
"y": 620,
|
|
1244
|
+
"wires": [
|
|
1245
|
+
[
|
|
1246
|
+
"fcdb-qs-all-oracle-debug"
|
|
1247
|
+
]
|
|
1248
|
+
]
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"id": "fcdb-qs-all-oracle-clear",
|
|
1252
|
+
"type": "fromcubes-db-query",
|
|
1253
|
+
"z": "fcdb-qs-all",
|
|
1254
|
+
"name": "clear table",
|
|
1255
|
+
"connection": "fcdb-qs-all-oracle-conn",
|
|
1256
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
1257
|
+
"params": [],
|
|
1258
|
+
"output": "count",
|
|
1259
|
+
"target": "payload",
|
|
1260
|
+
"timeoutMs": "",
|
|
1261
|
+
"x": 770,
|
|
1262
|
+
"y": 620,
|
|
1263
|
+
"wires": [
|
|
1264
|
+
[
|
|
1265
|
+
"fcdb-qs-all-oracle-debug"
|
|
1266
|
+
]
|
|
1267
|
+
]
|
|
1268
|
+
},
|
|
1269
|
+
{
|
|
1270
|
+
"id": "fcdb-qs-all-oracle-debug",
|
|
1271
|
+
"type": "debug",
|
|
1272
|
+
"z": "fcdb-qs-all",
|
|
1273
|
+
"name": "Oracle",
|
|
1274
|
+
"active": true,
|
|
1275
|
+
"tosidebar": true,
|
|
1276
|
+
"console": true,
|
|
1277
|
+
"tostatus": true,
|
|
1278
|
+
"complete": "payload",
|
|
1279
|
+
"targetType": "msg",
|
|
1280
|
+
"statusVal": "payload",
|
|
1281
|
+
"statusType": "auto",
|
|
1282
|
+
"x": 960,
|
|
1283
|
+
"y": 620,
|
|
1284
|
+
"wires": []
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"id": "fcdb-qs-all-oracle-conn",
|
|
1288
|
+
"type": "fromcubes-db-connection",
|
|
1289
|
+
"name": "Oracle quick start",
|
|
1290
|
+
"dialect": "oracle",
|
|
1291
|
+
"userSource": "cred",
|
|
1292
|
+
"passwordSource": "cred",
|
|
1293
|
+
"poolMin": 0,
|
|
1294
|
+
"poolMax": 10,
|
|
1295
|
+
"idleTimeoutMs": 30000,
|
|
1296
|
+
"connectTimeoutMs": 15000,
|
|
1297
|
+
"queryTimeoutMs": 30000,
|
|
1298
|
+
"queueMax": 100,
|
|
1299
|
+
"undefinedAsNull": false,
|
|
1300
|
+
"options": "",
|
|
1301
|
+
"host": "localhost",
|
|
1302
|
+
"port": 1521,
|
|
1303
|
+
"database": "FREEPDB1",
|
|
1304
|
+
"oraMode": "easy",
|
|
1305
|
+
"oraConnectString": "",
|
|
1306
|
+
"oraIdentifier": "service"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"id": "fcdb-qs-all-firebird-label",
|
|
1310
|
+
"type": "comment",
|
|
1311
|
+
"z": "fcdb-qs-all",
|
|
1312
|
+
"name": "Firebird",
|
|
1313
|
+
"info": "",
|
|
1314
|
+
"x": 110,
|
|
1315
|
+
"y": 680,
|
|
1316
|
+
"wires": []
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"id": "fcdb-qs-all-firebird-create",
|
|
1320
|
+
"type": "fromcubes-db-query",
|
|
1321
|
+
"z": "fcdb-qs-all",
|
|
1322
|
+
"name": "create table",
|
|
1323
|
+
"connection": "fcdb-qs-all-firebird-conn",
|
|
1324
|
+
"sql": "EXECUTE BLOCK AS\nBEGIN\n IF (NOT EXISTS (SELECT 1 FROM RDB$RELATIONS WHERE RDB$RELATION_NAME = UPPER('fromcubes_demo'))) THEN\n EXECUTE STATEMENT 'CREATE TABLE fromcubes_demo (\n id BIGINT GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\n note VARCHAR(200) NOT NULL,\n reading DOUBLE PRECISION,\n created_at TIMESTAMP DEFAULT LOCALTIMESTAMP NOT NULL\n )';\nEND",
|
|
1325
|
+
"params": [],
|
|
1326
|
+
"output": "count",
|
|
1327
|
+
"target": "payload",
|
|
1328
|
+
"timeoutMs": "",
|
|
1329
|
+
"x": 290,
|
|
1330
|
+
"y": 680,
|
|
1331
|
+
"wires": [
|
|
1332
|
+
[
|
|
1333
|
+
"fcdb-qs-all-firebird-debug"
|
|
1334
|
+
]
|
|
1335
|
+
]
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"id": "fcdb-qs-all-firebird-insert",
|
|
1339
|
+
"type": "fromcubes-db-query",
|
|
1340
|
+
"z": "fcdb-qs-all",
|
|
1341
|
+
"name": "insert",
|
|
1342
|
+
"connection": "fcdb-qs-all-firebird-conn",
|
|
1343
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
1344
|
+
"params": [
|
|
1345
|
+
{
|
|
1346
|
+
"name": "note",
|
|
1347
|
+
"type": "msg",
|
|
1348
|
+
"value": "payload.note",
|
|
1349
|
+
"as": "varchar",
|
|
1350
|
+
"asArgs": "200"
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"name": "reading",
|
|
1354
|
+
"type": "msg",
|
|
1355
|
+
"value": "payload.reading",
|
|
1356
|
+
"as": "double precision"
|
|
1357
|
+
}
|
|
1358
|
+
],
|
|
1359
|
+
"output": "count",
|
|
1360
|
+
"target": "inserted",
|
|
1361
|
+
"timeoutMs": "",
|
|
1362
|
+
"x": 450,
|
|
1363
|
+
"y": 680,
|
|
1364
|
+
"wires": [
|
|
1365
|
+
[
|
|
1366
|
+
"fcdb-qs-all-firebird-select"
|
|
1367
|
+
]
|
|
1368
|
+
]
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"id": "fcdb-qs-all-firebird-select",
|
|
1372
|
+
"type": "fromcubes-db-query",
|
|
1373
|
+
"z": "fcdb-qs-all",
|
|
1374
|
+
"name": "latest 10",
|
|
1375
|
+
"connection": "fcdb-qs-all-firebird-conn",
|
|
1376
|
+
"sql": "SELECT id AS \"id\", note AS \"note\", reading AS \"reading\", created_at AS \"created_at\"\nFROM fromcubes_demo\nORDER BY id DESC\nFETCH FIRST 10 ROWS ONLY",
|
|
1377
|
+
"params": [],
|
|
1378
|
+
"output": "rows",
|
|
1379
|
+
"target": "payload",
|
|
1380
|
+
"timeoutMs": "",
|
|
1381
|
+
"x": 610,
|
|
1382
|
+
"y": 680,
|
|
1383
|
+
"wires": [
|
|
1384
|
+
[
|
|
1385
|
+
"fcdb-qs-all-firebird-debug"
|
|
1386
|
+
]
|
|
1387
|
+
]
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
"id": "fcdb-qs-all-firebird-clear",
|
|
1391
|
+
"type": "fromcubes-db-query",
|
|
1392
|
+
"z": "fcdb-qs-all",
|
|
1393
|
+
"name": "clear table",
|
|
1394
|
+
"connection": "fcdb-qs-all-firebird-conn",
|
|
1395
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
1396
|
+
"params": [],
|
|
1397
|
+
"output": "count",
|
|
1398
|
+
"target": "payload",
|
|
1399
|
+
"timeoutMs": "",
|
|
1400
|
+
"x": 770,
|
|
1401
|
+
"y": 680,
|
|
1402
|
+
"wires": [
|
|
1403
|
+
[
|
|
1404
|
+
"fcdb-qs-all-firebird-debug"
|
|
1405
|
+
]
|
|
1406
|
+
]
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"id": "fcdb-qs-all-firebird-debug",
|
|
1410
|
+
"type": "debug",
|
|
1411
|
+
"z": "fcdb-qs-all",
|
|
1412
|
+
"name": "Firebird",
|
|
1413
|
+
"active": true,
|
|
1414
|
+
"tosidebar": true,
|
|
1415
|
+
"console": true,
|
|
1416
|
+
"tostatus": true,
|
|
1417
|
+
"complete": "payload",
|
|
1418
|
+
"targetType": "msg",
|
|
1419
|
+
"statusVal": "payload",
|
|
1420
|
+
"statusType": "auto",
|
|
1421
|
+
"x": 960,
|
|
1422
|
+
"y": 680,
|
|
1423
|
+
"wires": []
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"id": "fcdb-qs-all-firebird-conn",
|
|
1427
|
+
"type": "fromcubes-db-connection",
|
|
1428
|
+
"name": "Firebird quick start",
|
|
1429
|
+
"dialect": "firebird",
|
|
1430
|
+
"userSource": "cred",
|
|
1431
|
+
"passwordSource": "cred",
|
|
1432
|
+
"poolMin": 0,
|
|
1433
|
+
"poolMax": 10,
|
|
1434
|
+
"idleTimeoutMs": 30000,
|
|
1435
|
+
"connectTimeoutMs": 15000,
|
|
1436
|
+
"queryTimeoutMs": 30000,
|
|
1437
|
+
"queueMax": 100,
|
|
1438
|
+
"undefinedAsNull": false,
|
|
1439
|
+
"options": "",
|
|
1440
|
+
"host": "localhost",
|
|
1441
|
+
"port": 3050,
|
|
1442
|
+
"database": "/var/lib/firebird/data/test.fdb",
|
|
1443
|
+
"fbRole": ""
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"id": "fcdb-qs-all-clickhouse-label",
|
|
1447
|
+
"type": "comment",
|
|
1448
|
+
"z": "fcdb-qs-all",
|
|
1449
|
+
"name": "ClickHouse",
|
|
1450
|
+
"info": "",
|
|
1451
|
+
"x": 110,
|
|
1452
|
+
"y": 740,
|
|
1453
|
+
"wires": []
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"id": "fcdb-qs-all-clickhouse-create",
|
|
1457
|
+
"type": "fromcubes-db-query",
|
|
1458
|
+
"z": "fcdb-qs-all",
|
|
1459
|
+
"name": "create table",
|
|
1460
|
+
"connection": "fcdb-qs-all-clickhouse-conn",
|
|
1461
|
+
"sql": "CREATE TABLE IF NOT EXISTS fromcubes_demo (\n id UInt64 DEFAULT generateSnowflakeID(),\n note String,\n reading Nullable(Float64),\n created_at DateTime64(3) DEFAULT now64(3)\n) ENGINE = MergeTree\nORDER BY id",
|
|
1462
|
+
"params": [],
|
|
1463
|
+
"output": "count",
|
|
1464
|
+
"target": "payload",
|
|
1465
|
+
"timeoutMs": "",
|
|
1466
|
+
"x": 290,
|
|
1467
|
+
"y": 740,
|
|
1468
|
+
"wires": [
|
|
1469
|
+
[
|
|
1470
|
+
"fcdb-qs-all-clickhouse-debug"
|
|
1471
|
+
]
|
|
1472
|
+
]
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"id": "fcdb-qs-all-clickhouse-insert",
|
|
1476
|
+
"type": "fromcubes-db-query",
|
|
1477
|
+
"z": "fcdb-qs-all",
|
|
1478
|
+
"name": "insert",
|
|
1479
|
+
"connection": "fcdb-qs-all-clickhouse-conn",
|
|
1480
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
1481
|
+
"params": [
|
|
1482
|
+
{
|
|
1483
|
+
"name": "note",
|
|
1484
|
+
"type": "msg",
|
|
1485
|
+
"value": "payload.note",
|
|
1486
|
+
"as": "String"
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"name": "reading",
|
|
1490
|
+
"type": "msg",
|
|
1491
|
+
"value": "payload.reading",
|
|
1492
|
+
"as": "Nullable",
|
|
1493
|
+
"asArgs": "Float64"
|
|
1494
|
+
}
|
|
1495
|
+
],
|
|
1496
|
+
"output": "count",
|
|
1497
|
+
"target": "inserted",
|
|
1498
|
+
"timeoutMs": "",
|
|
1499
|
+
"x": 450,
|
|
1500
|
+
"y": 740,
|
|
1501
|
+
"wires": [
|
|
1502
|
+
[
|
|
1503
|
+
"fcdb-qs-all-clickhouse-select"
|
|
1504
|
+
]
|
|
1505
|
+
]
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"id": "fcdb-qs-all-clickhouse-select",
|
|
1509
|
+
"type": "fromcubes-db-query",
|
|
1510
|
+
"z": "fcdb-qs-all",
|
|
1511
|
+
"name": "latest 10",
|
|
1512
|
+
"connection": "fcdb-qs-all-clickhouse-conn",
|
|
1513
|
+
"sql": "SELECT id, note, reading, created_at\nFROM fromcubes_demo\nORDER BY id DESC\nLIMIT 10",
|
|
1514
|
+
"params": [],
|
|
1515
|
+
"output": "rows",
|
|
1516
|
+
"target": "payload",
|
|
1517
|
+
"timeoutMs": "",
|
|
1518
|
+
"x": 610,
|
|
1519
|
+
"y": 740,
|
|
1520
|
+
"wires": [
|
|
1521
|
+
[
|
|
1522
|
+
"fcdb-qs-all-clickhouse-debug"
|
|
1523
|
+
]
|
|
1524
|
+
]
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
"id": "fcdb-qs-all-clickhouse-clear",
|
|
1528
|
+
"type": "fromcubes-db-query",
|
|
1529
|
+
"z": "fcdb-qs-all",
|
|
1530
|
+
"name": "clear table",
|
|
1531
|
+
"connection": "fcdb-qs-all-clickhouse-conn",
|
|
1532
|
+
"sql": "DELETE FROM fromcubes_demo WHERE 1 = 1",
|
|
1533
|
+
"params": [],
|
|
1534
|
+
"output": "count",
|
|
1535
|
+
"target": "payload",
|
|
1536
|
+
"timeoutMs": "",
|
|
1537
|
+
"x": 770,
|
|
1538
|
+
"y": 740,
|
|
1539
|
+
"wires": [
|
|
1540
|
+
[
|
|
1541
|
+
"fcdb-qs-all-clickhouse-debug"
|
|
1542
|
+
]
|
|
1543
|
+
]
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
"id": "fcdb-qs-all-clickhouse-debug",
|
|
1547
|
+
"type": "debug",
|
|
1548
|
+
"z": "fcdb-qs-all",
|
|
1549
|
+
"name": "ClickHouse",
|
|
1550
|
+
"active": true,
|
|
1551
|
+
"tosidebar": true,
|
|
1552
|
+
"console": true,
|
|
1553
|
+
"tostatus": true,
|
|
1554
|
+
"complete": "payload",
|
|
1555
|
+
"targetType": "msg",
|
|
1556
|
+
"statusVal": "payload",
|
|
1557
|
+
"statusType": "auto",
|
|
1558
|
+
"x": 960,
|
|
1559
|
+
"y": 740,
|
|
1560
|
+
"wires": []
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
"id": "fcdb-qs-all-clickhouse-conn",
|
|
1564
|
+
"type": "fromcubes-db-connection",
|
|
1565
|
+
"name": "ClickHouse quick start",
|
|
1566
|
+
"dialect": "clickhouse",
|
|
1567
|
+
"userSource": "cred",
|
|
1568
|
+
"passwordSource": "cred",
|
|
1569
|
+
"poolMin": 0,
|
|
1570
|
+
"poolMax": 10,
|
|
1571
|
+
"idleTimeoutMs": 30000,
|
|
1572
|
+
"connectTimeoutMs": 15000,
|
|
1573
|
+
"queryTimeoutMs": 30000,
|
|
1574
|
+
"queueMax": 100,
|
|
1575
|
+
"undefinedAsNull": false,
|
|
1576
|
+
"options": "",
|
|
1577
|
+
"host": "localhost",
|
|
1578
|
+
"port": 8123,
|
|
1579
|
+
"database": "test",
|
|
1580
|
+
"chTls": false
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
"id": "fcdb-qs-all-sqlite-label",
|
|
1584
|
+
"type": "comment",
|
|
1585
|
+
"z": "fcdb-qs-all",
|
|
1586
|
+
"name": "SQLite",
|
|
1587
|
+
"info": "",
|
|
1588
|
+
"x": 110,
|
|
1589
|
+
"y": 800,
|
|
1590
|
+
"wires": []
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"id": "fcdb-qs-all-sqlite-create",
|
|
1594
|
+
"type": "fromcubes-db-query",
|
|
1595
|
+
"z": "fcdb-qs-all",
|
|
1596
|
+
"name": "create table",
|
|
1597
|
+
"connection": "fcdb-qs-all-sqlite-conn",
|
|
1598
|
+
"sql": "CREATE TABLE IF NOT EXISTS fromcubes_demo (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n note TEXT NOT NULL,\n reading REAL,\n created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))\n)",
|
|
1599
|
+
"params": [],
|
|
1600
|
+
"output": "count",
|
|
1601
|
+
"target": "payload",
|
|
1602
|
+
"timeoutMs": "",
|
|
1603
|
+
"x": 290,
|
|
1604
|
+
"y": 800,
|
|
1605
|
+
"wires": [
|
|
1606
|
+
[
|
|
1607
|
+
"fcdb-qs-all-sqlite-debug"
|
|
1608
|
+
]
|
|
1609
|
+
]
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
"id": "fcdb-qs-all-sqlite-insert",
|
|
1613
|
+
"type": "fromcubes-db-query",
|
|
1614
|
+
"z": "fcdb-qs-all",
|
|
1615
|
+
"name": "insert",
|
|
1616
|
+
"connection": "fcdb-qs-all-sqlite-conn",
|
|
1617
|
+
"sql": "INSERT INTO fromcubes_demo (note, reading)\nVALUES (:note, :reading)",
|
|
1618
|
+
"params": [
|
|
1619
|
+
{
|
|
1620
|
+
"name": "note",
|
|
1621
|
+
"type": "msg",
|
|
1622
|
+
"value": "payload.note",
|
|
1623
|
+
"as": "text"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"name": "reading",
|
|
1627
|
+
"type": "msg",
|
|
1628
|
+
"value": "payload.reading",
|
|
1629
|
+
"as": "real"
|
|
1630
|
+
}
|
|
1631
|
+
],
|
|
1632
|
+
"output": "count",
|
|
1633
|
+
"target": "inserted",
|
|
1634
|
+
"timeoutMs": "",
|
|
1635
|
+
"x": 450,
|
|
1636
|
+
"y": 800,
|
|
1637
|
+
"wires": [
|
|
1638
|
+
[
|
|
1639
|
+
"fcdb-qs-all-sqlite-select"
|
|
1640
|
+
]
|
|
1641
|
+
]
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"id": "fcdb-qs-all-sqlite-select",
|
|
1645
|
+
"type": "fromcubes-db-query",
|
|
1646
|
+
"z": "fcdb-qs-all",
|
|
1647
|
+
"name": "latest 10",
|
|
1648
|
+
"connection": "fcdb-qs-all-sqlite-conn",
|
|
1649
|
+
"sql": "SELECT id, note, reading, created_at\nFROM fromcubes_demo\nORDER BY id DESC\nLIMIT 10",
|
|
1650
|
+
"params": [],
|
|
1651
|
+
"output": "rows",
|
|
1652
|
+
"target": "payload",
|
|
1653
|
+
"timeoutMs": "",
|
|
1654
|
+
"x": 610,
|
|
1655
|
+
"y": 800,
|
|
1656
|
+
"wires": [
|
|
1657
|
+
[
|
|
1658
|
+
"fcdb-qs-all-sqlite-debug"
|
|
1659
|
+
]
|
|
1660
|
+
]
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"id": "fcdb-qs-all-sqlite-clear",
|
|
1664
|
+
"type": "fromcubes-db-query",
|
|
1665
|
+
"z": "fcdb-qs-all",
|
|
1666
|
+
"name": "clear table",
|
|
1667
|
+
"connection": "fcdb-qs-all-sqlite-conn",
|
|
1668
|
+
"sql": "DELETE FROM fromcubes_demo",
|
|
1669
|
+
"params": [],
|
|
1670
|
+
"output": "count",
|
|
1671
|
+
"target": "payload",
|
|
1672
|
+
"timeoutMs": "",
|
|
1673
|
+
"x": 770,
|
|
1674
|
+
"y": 800,
|
|
1675
|
+
"wires": [
|
|
1676
|
+
[
|
|
1677
|
+
"fcdb-qs-all-sqlite-debug"
|
|
1678
|
+
]
|
|
1679
|
+
]
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"id": "fcdb-qs-all-sqlite-debug",
|
|
1683
|
+
"type": "debug",
|
|
1684
|
+
"z": "fcdb-qs-all",
|
|
1685
|
+
"name": "SQLite",
|
|
1686
|
+
"active": true,
|
|
1687
|
+
"tosidebar": true,
|
|
1688
|
+
"console": true,
|
|
1689
|
+
"tostatus": true,
|
|
1690
|
+
"complete": "payload",
|
|
1691
|
+
"targetType": "msg",
|
|
1692
|
+
"statusVal": "payload",
|
|
1693
|
+
"statusType": "auto",
|
|
1694
|
+
"x": 960,
|
|
1695
|
+
"y": 800,
|
|
1696
|
+
"wires": []
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"id": "fcdb-qs-all-sqlite-conn",
|
|
1700
|
+
"type": "fromcubes-db-connection",
|
|
1701
|
+
"name": "SQLite quick start",
|
|
1702
|
+
"dialect": "sqlite",
|
|
1703
|
+
"userSource": "cred",
|
|
1704
|
+
"passwordSource": "cred",
|
|
1705
|
+
"poolMin": 0,
|
|
1706
|
+
"poolMax": 10,
|
|
1707
|
+
"idleTimeoutMs": 30000,
|
|
1708
|
+
"connectTimeoutMs": 15000,
|
|
1709
|
+
"queryTimeoutMs": 30000,
|
|
1710
|
+
"queueMax": 100,
|
|
1711
|
+
"undefinedAsNull": false,
|
|
1712
|
+
"options": "",
|
|
1713
|
+
"sqliteFile": "quick-start",
|
|
1714
|
+
"sqliteReadOnly": false,
|
|
1715
|
+
"sqliteWal": true,
|
|
1716
|
+
"sqliteForeignKeys": true,
|
|
1717
|
+
"sqliteBusyTimeoutMs": 5000
|
|
1718
|
+
}
|
|
1719
|
+
]
|