hotstaq 0.5.24

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.
Files changed (299) hide show
  1. package/.eslintignore +17 -0
  2. package/.eslintrc.js +11 -0
  3. package/.vscode/launch.json +199 -0
  4. package/.vscode/settings.json +2 -0
  5. package/.vscode/tasks.json +78 -0
  6. package/CONTRIBUTING.md +157 -0
  7. package/README.md +126 -0
  8. package/bin/hotstaq +3 -0
  9. package/bin/hotstaq.cmd +1 -0
  10. package/build/src/Hot.d.ts +167 -0
  11. package/build/src/Hot.d.ts.map +1 -0
  12. package/build/src/Hot.js +365 -0
  13. package/build/src/Hot.js.map +1 -0
  14. package/build/src/HotAPI.d.ts +130 -0
  15. package/build/src/HotAPI.d.ts.map +1 -0
  16. package/build/src/HotAPI.js +353 -0
  17. package/build/src/HotAPI.js.map +1 -0
  18. package/build/src/HotAgentAPI.d.ts +22 -0
  19. package/build/src/HotAgentAPI.d.ts.map +1 -0
  20. package/build/src/HotAgentAPI.js +85 -0
  21. package/build/src/HotAgentAPI.js.map +1 -0
  22. package/build/src/HotAgentRoute.d.ts +17 -0
  23. package/build/src/HotAgentRoute.d.ts.map +1 -0
  24. package/build/src/HotAgentRoute.js +109 -0
  25. package/build/src/HotAgentRoute.js.map +1 -0
  26. package/build/src/HotBuilder.d.ts +52 -0
  27. package/build/src/HotBuilder.d.ts.map +1 -0
  28. package/build/src/HotBuilder.js +239 -0
  29. package/build/src/HotBuilder.js.map +1 -0
  30. package/build/src/HotClient.d.ts +31 -0
  31. package/build/src/HotClient.d.ts.map +1 -0
  32. package/build/src/HotClient.js +19 -0
  33. package/build/src/HotClient.js.map +1 -0
  34. package/build/src/HotComponent.d.ts +118 -0
  35. package/build/src/HotComponent.d.ts.map +1 -0
  36. package/build/src/HotComponent.js +89 -0
  37. package/build/src/HotComponent.js.map +1 -0
  38. package/build/src/HotCreator.d.ts +92 -0
  39. package/build/src/HotCreator.d.ts.map +1 -0
  40. package/build/src/HotCreator.js +465 -0
  41. package/build/src/HotCreator.js.map +1 -0
  42. package/build/src/HotDB.d.ts +69 -0
  43. package/build/src/HotDB.d.ts.map +1 -0
  44. package/build/src/HotDB.js +29 -0
  45. package/build/src/HotDB.js.map +1 -0
  46. package/build/src/HotDBConnectionInterface.d.ts +40 -0
  47. package/build/src/HotDBConnectionInterface.d.ts.map +1 -0
  48. package/build/src/HotDBConnectionInterface.js +3 -0
  49. package/build/src/HotDBConnectionInterface.js.map +1 -0
  50. package/build/src/HotFile.d.ts +134 -0
  51. package/build/src/HotFile.d.ts.map +1 -0
  52. package/build/src/HotFile.js +454 -0
  53. package/build/src/HotFile.js.map +1 -0
  54. package/build/src/HotHTTPServer.d.ts +162 -0
  55. package/build/src/HotHTTPServer.d.ts.map +1 -0
  56. package/build/src/HotHTTPServer.js +863 -0
  57. package/build/src/HotHTTPServer.js.map +1 -0
  58. package/build/src/HotIO.d.ts +39 -0
  59. package/build/src/HotIO.d.ts.map +1 -0
  60. package/build/src/HotIO.js +195 -0
  61. package/build/src/HotIO.js.map +1 -0
  62. package/build/src/HotLog.d.ts +60 -0
  63. package/build/src/HotLog.d.ts.map +1 -0
  64. package/build/src/HotLog.js +126 -0
  65. package/build/src/HotLog.js.map +1 -0
  66. package/build/src/HotPage.d.ts +125 -0
  67. package/build/src/HotPage.d.ts.map +1 -0
  68. package/build/src/HotPage.js +178 -0
  69. package/build/src/HotPage.js.map +1 -0
  70. package/build/src/HotRoute.d.ts +82 -0
  71. package/build/src/HotRoute.d.ts.map +1 -0
  72. package/build/src/HotRoute.js +83 -0
  73. package/build/src/HotRoute.js.map +1 -0
  74. package/build/src/HotRouteMethod.d.ts +129 -0
  75. package/build/src/HotRouteMethod.d.ts.map +1 -0
  76. package/build/src/HotRouteMethod.js +84 -0
  77. package/build/src/HotRouteMethod.js.map +1 -0
  78. package/build/src/HotServer.d.ts +152 -0
  79. package/build/src/HotServer.d.ts.map +1 -0
  80. package/build/src/HotServer.js +109 -0
  81. package/build/src/HotServer.js.map +1 -0
  82. package/build/src/HotSetAsWeb.d.ts +2 -0
  83. package/build/src/HotSetAsWeb.d.ts.map +1 -0
  84. package/build/src/HotSetAsWeb.js +5 -0
  85. package/build/src/HotSetAsWeb.js.map +1 -0
  86. package/build/src/HotStaq.d.ts +601 -0
  87. package/build/src/HotStaq.d.ts.map +1 -0
  88. package/build/src/HotStaq.js +1258 -0
  89. package/build/src/HotStaq.js.map +1 -0
  90. package/build/src/HotStaqWeb.d.ts +18 -0
  91. package/build/src/HotStaqWeb.d.ts.map +1 -0
  92. package/build/src/HotStaqWeb.js +44 -0
  93. package/build/src/HotStaqWeb.js.map +1 -0
  94. package/build/src/HotTestDriver.d.ts +63 -0
  95. package/build/src/HotTestDriver.d.ts.map +1 -0
  96. package/build/src/HotTestDriver.js +187 -0
  97. package/build/src/HotTestDriver.js.map +1 -0
  98. package/build/src/HotTestElement.d.ts +71 -0
  99. package/build/src/HotTestElement.d.ts.map +1 -0
  100. package/build/src/HotTestElement.js +37 -0
  101. package/build/src/HotTestElement.js.map +1 -0
  102. package/build/src/HotTestMap.d.ts +83 -0
  103. package/build/src/HotTestMap.d.ts.map +1 -0
  104. package/build/src/HotTestMap.js +58 -0
  105. package/build/src/HotTestMap.js.map +1 -0
  106. package/build/src/HotTestSeleniumDriver.d.ts +82 -0
  107. package/build/src/HotTestSeleniumDriver.d.ts.map +1 -0
  108. package/build/src/HotTestSeleniumDriver.js +398 -0
  109. package/build/src/HotTestSeleniumDriver.js.map +1 -0
  110. package/build/src/HotTester.d.ts +188 -0
  111. package/build/src/HotTester.d.ts.map +1 -0
  112. package/build/src/HotTester.js +623 -0
  113. package/build/src/HotTester.js.map +1 -0
  114. package/build/src/HotTesterAPI.d.ts +15 -0
  115. package/build/src/HotTesterAPI.d.ts.map +1 -0
  116. package/build/src/HotTesterAPI.js +161 -0
  117. package/build/src/HotTesterAPI.js.map +1 -0
  118. package/build/src/HotTesterMocha.d.ts +50 -0
  119. package/build/src/HotTesterMocha.d.ts.map +1 -0
  120. package/build/src/HotTesterMocha.js +205 -0
  121. package/build/src/HotTesterMocha.js.map +1 -0
  122. package/build/src/HotTesterMochaSelenium.d.ts +70 -0
  123. package/build/src/HotTesterMochaSelenium.d.ts.map +1 -0
  124. package/build/src/HotTesterMochaSelenium.js +257 -0
  125. package/build/src/HotTesterMochaSelenium.js.map +1 -0
  126. package/build/src/HotTesterServer.d.ts +114 -0
  127. package/build/src/HotTesterServer.d.ts.map +1 -0
  128. package/build/src/HotTesterServer.js +575 -0
  129. package/build/src/HotTesterServer.js.map +1 -0
  130. package/build/src/api.d.ts +33 -0
  131. package/build/src/api.d.ts.map +1 -0
  132. package/build/src/api.js +78 -0
  133. package/build/src/api.js.map +1 -0
  134. package/build/src/cli.d.ts +2 -0
  135. package/build/src/cli.d.ts.map +1 -0
  136. package/build/src/cli.js +935 -0
  137. package/build/src/cli.js.map +1 -0
  138. package/build/src/schemas/HotDBInflux.d.ts +63 -0
  139. package/build/src/schemas/HotDBInflux.d.ts.map +1 -0
  140. package/build/src/schemas/HotDBInflux.js +239 -0
  141. package/build/src/schemas/HotDBInflux.js.map +1 -0
  142. package/build/src/schemas/HotDBMigration.d.ts +19 -0
  143. package/build/src/schemas/HotDBMigration.d.ts.map +1 -0
  144. package/build/src/schemas/HotDBMigration.js +15 -0
  145. package/build/src/schemas/HotDBMigration.js.map +1 -0
  146. package/build/src/schemas/HotDBMySQL.d.ts +65 -0
  147. package/build/src/schemas/HotDBMySQL.d.ts.map +1 -0
  148. package/build/src/schemas/HotDBMySQL.js +387 -0
  149. package/build/src/schemas/HotDBMySQL.js.map +1 -0
  150. package/build/src/schemas/HotDBSchema.d.ts +15 -0
  151. package/build/src/schemas/HotDBSchema.d.ts.map +1 -0
  152. package/build/src/schemas/HotDBSchema.js +19 -0
  153. package/build/src/schemas/HotDBSchema.js.map +1 -0
  154. package/build/src/schemas/influx/InfluxSchema.d.ts +14 -0
  155. package/build/src/schemas/influx/InfluxSchema.d.ts.map +1 -0
  156. package/build/src/schemas/influx/InfluxSchema.js +33 -0
  157. package/build/src/schemas/influx/InfluxSchema.js.map +1 -0
  158. package/build/src/schemas/mysql/MySQLSchema.d.ts +39 -0
  159. package/build/src/schemas/mysql/MySQLSchema.d.ts.map +1 -0
  160. package/build/src/schemas/mysql/MySQLSchema.js +151 -0
  161. package/build/src/schemas/mysql/MySQLSchema.js.map +1 -0
  162. package/build/src/schemas/mysql/MySQLSchemaField.d.ts +168 -0
  163. package/build/src/schemas/mysql/MySQLSchemaField.d.ts.map +1 -0
  164. package/build/src/schemas/mysql/MySQLSchemaField.js +260 -0
  165. package/build/src/schemas/mysql/MySQLSchemaField.js.map +1 -0
  166. package/build/src/schemas/mysql/MySQLSchemaTable.d.ts +49 -0
  167. package/build/src/schemas/mysql/MySQLSchemaTable.d.ts.map +1 -0
  168. package/build/src/schemas/mysql/MySQLSchemaTable.js +310 -0
  169. package/build/src/schemas/mysql/MySQLSchemaTable.js.map +1 -0
  170. package/build-web/HotStaq.js +2 -0
  171. package/build-web/HotStaq.min.js +125 -0
  172. package/builder/docker/Dockerfile.linux.gen +42 -0
  173. package/builder/docker/README.md +36 -0
  174. package/builder/docker/app/start.sh +8 -0
  175. package/builder/docker/dockerignore +3 -0
  176. package/builder/docker/scripts/build.bat +11 -0
  177. package/builder/docker/scripts/build.sh +11 -0
  178. package/builder/docker/scripts/start-app.bat +7 -0
  179. package/builder/docker/scripts/start-app.sh +7 -0
  180. package/builder/docker/scripts/stop-app.bat +5 -0
  181. package/builder/docker/scripts/stop-app.sh +5 -0
  182. package/builder/docker-compose/docker-compose.gen.yaml +41 -0
  183. package/builder/docker-compose/env-skeleton +4 -0
  184. package/creator/project/.vscode/launch.json +59 -0
  185. package/creator/project/README.md +20 -0
  186. package/creator/project/gitignore +118 -0
  187. package/creator/project/npmignore +118 -0
  188. package/creator/public/api-test.hott +28 -0
  189. package/creator/public/index.hott +12 -0
  190. package/creator/ts/src/AppAPI.ts +30 -0
  191. package/creator/ts/src/HelloWorld.ts +39 -0
  192. package/creator/ts/src/WebExport.ts +7 -0
  193. package/creator/ts/tsconfig-web.json +73 -0
  194. package/creator/ts/tsconfig.json +73 -0
  195. package/creator/ts/webpack-api.config.js +57 -0
  196. package/dbstart.sh +19 -0
  197. package/dbstop.sh +4 -0
  198. package/docs/.nojekyll +1 -0
  199. package/docs/README.md +128 -0
  200. package/docs/classes/Hot.md +477 -0
  201. package/docs/classes/HotAPI.md +369 -0
  202. package/docs/classes/HotClient.md +95 -0
  203. package/docs/classes/HotComponent.md +279 -0
  204. package/docs/classes/HotDB.md +247 -0
  205. package/docs/classes/HotDBInflux.md +404 -0
  206. package/docs/classes/HotDBMigration.md +80 -0
  207. package/docs/classes/HotDBMySQL.md +310 -0
  208. package/docs/classes/HotDBSchema.md +51 -0
  209. package/docs/classes/HotFile.md +353 -0
  210. package/docs/classes/HotHTTPServer.md +700 -0
  211. package/docs/classes/HotLog.md +162 -0
  212. package/docs/classes/HotPage.md +357 -0
  213. package/docs/classes/HotRoute.md +312 -0
  214. package/docs/classes/HotRouteMethod.md +271 -0
  215. package/docs/classes/HotServer.md +311 -0
  216. package/docs/classes/HotStaq.md +1153 -0
  217. package/docs/classes/HotTestDestination.md +58 -0
  218. package/docs/classes/HotTestDriver.md +332 -0
  219. package/docs/classes/HotTestElement.md +88 -0
  220. package/docs/classes/HotTestElementOptions.md +71 -0
  221. package/docs/classes/HotTestMap.md +92 -0
  222. package/docs/classes/HotTestSeleniumDriver.md +529 -0
  223. package/docs/classes/HotTester.md +653 -0
  224. package/docs/classes/HotTesterAPI.md +493 -0
  225. package/docs/classes/HotTesterMocha.md +843 -0
  226. package/docs/classes/HotTesterMochaSelenium.md +896 -0
  227. package/docs/classes/HotTesterServer.md +633 -0
  228. package/docs/classes/InfluxSchema.md +74 -0
  229. package/docs/classes/MySQLSchema.md +199 -0
  230. package/docs/classes/MySQLSchemaField.md +330 -0
  231. package/docs/classes/MySQLSchemaTable.md +176 -0
  232. package/docs/enums/ConnectionStatus.md +43 -0
  233. package/docs/enums/DeveloperMode.md +38 -0
  234. package/docs/enums/EventExecutionType.md +43 -0
  235. package/docs/enums/HTTPMethod.md +32 -0
  236. package/docs/enums/HotDBGenerationType.md +30 -0
  237. package/docs/enums/HotLogLevel.md +88 -0
  238. package/docs/interfaces/HotDBConnectionInterface.md +116 -0
  239. package/docs/interfaces/HotDestination.md +62 -0
  240. package/docs/interfaces/HotSite.md +187 -0
  241. package/docs/interfaces/HotSiteMapPath.md +37 -0
  242. package/docs/interfaces/HotSiteRoute.md +79 -0
  243. package/docs/interfaces/HotStartOptions.md +115 -0
  244. package/docs/interfaces/HotTestPage.md +44 -0
  245. package/docs/interfaces/HotTestStop.md +62 -0
  246. package/docs/interfaces/IHotComponent.md +135 -0
  247. package/docs/interfaces/IHotStaq.md +118 -0
  248. package/docs/interfaces/IHotTestElement.md +54 -0
  249. package/docs/interfaces/IHotTestElementOptions.md +43 -0
  250. package/docs/interfaces/MySQLResults.md +43 -0
  251. package/docs/interfaces/MySQLSchemaFieldResult.md +75 -0
  252. package/docs/modules.md +162 -0
  253. package/package.json +65 -0
  254. package/selenium-start.sh +7 -0
  255. package/selenium-stop.sh +3 -0
  256. package/src/Hot.ts +319 -0
  257. package/src/HotAPI.ts +378 -0
  258. package/src/HotAgentAPI.ts +43 -0
  259. package/src/HotAgentRoute.ts +44 -0
  260. package/src/HotBuilder.ts +221 -0
  261. package/src/HotClient.ts +40 -0
  262. package/src/HotComponent.ts +158 -0
  263. package/src/HotCreator.ts +482 -0
  264. package/src/HotDB.ts +79 -0
  265. package/src/HotDBConnectionInterface.ts +40 -0
  266. package/src/HotFile.ts +617 -0
  267. package/src/HotHTTPServer.ts +954 -0
  268. package/src/HotIO.ts +128 -0
  269. package/src/HotLog.ts +158 -0
  270. package/src/HotPage.ts +206 -0
  271. package/src/HotRoute.ts +137 -0
  272. package/src/HotRouteMethod.ts +216 -0
  273. package/src/HotServer.ts +211 -0
  274. package/src/HotSetAsWeb.ts +3 -0
  275. package/src/HotStaq.ts +1877 -0
  276. package/src/HotStaqWeb.ts +59 -0
  277. package/src/HotTestDriver.ts +172 -0
  278. package/src/HotTestElement.ts +97 -0
  279. package/src/HotTestMap.ts +130 -0
  280. package/src/HotTestSeleniumDriver.ts +374 -0
  281. package/src/HotTester.ts +697 -0
  282. package/src/HotTesterAPI.ts +126 -0
  283. package/src/HotTesterMocha.ts +133 -0
  284. package/src/HotTesterMochaSelenium.ts +189 -0
  285. package/src/HotTesterServer.ts +551 -0
  286. package/src/api.ts +102 -0
  287. package/src/cli.ts +1147 -0
  288. package/src/schemas/HotDBInflux.ts +211 -0
  289. package/src/schemas/HotDBMigration.ts +24 -0
  290. package/src/schemas/HotDBMySQL.ts +312 -0
  291. package/src/schemas/HotDBSchema.ts +21 -0
  292. package/src/schemas/influx/InfluxSchema.ts +19 -0
  293. package/src/schemas/mysql/MySQLSchema.ts +90 -0
  294. package/src/schemas/mysql/MySQLSchemaField.ts +408 -0
  295. package/src/schemas/mysql/MySQLSchemaTable.ts +353 -0
  296. package/tsconfig-web.json +74 -0
  297. package/tsconfig.json +73 -0
  298. package/webpack.config.js +51 -0
  299. package/webpack.config.tests.js +56 -0
@@ -0,0 +1,92 @@
1
+ import { HotLog } from "./HotLog";
2
+ /**
3
+ * Creates stuff for the CLI.
4
+ */
5
+ export declare class HotCreator {
6
+ /**
7
+ * The name of the app to create.
8
+ */
9
+ name: string;
10
+ /**
11
+ * The type of project to create. Can be:
12
+ * * web
13
+ * * web-api
14
+ * * api
15
+ */
16
+ type: string;
17
+ /**
18
+ * The language to use when creating. Default is "ts". Can be:
19
+ * * ts
20
+ */
21
+ language: string;
22
+ /**
23
+ * The output directory.
24
+ */
25
+ outputDir: string;
26
+ /**
27
+ * The logger.
28
+ */
29
+ logger: HotLog;
30
+ /**
31
+ * The commands used while creating the app.
32
+ */
33
+ createCommands: {
34
+ /**
35
+ * The init command to use after the project has been created.
36
+ */
37
+ init: string;
38
+ /**
39
+ * The transpile command to use after the project has been initialized.
40
+ */
41
+ transpileTS: string;
42
+ };
43
+ /**
44
+ * The NPM commands used.
45
+ */
46
+ npmCommands: {
47
+ /**
48
+ * The start command to use.
49
+ */
50
+ start: string;
51
+ /**
52
+ * The dev start command to use.
53
+ */
54
+ dev: string;
55
+ /**
56
+ * The test command to use.
57
+ */
58
+ test: string;
59
+ /**
60
+ * The build command to use.
61
+ */
62
+ build: string;
63
+ /**
64
+ * The web api build command to use.
65
+ */
66
+ buildWebAPI: string;
67
+ /**
68
+ * The debug web api build command to use.
69
+ */
70
+ buildWebAPIDebug: string;
71
+ };
72
+ constructor(name?: string, logger?: HotLog);
73
+ /**
74
+ * Execute a command.
75
+ */
76
+ protected static exec(cmd: string): Promise<string>;
77
+ /**
78
+ * Copy the libraries over to a new location.
79
+ */
80
+ copyLibraries(location: string): Promise<void>;
81
+ /**
82
+ * Create an app.
83
+ */
84
+ create(): Promise<void>;
85
+ /**
86
+ * Replace keys in a file.
87
+ */
88
+ protected replaceKeysInFile(filepath: string, keys: {
89
+ [name: string]: string;
90
+ }): Promise<void>;
91
+ }
92
+ //# sourceMappingURL=HotCreator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HotCreator.d.ts","sourceRoot":"","sources":["../../src/HotCreator.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;GAEG;AACH,qBAAa,UAAU;IAEtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,EAAE;QACd;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;KACpB,CAAC;IACH;;OAEG;IACH,WAAW,EAAE;QACX;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;QACZ;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QACpB;;WAEG;QACH,gBAAgB,EAAE,MAAM,CAAC;KACzB,CAAC;gBAEU,IAAI,GAAE,MAAW,EAAE,MAAM,GAAE,MAAsB;IAqB9D;;OAEG;qBACoB,IAAI,CAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAO1D;;OAEG;IACG,aAAa,CAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOrD;;OAEG;IACG,MAAM,IAAK,OAAO,CAAC,IAAI,CAAC;IAqV9B;;OAEG;cACa,iBAAiB,CAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAatG"}
@@ -0,0 +1,465 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28
+ });
29
+ };
30
+ var __generator = (this && this.__generator) || function (thisArg, body) {
31
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
32
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
33
+ function verb(n) { return function (v) { return step([n, v]); }; }
34
+ function step(op) {
35
+ if (f) throw new TypeError("Generator is already executing.");
36
+ while (_) try {
37
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
38
+ if (y = 0, t) op = [op[0] & 2, t.value];
39
+ switch (op[0]) {
40
+ case 0: case 1: t = op; break;
41
+ case 4: _.label++; return { value: op[1], done: false };
42
+ case 5: _.label++; y = op[1]; op = [0]; continue;
43
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
44
+ default:
45
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
46
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
47
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
48
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
49
+ if (t[2]) _.ops.pop();
50
+ _.trys.pop(); continue;
51
+ }
52
+ op = body.call(thisArg, _);
53
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
54
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
55
+ }
56
+ };
57
+ Object.defineProperty(exports, "__esModule", { value: true });
58
+ exports.HotCreator = void 0;
59
+ var ppath = __importStar(require("path"));
60
+ var util = require("util");
61
+ var asyncExec = util.promisify(require("child_process").exec);
62
+ var HotIO_1 = require("./HotIO");
63
+ var HotStaq_1 = require("./HotStaq");
64
+ var HotLog_1 = require("./HotLog");
65
+ /**
66
+ * Creates stuff for the CLI.
67
+ */
68
+ var HotCreator = /** @class */ (function () {
69
+ function HotCreator(name, logger) {
70
+ if (name === void 0) { name = ""; }
71
+ if (logger === void 0) { logger = new HotLog_1.HotLog(); }
72
+ this.name = name;
73
+ this.type = "web-api";
74
+ this.language = "ts";
75
+ this.outputDir = "";
76
+ this.logger = logger;
77
+ this.createCommands = {
78
+ init: "git init && npm install",
79
+ transpileTS: "npm run build"
80
+ };
81
+ this.npmCommands = {
82
+ start: "",
83
+ dev: "",
84
+ test: "hotstaq test",
85
+ build: "",
86
+ buildWebAPI: "",
87
+ buildWebAPIDebug: ""
88
+ };
89
+ }
90
+ /**
91
+ * Execute a command.
92
+ */
93
+ HotCreator.exec = function (cmd) {
94
+ return __awaiter(this, void 0, void 0, function () {
95
+ var output;
96
+ return __generator(this, function (_a) {
97
+ switch (_a.label) {
98
+ case 0: return [4 /*yield*/, asyncExec(cmd)];
99
+ case 1:
100
+ output = _a.sent();
101
+ return [2 /*return*/, (output.stdout)];
102
+ }
103
+ });
104
+ });
105
+ };
106
+ /**
107
+ * Copy the libraries over to a new location.
108
+ */
109
+ HotCreator.prototype.copyLibraries = function (location) {
110
+ return __awaiter(this, void 0, void 0, function () {
111
+ var buildWebDir;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ buildWebDir = ppath.normalize("".concat(__dirname, "/../../build-web"));
116
+ return [4 /*yield*/, HotIO_1.HotIO.copyFiles(buildWebDir, ppath.normalize(location))];
117
+ case 1:
118
+ _a.sent();
119
+ return [2 /*return*/];
120
+ }
121
+ });
122
+ });
123
+ };
124
+ /**
125
+ * Create an app.
126
+ */
127
+ HotCreator.prototype.create = function () {
128
+ return __awaiter(this, void 0, void 0, function () {
129
+ var readMeBuildSteps, packageJSON, packageJSONstr, hotSiteJSON, hotSiteJSONstr, projectDir, publicDir, filesDir, buildWebDir, launchJSON, launchJSONstr, tasksJSON, tasksJSONstr;
130
+ return __generator(this, function (_a) {
131
+ switch (_a.label) {
132
+ case 0:
133
+ this.logger.info("Creating \"".concat(this.name, "\" of type ").concat(this.type, " for language ").concat(this.language, "..."));
134
+ HotStaq_1.HotStaq.checkHotSiteName(this.name, true);
135
+ this.outputDir = ppath.normalize("".concat(this.outputDir));
136
+ return [4 /*yield*/, HotIO_1.HotIO.mkdir(ppath.join(this.outputDir, "/public/js/"))];
137
+ case 1:
138
+ _a.sent();
139
+ return [4 /*yield*/, HotIO_1.HotIO.mkdir(ppath.join(this.outputDir, "/.vscode/"))];
140
+ case 2:
141
+ _a.sent();
142
+ return [4 /*yield*/, HotIO_1.HotIO.mkdir(ppath.join(this.outputDir, "/src/"))];
143
+ case 3:
144
+ _a.sent();
145
+ readMeBuildSteps = "";
146
+ if (this.language === "ts") {
147
+ readMeBuildSteps = "\n\tnpm run build\n\nThis will transpile the TypeScript into ES6 JavaScript by default. After this is done building, enter: \n\t\t\t";
148
+ }
149
+ packageJSON = {
150
+ "name": this.name,
151
+ "description": "",
152
+ "version": "1.0.0",
153
+ "main": "index.js",
154
+ "scripts": {},
155
+ "keywords": [],
156
+ "author": "",
157
+ "license": "ISC",
158
+ "dependencies": {
159
+ "hotstaq": "^0.5.23",
160
+ "copy-webpack-plugin": "^6.0.3"
161
+ }
162
+ };
163
+ if (this.npmCommands.start === "")
164
+ this.npmCommands.start = "hotstaq --hotsite ./HotSite.json run --server-type ".concat(this.type);
165
+ if (this.npmCommands.start !== "")
166
+ packageJSON.scripts["start"] = this.npmCommands.start;
167
+ if (this.npmCommands.dev === "")
168
+ this.npmCommands.dev = "hotstaq --hotsite ./HotSite.json --development-mode run --server-type ".concat(this.type, " --web-http-port 8080");
169
+ if (this.npmCommands.dev !== "")
170
+ packageJSON.scripts["dev"] = this.npmCommands.dev;
171
+ if (this.npmCommands.test !== "")
172
+ packageJSON.scripts["test"] = this.npmCommands.test;
173
+ if (this.npmCommands.build === "") {
174
+ if (this.language === "ts")
175
+ this.npmCommands.build = "tsc --build ./tsconfig.json";
176
+ }
177
+ if (this.npmCommands.build !== "")
178
+ packageJSON.scripts["build"] = this.npmCommands.build;
179
+ if (this.npmCommands.buildWebAPI === "") {
180
+ if (this.language === "ts")
181
+ this.npmCommands.buildWebAPI = "webpack --mode=production --config ./webpack-api.config.js";
182
+ }
183
+ if (this.npmCommands.buildWebAPI !== "")
184
+ packageJSON.scripts["build-web"] = this.npmCommands.buildWebAPI;
185
+ if (this.npmCommands.buildWebAPIDebug === "") {
186
+ if (this.language === "ts")
187
+ this.npmCommands.buildWebAPIDebug = "webpack --mode=development --debug --config ./webpack-api.config.js";
188
+ }
189
+ if (this.npmCommands.buildWebAPIDebug !== "")
190
+ packageJSON.scripts["build-web-debug"] = this.npmCommands.buildWebAPIDebug;
191
+ // If this is a web only build, remove the build web scripts from packageJSON.
192
+ if (this.type === "web") {
193
+ if (packageJSON.scripts["build-web"] != null)
194
+ delete packageJSON.scripts["build-web"];
195
+ if (packageJSON.scripts["build-web-debug"] != null)
196
+ delete packageJSON.scripts["build-web-debug"];
197
+ }
198
+ if (this.language === "ts")
199
+ packageJSON.main = "build/AppAPI.js";
200
+ packageJSONstr = JSON.stringify(packageJSON, null, 2);
201
+ return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(ppath.normalize("".concat(this.outputDir, "/package.json")), packageJSONstr)];
202
+ case 4:
203
+ _a.sent();
204
+ hotSiteJSON = {
205
+ name: this.name,
206
+ server: {
207
+ globalApi: "AppAPI",
208
+ serveDirectories: [{
209
+ route: "/",
210
+ localPath: "./public/"
211
+ }]
212
+ },
213
+ testing: {
214
+ web: {
215
+ tester: "HotTesterMochaSelenium",
216
+ testerAPIUrl: "http://127.0.0.1:8183"
217
+ }
218
+ }
219
+ };
220
+ if (this.language === "ts") {
221
+ if ((this.type === "web-api") || (this.type === "api")) {
222
+ hotSiteJSON.apis = {};
223
+ hotSiteJSON.apis["AppAPI"] = {
224
+ "jsapi": "./js/".concat(this.name, ".js"),
225
+ "libraryName": "".concat(this.name, "Web"),
226
+ "apiName": "AppAPI",
227
+ "filepath": "./build/AppAPI.js"
228
+ };
229
+ }
230
+ }
231
+ hotSiteJSONstr = JSON.stringify(hotSiteJSON, null, "\t");
232
+ return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(ppath.normalize("".concat(this.outputDir, "/HotSite.json")), hotSiteJSONstr)];
233
+ case 5:
234
+ _a.sent();
235
+ this.logger.info("Copying files...");
236
+ projectDir = ppath.normalize("".concat(__dirname, "/../../creator/project"));
237
+ return [4 /*yield*/, HotIO_1.HotIO.copyFiles(projectDir, ppath.normalize("".concat(this.outputDir, "/")))];
238
+ case 6:
239
+ _a.sent();
240
+ return [4 /*yield*/, HotIO_1.HotIO.moveFile("".concat(this.outputDir, "/gitignore"), "".concat(this.outputDir, "/.gitignore"))];
241
+ case 7:
242
+ _a.sent();
243
+ return [4 /*yield*/, HotIO_1.HotIO.moveFile("".concat(this.outputDir, "/npmignore"), "".concat(this.outputDir, "/.npmignore"))];
244
+ case 8:
245
+ _a.sent();
246
+ return [4 /*yield*/, this.replaceKeysInFile(ppath.normalize("".concat(this.outputDir, "/README.md")), {
247
+ "APPNAME": this.name,
248
+ "BUILDSTEPS": readMeBuildSteps
249
+ })];
250
+ case 9:
251
+ _a.sent();
252
+ if (!((this.type === "web") || (this.type === "web-api"))) return [3 /*break*/, 11];
253
+ publicDir = ppath.normalize("".concat(__dirname, "/../../creator/public"));
254
+ return [4 /*yield*/, HotIO_1.HotIO.copyFiles(publicDir, ppath.normalize("".concat(this.outputDir, "/public/")))];
255
+ case 10:
256
+ _a.sent();
257
+ _a.label = 11;
258
+ case 11:
259
+ if (!(this.language === "ts")) return [3 /*break*/, 14];
260
+ if (!((this.type === "web-api") || (this.type === "api"))) return [3 /*break*/, 14];
261
+ filesDir = ppath.normalize("".concat(__dirname, "/../../creator/ts"));
262
+ return [4 /*yield*/, HotIO_1.HotIO.copyFiles(filesDir, ppath.normalize("".concat(this.outputDir, "/")))];
263
+ case 12:
264
+ _a.sent();
265
+ return [4 /*yield*/, this.replaceKeysInFile(ppath.normalize("".concat(this.outputDir, "/webpack-api.config.js")), {
266
+ "APPNAME": this.name
267
+ })];
268
+ case 13:
269
+ _a.sent();
270
+ _a.label = 14;
271
+ case 14:
272
+ this.logger.info("Finished copying files...");
273
+ this.logger.info("Copying HotStaq JS files...");
274
+ buildWebDir = ppath.normalize("".concat(__dirname, "/../../build-web"));
275
+ return [4 /*yield*/, HotIO_1.HotIO.copyFiles(buildWebDir, ppath.normalize("".concat(this.outputDir, "/public/js/")))];
276
+ case 15:
277
+ _a.sent();
278
+ this.logger.info("Finished copying public files...");
279
+ this.logger.info("Creating VSCode files...");
280
+ launchJSON = {
281
+ "version": "0.2.0",
282
+ "configurations": [
283
+ {
284
+ "type": "node",
285
+ "request": "launch",
286
+ "name": "Debug Web Server",
287
+ "program": "${workspaceFolder}/node_modules/hotstaq/build/src/cli.js",
288
+ "skipFiles": [
289
+ "<node_internals>/**"
290
+ ],
291
+ "outputCapture": "std",
292
+ "args": [
293
+ "--development-mode",
294
+ "--hotsite",
295
+ "./HotSite.json",
296
+ "run",
297
+ "--web-http-port",
298
+ "8080"
299
+ ],
300
+ "env": {}
301
+ }
302
+ ]
303
+ };
304
+ if (this.language === "ts") {
305
+ if ((this.type === "web-api") || (this.type === "api")) {
306
+ launchJSON["configurations"].push({
307
+ "type": "node",
308
+ "request": "launch",
309
+ "name": "Debug Web/API Server",
310
+ "program": "${workspaceFolder}/node_modules/hotstaq/build/src/cli.js",
311
+ "skipFiles": [
312
+ "<node_internals>/**"
313
+ ],
314
+ "outputCapture": "std",
315
+ "args": [
316
+ "--development-mode",
317
+ "--hotsite",
318
+ "./HotSite.json",
319
+ "run",
320
+ "--server-type",
321
+ "web-api",
322
+ "--web-http-port",
323
+ "8080",
324
+ "--api-http-port",
325
+ "8081"
326
+ ],
327
+ "env": {}
328
+ }, {
329
+ "type": "node",
330
+ "request": "launch",
331
+ "name": "Debug API Server",
332
+ "program": "${workspaceFolder}/node_modules/hotstaq/build/src/cli.js",
333
+ "skipFiles": [
334
+ "<node_internals>/**"
335
+ ],
336
+ "outputCapture": "std",
337
+ "args": [
338
+ "--development-mode",
339
+ "--hotsite",
340
+ "./HotSite.json",
341
+ "run",
342
+ "--server-type",
343
+ "api",
344
+ "--api-http-port",
345
+ "8081"
346
+ ],
347
+ "env": {}
348
+ });
349
+ }
350
+ }
351
+ launchJSON["configurations"].push({
352
+ "type": "node",
353
+ "request": "launch",
354
+ "name": "Run Web Tests",
355
+ "skipFiles": [
356
+ "<node_internals>/**"
357
+ ],
358
+ "program": "${workspaceFolder}/node_modules/hotstaq/build/src/cli.js",
359
+ "args": [
360
+ "--development-mode",
361
+ "--hotsite",
362
+ "./HotSite.json",
363
+ "test",
364
+ "--web-http-port",
365
+ "8080"
366
+ ],
367
+ "env": {}
368
+ });
369
+ launchJSON["configurations"].push({
370
+ "type": "pwa-node",
371
+ "request": "attach",
372
+ "name": "Remote Debugger",
373
+ "skipFiles": [
374
+ "<node_internals>/**"
375
+ ],
376
+ "localRoot": "${workspaceFolder}",
377
+ "address": "127.0.0.1",
378
+ "port": 9229,
379
+ "remoteRoot": "/app/".concat(this.name)
380
+ });
381
+ launchJSONstr = JSON.stringify(launchJSON, null, "\t");
382
+ return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(ppath.normalize("".concat(this.outputDir, "/.vscode/launch.json")), launchJSONstr)];
383
+ case 16:
384
+ _a.sent();
385
+ tasksJSON = {
386
+ "version": "2.0.0",
387
+ "tasks": []
388
+ };
389
+ if (this.language === "ts") {
390
+ if ((this.type === "web-api") || (this.type === "api")) {
391
+ tasksJSON["tasks"].push({
392
+ "type": "shell",
393
+ "group": "build",
394
+ "runOptions": {
395
+ "instanceLimit": 1
396
+ },
397
+ "problemMatcher": [],
398
+ "label": "Build Web API Debug",
399
+ "command": "npx webpack --mode=development --config=webpack-api.config.js --debug --watch"
400
+ }, {
401
+ "type": "typescript",
402
+ "tsconfig": "tsconfig.json",
403
+ "option": "watch",
404
+ "problemMatcher": [
405
+ "$tsc-watch"
406
+ ],
407
+ "group": "build",
408
+ "runOptions": {
409
+ "instanceLimit": 1
410
+ },
411
+ "label": "Build Server"
412
+ });
413
+ }
414
+ }
415
+ tasksJSONstr = JSON.stringify(tasksJSON, null, "\t");
416
+ return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(ppath.normalize("".concat(this.outputDir, "/.vscode/tasks.json")), tasksJSONstr)];
417
+ case 17:
418
+ _a.sent();
419
+ this.logger.info("Finished creating VSCode files...");
420
+ this.logger.info("Creating git repo and installing modules...");
421
+ return [4 /*yield*/, HotCreator.exec("cd ".concat(this.outputDir, " && ").concat(this.createCommands.init))];
422
+ case 18:
423
+ _a.sent();
424
+ this.logger.info("Finished creating git repo and installing modules...");
425
+ if (!(this.language === "ts")) return [3 /*break*/, 20];
426
+ this.logger.info("Transpiling TypeScript...");
427
+ return [4 /*yield*/, HotCreator.exec("cd ".concat(this.outputDir, " && ").concat(this.createCommands.transpileTS))];
428
+ case 19:
429
+ _a.sent();
430
+ this.logger.info("Finished transpiling TypeScript...");
431
+ _a.label = 20;
432
+ case 20:
433
+ this.logger.info("Finished creating \"".concat(this.name, "\"..."));
434
+ return [2 /*return*/];
435
+ }
436
+ });
437
+ });
438
+ };
439
+ /**
440
+ * Replace keys in a file.
441
+ */
442
+ HotCreator.prototype.replaceKeysInFile = function (filepath, keys) {
443
+ return __awaiter(this, void 0, void 0, function () {
444
+ var contents, key, value;
445
+ return __generator(this, function (_a) {
446
+ switch (_a.label) {
447
+ case 0: return [4 /*yield*/, HotIO_1.HotIO.readTextFile(filepath)];
448
+ case 1:
449
+ contents = _a.sent();
450
+ for (key in keys) {
451
+ value = keys[key];
452
+ contents = HotStaq_1.HotStaq.replaceKey(contents, key, value);
453
+ }
454
+ return [4 /*yield*/, HotIO_1.HotIO.writeTextFile(filepath, contents)];
455
+ case 2:
456
+ _a.sent();
457
+ return [2 /*return*/];
458
+ }
459
+ });
460
+ });
461
+ };
462
+ return HotCreator;
463
+ }());
464
+ exports.HotCreator = HotCreator;
465
+ //# sourceMappingURL=HotCreator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HotCreator.js","sourceRoot":"","sources":["../../src/HotCreator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0CAA8B;AAC9B,IAAM,IAAI,GAAG,OAAO,CAAE,MAAM,CAAC,CAAC;AAC9B,IAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAE,OAAO,CAAE,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC;AAElE,iCAAgC;AAChC,qCAA6C;AAC7C,mCAAkC;AAElC;;GAEG;AACH;IAqEC,oBAAa,IAAiB,EAAE,MAA8B;QAAjD,qBAAA,EAAA,SAAiB;QAAE,uBAAA,EAAA,aAAqB,eAAM,EAAG;QAE7D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG;YACpB,IAAI,EAAE,yBAAyB;YAC/B,WAA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IAAI,CAAC,SAAS,iBAAO,IAAI,CAAC,cAAc,CAAC,WAAW,CAAE,CAAC,EAAA;;wBAApF,SAAoF,CAAC;wBACrF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAE,oCAAoC,CAAC,CAAC;;;wBAGzD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAE,8BAAsB,IAAI,CAAC,IAAI,UAAM,CAAC,CAAC;;;;;KACzD;IAED;;OAEG;IACa,sCAAiB,GAAjC,UAAmC,QAAgB,EAAE,IAAiC;;;;;4BAE9D,qBAAM,aAAK,CAAC,YAAY,CAAE,QAAQ,CAAC,EAAA;;wBAAtD,QAAQ,GAAW,SAAmC;wBAE1D,KAAS,GAAG,IAAI,IAAI,EACpB;4BACK,KAAK,GAAW,IAAI,CAAC,GAAG,CAAC,CAAC;4BAE9B,QAAQ,GAAG,iBAAO,CAAC,UAAU,CAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;yBACrD;wBAED,qBAAM,aAAK,CAAC,aAAa,CAAE,QAAQ,EAAE,QAAQ,CAAC,EAAA;;wBAA9C,SAA8C,CAAC;;;;;KAC/C;IACF,iBAAC;AAAD,CAAC,AAtdD,IAsdC;AAtdY,gCAAU"}
@@ -0,0 +1,69 @@
1
+ import { HotDBSchema } from "./schemas/HotDBSchema";
2
+ import { HotDBConnectionInterface } from "./HotDBConnectionInterface";
3
+ /**
4
+ * The database connection status.
5
+ */
6
+ export declare enum ConnectionStatus {
7
+ Disconnected = 0,
8
+ Connecting = 1,
9
+ Connected = 2
10
+ }
11
+ /**
12
+ * The server-side database connection.
13
+ */
14
+ export declare abstract class HotDB<DBType = any, DBResultType = any, DBSchema = HotDBSchema> {
15
+ /**
16
+ * The database type.
17
+ */
18
+ type: string;
19
+ /**
20
+ * The connection to the database (or the driver).
21
+ */
22
+ db: DBType;
23
+ /**
24
+ * The connection status.
25
+ */
26
+ connectionStatus: ConnectionStatus;
27
+ /**
28
+ * The db schema. This will generate a database structure
29
+ * and keep it maintained as needed.
30
+ */
31
+ schema: DBSchema;
32
+ constructor(db?: DBType, type?: string, schema?: DBSchema);
33
+ /**
34
+ * Connect to the database. This will only start connecting
35
+ * if db is null.
36
+ */
37
+ abstract connect(connectionInfo: HotDBConnectionInterface): Promise<any[]>;
38
+ /**
39
+ * Synchronize all tables.
40
+ */
41
+ /**
42
+ * Synchronize a table. This will create/modify the table based on whether it
43
+ * exists, and if there's been any changes to any fields.
44
+ */
45
+ /**
46
+ * Checks if the table exists.
47
+ */
48
+ abstract tableCheck?(tableName: string): Promise<boolean>;
49
+ /**
50
+ * The query to make.
51
+ */
52
+ abstract query?(queryString: string, values?: any[]): Promise<DBResultType>;
53
+ /**
54
+ * Make a single query.
55
+ */
56
+ abstract queryOne?(queryString: string, values?: any[]): Promise<DBResultType>;
57
+ /**
58
+ * Make multiple queries.
59
+ */
60
+ abstract multiQuery?(queryStrings: string[] | {
61
+ query: string;
62
+ values: any[];
63
+ }[]): Promise<DBResultType[]>;
64
+ /**
65
+ * Disconnect from the server.
66
+ */
67
+ abstract disconnect(): Promise<void>;
68
+ }
69
+ //# sourceMappingURL=HotDB.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HotDB.d.ts","sourceRoot":"","sources":["../../src/HotDB.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE;;GAEG;AACH,oBAAY,gBAAgB;IAE3B,YAAY,IAAA;IACZ,UAAU,IAAA;IACV,SAAS,IAAA;CACT;AAED;;GAEG;AACH,8BAAsB,KAAK,CAAC,MAAM,GAAG,GAAG,EAAE,YAAY,GAAG,GAAG,EAAE,QAAQ,GAAG,WAAW;IAEnF;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;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