Skip to content

Commit 07fa243

Browse files
committed
Minor refactor clients directory layout; introduce EdgeClient and EdgeWorker
1 parent 32b148b commit 07fa243

36 files changed

Lines changed: 966 additions & 793 deletions

package-lock.json

Lines changed: 57 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@
2929
"exports": {
3030
".": "./src/flashql/FlashQL.js",
3131
"./flashql": "./src/flashql/FlashQL.js",
32-
"./postgres": "./src/entry/postgres/PGClient.js",
33-
"./mysql": "./src/entry/mysql/MySQLClient.js",
34-
"./mariadb": "./src/entry/mariadb/MariaDBClient.js",
32+
"./edge": "./src/clients/edge/EdgeClient.js",
33+
"./edge-worker": "./src/clients/edge/EdgeWorker.js",
34+
"./postgres": "./src/clients/postgres/PGClient.js",
35+
"./mysql": "./src/clients/mysql/MySQLClient.js",
36+
"./mariadb": "./src/clients/mariadb/MariaDBClient.js",
3537
"./realtime": "./src/proc/realtime/RealtimeClient.js"
3638
},
3739
"scripts": {
@@ -57,10 +59,14 @@
5759
"yaml": "^2.5.0"
5860
},
5961
"peerDependencies": {
60-
"@webqit/observer": "^3.8.19"
62+
"@webqit/fetch-plus": "^0.1.33",
63+
"@webqit/observer": "^3.8.19",
64+
"@webqit/port-plus": "^0.1.23"
6165
},
6266
"devDependencies": {
67+
"@webqit/fetch-plus": "^0.1.33",
6368
"@webqit/observer": "^3.8.19",
69+
"@webqit/port-plus": "^0.1.23",
6470
"chai": "^4.3.4",
6571
"chai-as-promised": "^7.1.1",
6672
"chalk": "^5.4.1",
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@ export class Result {
1111
this.#rows = rows;
1212
this.#rowCount = rowCount;
1313
}
14+
15+
jsonfy() { return this.toJSON(); }
16+
17+
toJSON() {
18+
return {
19+
rows: this.#rows,
20+
rowCount: this.#rowCount,
21+
};
22+
}
1423
}

0 commit comments

Comments
 (0)