@breautek/storm 3.4.0 → 4.0.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.
Files changed (298) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/docs/README.md +153 -63
  3. package/docs/classes/{Application.Application-1.md → Application.md} +110 -112
  4. package/docs/classes/{BackendAuthenticationMiddleware.BackendAuthenticationMiddleware-1.md → BackendAuthenticationMiddleware.md} +6 -8
  5. package/docs/classes/CORSMiddleware.md +143 -0
  6. package/docs/classes/{ConfigLoader.ConfigLoader-1.md → ConfigLoader.md} +5 -7
  7. package/docs/classes/{Database.Database-1.md → Database.md} +30 -32
  8. package/docs/classes/{DatabaseConnection.DatabaseConnection-1.md → DatabaseConnection.md} +57 -59
  9. package/docs/classes/DatabaseQueryError.md +307 -0
  10. package/docs/classes/DiskSpaceError.md +301 -0
  11. package/docs/classes/DropTemporaryTableQuery.md +201 -0
  12. package/docs/classes/DumpStream.md +23 -0
  13. package/docs/classes/DuplicateEntryError.md +303 -0
  14. package/docs/classes/EntityNotFoundError.md +301 -0
  15. package/docs/classes/ExpiredTokenError.md +301 -0
  16. package/docs/classes/Handler.md +323 -0
  17. package/docs/classes/InternalError.md +301 -0
  18. package/docs/classes/InvalidCredentialsError.md +301 -0
  19. package/docs/classes/InvalidValueError.md +309 -0
  20. package/docs/classes/ManagedDatabaseConnection.md +397 -0
  21. package/docs/classes/Middleware.md +72 -0
  22. package/docs/classes/MissingConfigError.md +301 -0
  23. package/docs/classes/MissingParameterError.md +301 -0
  24. package/docs/classes/{MySQLConnection.MySQLConnection-1.md → MySQLConnection.md} +63 -65
  25. package/docs/classes/MySQLDatabase.md +314 -0
  26. package/docs/classes/{Query.Query-1.md → Query.md} +38 -34
  27. package/docs/classes/{RawQuery.RawQuery-1.md → RawQuery.md} +36 -32
  28. package/docs/classes/Request.md +321 -0
  29. package/docs/classes/Response.md +242 -0
  30. package/docs/classes/{ResponseData.ResponseData-1.md → ResponseData.md} +18 -20
  31. package/docs/classes/{ServiceProvider.ServiceProvider-1.md → ServiceProvider.md} +52 -54
  32. package/docs/classes/{ServiceResponse.ServiceResponse-1.md → ServiceResponse.md} +9 -11
  33. package/docs/classes/SetSessionVariableQuery.md +201 -0
  34. package/docs/classes/StormError.md +307 -0
  35. package/docs/classes/TemporaryTableQuery.md +207 -0
  36. package/docs/classes/{Token.Token-1.md → Token.md} +5 -7
  37. package/docs/classes/{TokenManager.TokenManager-1.md → TokenManager.md} +16 -18
  38. package/docs/classes/UnauthorizedAccessError.md +301 -0
  39. package/docs/enums/ErrorCode.md +107 -0
  40. package/docs/enums/ExitCode.md +30 -0
  41. package/docs/enums/HTTPMethod.md +52 -0
  42. package/docs/enums/JWTError.md +30 -0
  43. package/docs/enums/StatusCode.md +536 -0
  44. package/docs/interfaces/IAdditionalErrorDetails.md +7 -0
  45. package/docs/interfaces/{IAuthTokenData.IAuthTokenData-1.md → IAuthTokenData.md} +4 -6
  46. package/docs/interfaces/IConfig.md +112 -0
  47. package/docs/interfaces/{IDatabaseConfig.IDatabaseConfig-1.md → IDatabaseConfig.md} +13 -15
  48. package/docs/interfaces/{IDatabaseConnection.IDatabaseConnection-1.md → IDatabaseConnection.md} +33 -35
  49. package/docs/interfaces/IErrorResponse.md +52 -0
  50. package/docs/interfaces/IFormData.md +30 -0
  51. package/docs/interfaces/{IHandler.IHandler-1.md → IHandler.md} +4 -6
  52. package/docs/interfaces/IInsertQueryResult.md +41 -0
  53. package/docs/interfaces/IJWTVerifyOptions.md +19 -0
  54. package/docs/interfaces/IParameterMap.md +7 -0
  55. package/docs/interfaces/IRequestResponse.md +37 -0
  56. package/docs/interfaces/IServiceHeaders.md +7 -0
  57. package/docs/interfaces/ISetSessionVariableQueryInput.md +30 -0
  58. package/docs/interfaces/ITemporaryTableQueryInput.md +30 -0
  59. package/docs/interfaces/IUpdateQueryResult.md +30 -0
  60. package/docs/interfaces/{api.formidable.EmitData.md → formidable.EmitData.md} +7 -7
  61. package/docs/interfaces/{api.formidable.EventData.md → formidable.EventData.md} +10 -10
  62. package/docs/interfaces/formidable.Fields.md +9 -0
  63. package/docs/interfaces/{api.formidable.File.md → formidable.File.md} +12 -12
  64. package/docs/interfaces/{api.formidable.FileJSON.md → formidable.FileJSON.md} +12 -12
  65. package/docs/interfaces/formidable.Files.md +9 -0
  66. package/docs/interfaces/{api.formidable.Options.md → formidable.Options.md} +17 -15
  67. package/docs/interfaces/{api.formidable.Part.md → formidable.Part.md} +41 -41
  68. package/docs/modules/{api.formidable.md → formidable.md} +23 -25
  69. package/lib/Application.js +1 -1
  70. package/lib/Application.js.map +1 -1
  71. package/lib/BackendAuthenticationMiddleware.js +2 -2
  72. package/lib/BackendAuthenticationMiddleware.js.map +1 -1
  73. package/lib/CORSMiddleware.js +1 -1
  74. package/lib/CORSMiddleware.js.map +1 -1
  75. package/lib/ConfigLoader.js +1 -1
  76. package/lib/ConfigLoader.js.map +1 -1
  77. package/lib/Database.js +1 -1
  78. package/lib/Database.js.map +1 -1
  79. package/lib/DatabaseConnection.js +4 -4
  80. package/lib/DatabaseConnection.js.map +1 -1
  81. package/lib/Handler.js +2 -2
  82. package/lib/Handler.js.map +1 -1
  83. package/lib/ManagedDatabaseConnection.js +4 -4
  84. package/lib/ManagedDatabaseConnection.js.map +1 -1
  85. package/lib/MySQLConnection.js +7 -7
  86. package/lib/MySQLConnection.js.map +1 -1
  87. package/lib/MySQLDatabase.js +4 -4
  88. package/lib/MySQLDatabase.js.map +1 -1
  89. package/lib/Query.d.ts +2 -2
  90. package/lib/Query.js +2 -2
  91. package/lib/Query.js.map +1 -1
  92. package/lib/Request.js +2 -2
  93. package/lib/Request.js.map +1 -1
  94. package/lib/Response.js +1 -1
  95. package/lib/Response.js.map +1 -1
  96. package/lib/StormError.js +1 -1
  97. package/lib/StormError.js.map +1 -1
  98. package/lib/TemporaryTableQuery.d.ts +2 -1
  99. package/lib/TemporaryTableQuery.js +2 -2
  100. package/lib/TemporaryTableQuery.js.map +1 -1
  101. package/lib/TokenManager.js +1 -1
  102. package/lib/TokenManager.js.map +1 -1
  103. package/package.json +19 -19
  104. package/src/DatabaseConnection.ts +2 -2
  105. package/src/Query.ts +3 -3
  106. package/src/TemporaryTableQuery.ts +3 -2
  107. package/.nyc_output/01d7f3ed-ada5-4fbf-bf72-17458de5eda1.json +0 -1
  108. package/.nyc_output/07a372ea-5f20-411a-8f9b-5cfd38c9f7cf.json +0 -1
  109. package/.nyc_output/1a03fe29-15f4-4d36-a6f1-061f95c919d2.json +0 -1
  110. package/.nyc_output/1be973a3-2986-4e51-9bef-ffa834a81029.json +0 -1
  111. package/.nyc_output/1fa3f196-6284-4422-b186-8fb97ac299b1.json +0 -1
  112. package/.nyc_output/21b4136c-a3f4-465a-ab85-cdfa70dda252.json +0 -1
  113. package/.nyc_output/279ce3fa-118b-4b21-bbd4-a0dbabb3cf28.json +0 -1
  114. package/.nyc_output/370daf16-8792-4296-a491-4b0ff8c5c03d.json +0 -1
  115. package/.nyc_output/44cabfc1-f759-4ff5-9502-0967bba28c3b.json +0 -1
  116. package/.nyc_output/52cc8740-cb58-4b4e-b952-bedee8b2a4b9.json +0 -1
  117. package/.nyc_output/5359ad53-153e-4a68-9158-095880ce3682.json +0 -1
  118. package/.nyc_output/54476a59-73ed-43c2-b90f-46bad1fd2b24.json +0 -1
  119. package/.nyc_output/5e815b47-2082-47aa-8d02-548d8f0175a6.json +0 -1
  120. package/.nyc_output/6300a22c-16ee-4f46-a5bc-ac392153ef39.json +0 -1
  121. package/.nyc_output/6331ec83-1ccd-4980-8cdb-55f87f01b6a0.json +0 -1
  122. package/.nyc_output/6a819ad4-b691-45b3-b693-98f812bd3249.json +0 -1
  123. package/.nyc_output/77e0e45c-5d9f-4848-96a1-cc36e5373078.json +0 -1
  124. package/.nyc_output/790a50c9-e677-48ed-9d87-3ca0d173f7b0.json +0 -1
  125. package/.nyc_output/7dad65fb-92f5-4d0a-a576-e071c1ab73e5.json +0 -1
  126. package/.nyc_output/7ee3638f-2a2d-4d5a-9970-254a86884c40.json +0 -1
  127. package/.nyc_output/883b8a83-3a1e-4153-a987-3a2f5455a627.json +0 -1
  128. package/.nyc_output/8dc3a0b6-b04e-45f5-85ec-99efabb63499.json +0 -1
  129. package/.nyc_output/8e03b522-9fef-4fae-82c0-f51611fab55a.json +0 -1
  130. package/.nyc_output/946bad92-6c4b-4ac1-b508-83983322629c.json +0 -1
  131. package/.nyc_output/95d30443-c776-4f68-ab14-34ecdccdaee4.json +0 -1
  132. package/.nyc_output/abc21188-b3dc-4cce-bc20-f0680a4dde62.json +0 -1
  133. package/.nyc_output/ac7ebac2-d226-41f9-b271-25b0ad449de0.json +0 -1
  134. package/.nyc_output/ae1048af-74db-41a3-b4d7-e511f60259ef.json +0 -1
  135. package/.nyc_output/b121ce1e-5d6b-4b6d-93a7-21b315098afc.json +0 -1
  136. package/.nyc_output/bb6d14e4-2e75-45bd-a1f0-67c21781bcf6.json +0 -1
  137. package/.nyc_output/c5d84f76-682f-429c-9b0d-241c81a72907.json +0 -1
  138. package/.nyc_output/d14c616f-ca9b-402d-879d-c7e91ecc6b89.json +0 -1
  139. package/.nyc_output/d3096a06-29ef-4de7-b565-b7b1ca58471a.json +0 -1
  140. package/.nyc_output/d6313ced-0715-41aa-a0bb-22eeae3cccc1.json +0 -1
  141. package/.nyc_output/e7143b16-9cb3-4900-9498-05c40f90af46.json +0 -1
  142. package/.nyc_output/eb21b824-fc88-4f0c-9e72-bd691a141b75.json +0 -1
  143. package/.nyc_output/ee09e08d-c0f5-4fba-9fa1-849b0f32f347.json +0 -1
  144. package/.nyc_output/ee8b9792-e4fc-4950-8532-733858a2a7f2.json +0 -1
  145. package/.nyc_output/f4344c1d-e947-4c51-abe0-e3600b4e721d.json +0 -1
  146. package/.nyc_output/f7d0a4d2-62db-494d-bb67-78e3f93ae05b.json +0 -1
  147. package/.nyc_output/processinfo/01d7f3ed-ada5-4fbf-bf72-17458de5eda1.json +0 -1
  148. package/.nyc_output/processinfo/07a372ea-5f20-411a-8f9b-5cfd38c9f7cf.json +0 -1
  149. package/.nyc_output/processinfo/1a03fe29-15f4-4d36-a6f1-061f95c919d2.json +0 -1
  150. package/.nyc_output/processinfo/1be973a3-2986-4e51-9bef-ffa834a81029.json +0 -1
  151. package/.nyc_output/processinfo/1fa3f196-6284-4422-b186-8fb97ac299b1.json +0 -1
  152. package/.nyc_output/processinfo/21b4136c-a3f4-465a-ab85-cdfa70dda252.json +0 -1
  153. package/.nyc_output/processinfo/279ce3fa-118b-4b21-bbd4-a0dbabb3cf28.json +0 -1
  154. package/.nyc_output/processinfo/370daf16-8792-4296-a491-4b0ff8c5c03d.json +0 -1
  155. package/.nyc_output/processinfo/44cabfc1-f759-4ff5-9502-0967bba28c3b.json +0 -1
  156. package/.nyc_output/processinfo/52cc8740-cb58-4b4e-b952-bedee8b2a4b9.json +0 -1
  157. package/.nyc_output/processinfo/5359ad53-153e-4a68-9158-095880ce3682.json +0 -1
  158. package/.nyc_output/processinfo/54476a59-73ed-43c2-b90f-46bad1fd2b24.json +0 -1
  159. package/.nyc_output/processinfo/5e815b47-2082-47aa-8d02-548d8f0175a6.json +0 -1
  160. package/.nyc_output/processinfo/6300a22c-16ee-4f46-a5bc-ac392153ef39.json +0 -1
  161. package/.nyc_output/processinfo/6331ec83-1ccd-4980-8cdb-55f87f01b6a0.json +0 -1
  162. package/.nyc_output/processinfo/6a819ad4-b691-45b3-b693-98f812bd3249.json +0 -1
  163. package/.nyc_output/processinfo/77e0e45c-5d9f-4848-96a1-cc36e5373078.json +0 -1
  164. package/.nyc_output/processinfo/790a50c9-e677-48ed-9d87-3ca0d173f7b0.json +0 -1
  165. package/.nyc_output/processinfo/7dad65fb-92f5-4d0a-a576-e071c1ab73e5.json +0 -1
  166. package/.nyc_output/processinfo/7ee3638f-2a2d-4d5a-9970-254a86884c40.json +0 -1
  167. package/.nyc_output/processinfo/883b8a83-3a1e-4153-a987-3a2f5455a627.json +0 -1
  168. package/.nyc_output/processinfo/8dc3a0b6-b04e-45f5-85ec-99efabb63499.json +0 -1
  169. package/.nyc_output/processinfo/8e03b522-9fef-4fae-82c0-f51611fab55a.json +0 -1
  170. package/.nyc_output/processinfo/946bad92-6c4b-4ac1-b508-83983322629c.json +0 -1
  171. package/.nyc_output/processinfo/95d30443-c776-4f68-ab14-34ecdccdaee4.json +0 -1
  172. package/.nyc_output/processinfo/abc21188-b3dc-4cce-bc20-f0680a4dde62.json +0 -1
  173. package/.nyc_output/processinfo/ac7ebac2-d226-41f9-b271-25b0ad449de0.json +0 -1
  174. package/.nyc_output/processinfo/ae1048af-74db-41a3-b4d7-e511f60259ef.json +0 -1
  175. package/.nyc_output/processinfo/b121ce1e-5d6b-4b6d-93a7-21b315098afc.json +0 -1
  176. package/.nyc_output/processinfo/bb6d14e4-2e75-45bd-a1f0-67c21781bcf6.json +0 -1
  177. package/.nyc_output/processinfo/c5d84f76-682f-429c-9b0d-241c81a72907.json +0 -1
  178. package/.nyc_output/processinfo/d14c616f-ca9b-402d-879d-c7e91ecc6b89.json +0 -1
  179. package/.nyc_output/processinfo/d3096a06-29ef-4de7-b565-b7b1ca58471a.json +0 -1
  180. package/.nyc_output/processinfo/d6313ced-0715-41aa-a0bb-22eeae3cccc1.json +0 -1
  181. package/.nyc_output/processinfo/e7143b16-9cb3-4900-9498-05c40f90af46.json +0 -1
  182. package/.nyc_output/processinfo/eb21b824-fc88-4f0c-9e72-bd691a141b75.json +0 -1
  183. package/.nyc_output/processinfo/ee09e08d-c0f5-4fba-9fa1-849b0f32f347.json +0 -1
  184. package/.nyc_output/processinfo/ee8b9792-e4fc-4950-8532-733858a2a7f2.json +0 -1
  185. package/.nyc_output/processinfo/f4344c1d-e947-4c51-abe0-e3600b4e721d.json +0 -1
  186. package/.nyc_output/processinfo/f7d0a4d2-62db-494d-bb67-78e3f93ae05b.json +0 -1
  187. package/.nyc_output/processinfo/index.json +0 -1
  188. package/docs/classes/CORSMiddleware.CORSMiddleware-1.md +0 -145
  189. package/docs/classes/DatabaseQueryError.DatabaseQueryError-1.md +0 -309
  190. package/docs/classes/DiskSpaceError.DiskSpaceError-1.md +0 -303
  191. package/docs/classes/DropTemporaryTableQuery.DropTemporaryTableQuery-1.md +0 -197
  192. package/docs/classes/DumpStream.DumpStream-1.md +0 -25
  193. package/docs/classes/DuplicateEntryError.DuplicateEntryError-1.md +0 -305
  194. package/docs/classes/EntityNotFoundError.EntityNotFoundError-1.md +0 -303
  195. package/docs/classes/ExpiredTokenError.ExpiredTokenError-1.md +0 -303
  196. package/docs/classes/Handler.Handler-1.md +0 -325
  197. package/docs/classes/InternalError.InternalError-1.md +0 -303
  198. package/docs/classes/InvalidConfigError.InvalidConfigError-1.md +0 -316
  199. package/docs/classes/InvalidCredentialsError.InvalidCredentialsError-1.md +0 -303
  200. package/docs/classes/InvalidValueError.InvalidValueError-1.md +0 -311
  201. package/docs/classes/JWTVerifyOptionsParser.JWTVerifyOptionsParser-1.md +0 -45
  202. package/docs/classes/ManagedDatabaseConnection.ManagedDatabaseConnection-1.md +0 -399
  203. package/docs/classes/Middleware.Middleware-1.md +0 -74
  204. package/docs/classes/MissingConfigError.MissingConfigError-1.md +0 -303
  205. package/docs/classes/MissingParameterError.MissingParameterError-1.md +0 -303
  206. package/docs/classes/MySQLDatabase.MySQLDatabase-1.md +0 -316
  207. package/docs/classes/Request.Request-1.md +0 -323
  208. package/docs/classes/Response.Response-1.md +0 -244
  209. package/docs/classes/SetSessionVariableQuery.SetSessionVariableQuery-1.md +0 -197
  210. package/docs/classes/StormError.StormError-1.md +0 -309
  211. package/docs/classes/TemporaryTableQuery.TemporaryTableQuery-1.md +0 -197
  212. package/docs/classes/UnauthorizedAccessError.UnauthorizedAccessError-1.md +0 -301
  213. package/docs/classes/private_CommitQuery.CommitQuery.md +0 -197
  214. package/docs/classes/private_RollbackQuery.RollbackQuery.md +0 -197
  215. package/docs/classes/private_StartTransactionQuery.StartTransactionQuery.md +0 -197
  216. package/docs/enums/ApplicationEvent.ApplicationEvent-1.md +0 -21
  217. package/docs/enums/ErrorCode.ErrorCode-1.md +0 -109
  218. package/docs/enums/ExitCode.ExitCode-1.md +0 -32
  219. package/docs/enums/HTTPMethod.HTTPMethod-1.md +0 -54
  220. package/docs/enums/JWTError.JWTError-1.md +0 -32
  221. package/docs/enums/StatusCode.StatusCode-1.md +0 -538
  222. package/docs/interfaces/DropTemporaryTableQuery.IDropTemporaryTableQueryInput.md +0 -21
  223. package/docs/interfaces/IConfig.IConfig-1.md +0 -114
  224. package/docs/interfaces/IFormData.IFormData-1.md +0 -32
  225. package/docs/interfaces/IInsertQueryResult.IInsertQueryResult-1.md +0 -43
  226. package/docs/interfaces/IJWTVerifyOptions.IJWTVerifyOptions-1.md +0 -21
  227. package/docs/interfaces/IRequestResponse.IRequestResponse-1.md +0 -39
  228. package/docs/interfaces/IServiceHeaders.IServiceHeaders-1.md +0 -9
  229. package/docs/interfaces/IUpdateQueryResult.IUpdateQueryResult-1.md +0 -32
  230. package/docs/interfaces/Request.IParameterMap.md +0 -9
  231. package/docs/interfaces/Response.IHeaderKeyValuePair.md +0 -9
  232. package/docs/interfaces/SetSessionVariableQuery.ISetSessionVariableQueryInput.md +0 -32
  233. package/docs/interfaces/StormError.IAdditionalErrorDetails.md +0 -9
  234. package/docs/interfaces/StormError.IErrorResponse.md +0 -54
  235. package/docs/interfaces/TemporaryTableQuery.ITemporaryTableQueryInput.md +0 -32
  236. package/docs/interfaces/api.formidable.Fields.md +0 -9
  237. package/docs/interfaces/api.formidable.Files.md +0 -9
  238. package/docs/modules/Application.md +0 -9
  239. package/docs/modules/ApplicationEvent.md +0 -9
  240. package/docs/modules/BackendAuthenticationMiddleware.md +0 -9
  241. package/docs/modules/CORSMiddleware.md +0 -9
  242. package/docs/modules/ConfigLoader.md +0 -9
  243. package/docs/modules/Database.md +0 -9
  244. package/docs/modules/DatabaseConnection.md +0 -34
  245. package/docs/modules/DatabaseQueryError.md +0 -9
  246. package/docs/modules/DiskSpaceError.md +0 -9
  247. package/docs/modules/DropTemporaryTableQuery.md +0 -13
  248. package/docs/modules/DumpStream.md +0 -9
  249. package/docs/modules/DuplicateEntryError.md +0 -9
  250. package/docs/modules/EntityNotFoundError.md +0 -9
  251. package/docs/modules/ErrorCode.md +0 -9
  252. package/docs/modules/ExitCode.md +0 -9
  253. package/docs/modules/ExpiredTokenError.md +0 -9
  254. package/docs/modules/HTTPMethod.md +0 -9
  255. package/docs/modules/Handler.md +0 -50
  256. package/docs/modules/IAuthTokenData.md +0 -9
  257. package/docs/modules/IConfig.md +0 -9
  258. package/docs/modules/IDatabaseConfig.md +0 -9
  259. package/docs/modules/IDatabaseConnection.md +0 -9
  260. package/docs/modules/IDeleteQueryResult.md +0 -19
  261. package/docs/modules/IFormData.md +0 -9
  262. package/docs/modules/IHandler.md +0 -9
  263. package/docs/modules/IInsertQueryResult.md +0 -9
  264. package/docs/modules/IJWTVerifyOptions.md +0 -9
  265. package/docs/modules/IRequestResponse.md +0 -9
  266. package/docs/modules/IServiceHeaders.md +0 -9
  267. package/docs/modules/IUpdateQueryResult.md +0 -9
  268. package/docs/modules/InternalError.md +0 -9
  269. package/docs/modules/InvalidConfigError.md +0 -9
  270. package/docs/modules/InvalidCredentialsError.md +0 -9
  271. package/docs/modules/InvalidValueError.md +0 -9
  272. package/docs/modules/JWTError.md +0 -9
  273. package/docs/modules/JWTVerifyOptionsParser.md +0 -9
  274. package/docs/modules/ManagedDatabaseConnection.md +0 -9
  275. package/docs/modules/Middleware.md +0 -9
  276. package/docs/modules/MissingConfigError.md +0 -9
  277. package/docs/modules/MissingParameterError.md +0 -9
  278. package/docs/modules/MySQLConnection.md +0 -9
  279. package/docs/modules/MySQLDatabase.md +0 -9
  280. package/docs/modules/Query.md +0 -9
  281. package/docs/modules/RawQuery.md +0 -9
  282. package/docs/modules/Request.md +0 -13
  283. package/docs/modules/Response.md +0 -27
  284. package/docs/modules/ResponseData.md +0 -9
  285. package/docs/modules/ServiceProvider.md +0 -9
  286. package/docs/modules/ServiceResponse.md +0 -9
  287. package/docs/modules/SetSessionVariableQuery.md +0 -13
  288. package/docs/modules/StatusCode.md +0 -9
  289. package/docs/modules/StormError.md +0 -14
  290. package/docs/modules/TemporaryTableQuery.md +0 -13
  291. package/docs/modules/Token.md +0 -9
  292. package/docs/modules/TokenManager.md +0 -9
  293. package/docs/modules/UnauthorizedAccessError.md +0 -9
  294. package/docs/modules/api.md +0 -453
  295. package/docs/modules/instance.md +0 -44
  296. package/docs/modules/private_CommitQuery.md +0 -9
  297. package/docs/modules/private_RollbackQuery.md +0 -9
  298. package/docs/modules/private_StartTransactionQuery.md +0 -9
@@ -1,12 +1,10 @@
1
- [@breautek/storm](../README.md) / [MySQLConnection](../modules/MySQLConnection.md) / MySQLConnection
1
+ [@breautek/storm](../README.md) / MySQLConnection
2
2
 
3
3
  # Class: MySQLConnection
4
4
 
5
- [MySQLConnection](../modules/MySQLConnection.md).MySQLConnection
6
-
7
5
  ## Hierarchy
8
6
 
9
- - [`DatabaseConnection`](DatabaseConnection.DatabaseConnection-1.md)<`MySQL.PoolConnection`\>
7
+ - [`DatabaseConnection`](DatabaseConnection.md)<`MySQL.PoolConnection`\>
10
8
 
11
9
  ↳ **`MySQLConnection`**
12
10
 
@@ -14,29 +12,29 @@
14
12
 
15
13
  ### Constructors
16
14
 
17
- - [constructor](MySQLConnection.MySQLConnection-1.md#constructor)
15
+ - [constructor](MySQLConnection.md#constructor)
18
16
 
19
17
  ### Methods
20
18
 
21
- - [\_close](MySQLConnection.MySQLConnection-1.md#_close)
22
- - [\_query](MySQLConnection.MySQLConnection-1.md#_query)
23
- - [\_stream](MySQLConnection.MySQLConnection-1.md#_stream)
24
- - [close](MySQLConnection.MySQLConnection-1.md#close)
25
- - [commit](MySQLConnection.MySQLConnection-1.md#commit)
26
- - [endTransaction](MySQLConnection.MySQLConnection-1.md#endtransaction)
27
- - [getAPI](MySQLConnection.MySQLConnection-1.md#getapi)
28
- - [getInstantiationStack](MySQLConnection.MySQLConnection-1.md#getinstantiationstack)
29
- - [getTimeout](MySQLConnection.MySQLConnection-1.md#gettimeout)
30
- - [isClosed](MySQLConnection.MySQLConnection-1.md#isclosed)
31
- - [isOpen](MySQLConnection.MySQLConnection-1.md#isopen)
32
- - [isReadOnly](MySQLConnection.MySQLConnection-1.md#isreadonly)
33
- - [isTransaction](MySQLConnection.MySQLConnection-1.md#istransaction)
34
- - [query](MySQLConnection.MySQLConnection-1.md#query)
35
- - [rollback](MySQLConnection.MySQLConnection-1.md#rollback)
36
- - [setInstantiationStack](MySQLConnection.MySQLConnection-1.md#setinstantiationstack)
37
- - [setTimeout](MySQLConnection.MySQLConnection-1.md#settimeout)
38
- - [startTransaction](MySQLConnection.MySQLConnection-1.md#starttransaction)
39
- - [stream](MySQLConnection.MySQLConnection-1.md#stream)
19
+ - [\_close](MySQLConnection.md#_close)
20
+ - [\_query](MySQLConnection.md#_query)
21
+ - [\_stream](MySQLConnection.md#_stream)
22
+ - [close](MySQLConnection.md#close)
23
+ - [commit](MySQLConnection.md#commit)
24
+ - [endTransaction](MySQLConnection.md#endtransaction)
25
+ - [getAPI](MySQLConnection.md#getapi)
26
+ - [getInstantiationStack](MySQLConnection.md#getinstantiationstack)
27
+ - [getTimeout](MySQLConnection.md#gettimeout)
28
+ - [isClosed](MySQLConnection.md#isclosed)
29
+ - [isOpen](MySQLConnection.md#isopen)
30
+ - [isReadOnly](MySQLConnection.md#isreadonly)
31
+ - [isTransaction](MySQLConnection.md#istransaction)
32
+ - [query](MySQLConnection.md#query)
33
+ - [rollback](MySQLConnection.md#rollback)
34
+ - [setInstantiationStack](MySQLConnection.md#setinstantiationstack)
35
+ - [setTimeout](MySQLConnection.md#settimeout)
36
+ - [startTransaction](MySQLConnection.md#starttransaction)
37
+ - [stream](MySQLConnection.md#stream)
40
38
 
41
39
  ## Constructors
42
40
 
@@ -54,11 +52,11 @@
54
52
 
55
53
  #### Overrides
56
54
 
57
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[constructor](DatabaseConnection.DatabaseConnection-1.md#constructor)
55
+ [DatabaseConnection](DatabaseConnection.md).[constructor](DatabaseConnection.md#constructor)
58
56
 
59
57
  #### Defined in
60
58
 
61
- [src/MySQLConnection.ts:46](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L46)
59
+ [src/MySQLConnection.ts:46](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L46)
62
60
 
63
61
  ## Methods
64
62
 
@@ -83,11 +81,11 @@ Promise<void>
83
81
 
84
82
  #### Overrides
85
83
 
86
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[_close](DatabaseConnection.DatabaseConnection-1.md#_close)
84
+ [DatabaseConnection](DatabaseConnection.md).[_close](DatabaseConnection.md#_close)
87
85
 
88
86
  #### Defined in
89
87
 
90
- [src/MySQLConnection.ts:190](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L190)
88
+ [src/MySQLConnection.ts:190](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L190)
91
89
 
92
90
  ___
93
91
 
@@ -112,11 +110,11 @@ Promise
112
110
 
113
111
  #### Overrides
114
112
 
115
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[_query](DatabaseConnection.DatabaseConnection-1.md#_query)
113
+ [DatabaseConnection](DatabaseConnection.md).[_query](DatabaseConnection.md#_query)
116
114
 
117
115
  #### Defined in
118
116
 
119
- [src/MySQLConnection.ts:74](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L74)
117
+ [src/MySQLConnection.ts:74](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L74)
120
118
 
121
119
  ___
122
120
 
@@ -143,11 +141,11 @@ but returns a `Readable` stream instead.
143
141
 
144
142
  #### Overrides
145
143
 
146
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[_stream](DatabaseConnection.DatabaseConnection-1.md#_stream)
144
+ [DatabaseConnection](DatabaseConnection.md).[_stream](DatabaseConnection.md#_stream)
147
145
 
148
146
  #### Defined in
149
147
 
150
- [src/MySQLConnection.ts:113](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L113)
148
+ [src/MySQLConnection.ts:113](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L113)
151
149
 
152
150
  ___
153
151
 
@@ -175,11 +173,11 @@ Promise<void>
175
173
 
176
174
  #### Inherited from
177
175
 
178
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[close](DatabaseConnection.DatabaseConnection-1.md#close)
176
+ [DatabaseConnection](DatabaseConnection.md).[close](DatabaseConnection.md#close)
179
177
 
180
178
  #### Defined in
181
179
 
182
- [src/DatabaseConnection.ts:169](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L169)
180
+ [src/DatabaseConnection.ts:169](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L169)
183
181
 
184
182
  ___
185
183
 
@@ -197,11 +195,11 @@ Promise<void>
197
195
 
198
196
  #### Overrides
199
197
 
200
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[commit](DatabaseConnection.DatabaseConnection-1.md#commit)
198
+ [DatabaseConnection](DatabaseConnection.md).[commit](DatabaseConnection.md#commit)
201
199
 
202
200
  #### Defined in
203
201
 
204
- [src/MySQLConnection.ts:174](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L174)
202
+ [src/MySQLConnection.ts:174](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L174)
205
203
 
206
204
  ___
207
205
 
@@ -225,11 +223,11 @@ Promise<void>
225
223
 
226
224
  #### Overrides
227
225
 
228
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[endTransaction](DatabaseConnection.DatabaseConnection-1.md#endtransaction)
226
+ [DatabaseConnection](DatabaseConnection.md).[endTransaction](DatabaseConnection.md#endtransaction)
229
227
 
230
228
  #### Defined in
231
229
 
232
- [src/MySQLConnection.ts:154](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L154)
230
+ [src/MySQLConnection.ts:154](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L154)
233
231
 
234
232
  ___
235
233
 
@@ -247,11 +245,11 @@ any
247
245
 
248
246
  #### Inherited from
249
247
 
250
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[getAPI](DatabaseConnection.DatabaseConnection-1.md#getapi)
248
+ [DatabaseConnection](DatabaseConnection.md).[getAPI](DatabaseConnection.md#getapi)
251
249
 
252
250
  #### Defined in
253
251
 
254
- [src/DatabaseConnection.ts:91](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L91)
252
+ [src/DatabaseConnection.ts:91](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L91)
255
253
 
256
254
  ___
257
255
 
@@ -270,11 +268,11 @@ string - A stacktrace
270
268
 
271
269
  #### Inherited from
272
270
 
273
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[getInstantiationStack](DatabaseConnection.DatabaseConnection-1.md#getinstantiationstack)
271
+ [DatabaseConnection](DatabaseConnection.md).[getInstantiationStack](DatabaseConnection.md#getinstantiationstack)
274
272
 
275
273
  #### Defined in
276
274
 
277
- [src/DatabaseConnection.ts:73](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L73)
275
+ [src/DatabaseConnection.ts:73](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L73)
278
276
 
279
277
  ___
280
278
 
@@ -292,11 +290,11 @@ number in milliseconds
292
290
 
293
291
  #### Inherited from
294
292
 
295
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[getTimeout](DatabaseConnection.DatabaseConnection-1.md#gettimeout)
293
+ [DatabaseConnection](DatabaseConnection.md).[getTimeout](DatabaseConnection.md#gettimeout)
296
294
 
297
295
  #### Defined in
298
296
 
299
- [src/DatabaseConnection.ts:121](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L121)
297
+ [src/DatabaseConnection.ts:121](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L121)
300
298
 
301
299
  ___
302
300
 
@@ -312,11 +310,11 @@ Returns true if the connection has been closed.
312
310
 
313
311
  #### Inherited from
314
312
 
315
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[isClosed](DatabaseConnection.DatabaseConnection-1.md#isclosed)
313
+ [DatabaseConnection](DatabaseConnection.md).[isClosed](DatabaseConnection.md#isclosed)
316
314
 
317
315
  #### Defined in
318
316
 
319
- [src/DatabaseConnection.ts:182](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L182)
317
+ [src/DatabaseConnection.ts:182](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L182)
320
318
 
321
319
  ___
322
320
 
@@ -330,7 +328,7 @@ ___
330
328
 
331
329
  #### Defined in
332
330
 
333
- [src/MySQLConnection.ts:69](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L69)
331
+ [src/MySQLConnection.ts:69](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L69)
334
332
 
335
333
  ___
336
334
 
@@ -349,11 +347,11 @@ boolean
349
347
 
350
348
  #### Inherited from
351
349
 
352
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[isReadOnly](DatabaseConnection.DatabaseConnection-1.md#isreadonly)
350
+ [DatabaseConnection](DatabaseConnection.md).[isReadOnly](DatabaseConnection.md#isreadonly)
353
351
 
354
352
  #### Defined in
355
353
 
356
- [src/DatabaseConnection.ts:100](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L100)
354
+ [src/DatabaseConnection.ts:100](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L100)
357
355
 
358
356
  ___
359
357
 
@@ -371,11 +369,11 @@ boolean
371
369
 
372
370
  #### Overrides
373
371
 
374
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[isTransaction](DatabaseConnection.DatabaseConnection-1.md#istransaction)
372
+ [DatabaseConnection](DatabaseConnection.md).[isTransaction](DatabaseConnection.md#istransaction)
375
373
 
376
374
  #### Defined in
377
375
 
378
- [src/MySQLConnection.ts:65](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L65)
376
+ [src/MySQLConnection.ts:65](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L65)
379
377
 
380
378
  ___
381
379
 
@@ -397,7 +395,7 @@ Queries the database for a dataset.
397
395
 
398
396
  | Name | Type | Description |
399
397
  | :------ | :------ | :------ |
400
- | `query` | [`Query`](Query.Query-1.md)<`any`, `any`, `any`\> | The database query |
398
+ | `query` | [`Query`](Query.md)<`any`, `any`, `any`\> | The database query |
401
399
 
402
400
  #### Returns
403
401
 
@@ -407,11 +405,11 @@ Promise<TQueryResult>
407
405
 
408
406
  #### Inherited from
409
407
 
410
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[query](DatabaseConnection.DatabaseConnection-1.md#query)
408
+ [DatabaseConnection](DatabaseConnection.md).[query](DatabaseConnection.md#query)
411
409
 
412
410
  #### Defined in
413
411
 
414
- [src/DatabaseConnection.ts:132](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L132)
412
+ [src/DatabaseConnection.ts:132](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L132)
415
413
 
416
414
  ___
417
415
 
@@ -429,11 +427,11 @@ Promise<void>
429
427
 
430
428
  #### Overrides
431
429
 
432
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[rollback](DatabaseConnection.DatabaseConnection-1.md#rollback)
430
+ [DatabaseConnection](DatabaseConnection.md).[rollback](DatabaseConnection.md#rollback)
433
431
 
434
432
  #### Defined in
435
433
 
436
- [src/MySQLConnection.ts:158](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L158)
434
+ [src/MySQLConnection.ts:158](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L158)
437
435
 
438
436
  ___
439
437
 
@@ -453,11 +451,11 @@ ___
453
451
 
454
452
  #### Inherited from
455
453
 
456
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[setInstantiationStack](DatabaseConnection.DatabaseConnection-1.md#setinstantiationstack)
454
+ [DatabaseConnection](DatabaseConnection.md).[setInstantiationStack](DatabaseConnection.md#setinstantiationstack)
457
455
 
458
456
  #### Defined in
459
457
 
460
- [src/DatabaseConnection.ts:64](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L64)
458
+ [src/DatabaseConnection.ts:64](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L64)
461
459
 
462
460
  ___
463
461
 
@@ -479,11 +477,11 @@ Sets the timeout of this connectino
479
477
 
480
478
  #### Inherited from
481
479
 
482
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[setTimeout](DatabaseConnection.DatabaseConnection-1.md#settimeout)
480
+ [DatabaseConnection](DatabaseConnection.md).[setTimeout](DatabaseConnection.md#settimeout)
483
481
 
484
482
  #### Defined in
485
483
 
486
- [src/DatabaseConnection.ts:109](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L109)
484
+ [src/DatabaseConnection.ts:109](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L109)
487
485
 
488
486
  ___
489
487
 
@@ -501,11 +499,11 @@ Promise<void>
501
499
 
502
500
  #### Overrides
503
501
 
504
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[startTransaction](DatabaseConnection.DatabaseConnection-1.md#starttransaction)
502
+ [DatabaseConnection](DatabaseConnection.md).[startTransaction](DatabaseConnection.md#starttransaction)
505
503
 
506
504
  #### Defined in
507
505
 
508
- [src/MySQLConnection.ts:132](https://github.com/breautek/storm/blob/6ea3887/src/MySQLConnection.ts#L132)
506
+ [src/MySQLConnection.ts:132](https://github.com/breautek/storm/blob/186ee78/src/MySQLConnection.ts#L132)
509
507
 
510
508
  ___
511
509
 
@@ -517,7 +515,7 @@ ___
517
515
 
518
516
  | Name | Type | Description |
519
517
  | :------ | :------ | :------ |
520
- | `query` | [`Query`](Query.Query-1.md)<`any`, `any`, `any`\> | The database query |
518
+ | `query` | [`Query`](Query.md)<`any`, `any`, `any`\> | The database query |
521
519
  | `streamOptions?` | `any` | Stream options |
522
520
 
523
521
  #### Returns
@@ -528,8 +526,8 @@ Readable
528
526
 
529
527
  #### Inherited from
530
528
 
531
- [DatabaseConnection](DatabaseConnection.DatabaseConnection-1.md).[stream](DatabaseConnection.DatabaseConnection-1.md#stream)
529
+ [DatabaseConnection](DatabaseConnection.md).[stream](DatabaseConnection.md#stream)
532
530
 
533
531
  #### Defined in
534
532
 
535
- [src/DatabaseConnection.ts:152](https://github.com/breautek/storm/blob/6ea3887/src/DatabaseConnection.ts#L152)
533
+ [src/DatabaseConnection.ts:152](https://github.com/breautek/storm/blob/186ee78/src/DatabaseConnection.ts#L152)
@@ -0,0 +1,314 @@
1
+ [@breautek/storm](../README.md) / MySQLDatabase
2
+
3
+ # Class: MySQLDatabase
4
+
5
+ ## Hierarchy
6
+
7
+ - [`Database`](Database.md)<`MySQL.PoolConfig`, `MySQL.PoolConnection`\>
8
+
9
+ ↳ **`MySQLDatabase`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Constructors
14
+
15
+ - [constructor](MySQLDatabase.md#constructor)
16
+
17
+ ### Methods
18
+
19
+ - [\_addNode](MySQLDatabase.md#_addnode)
20
+ - [\_destroy](MySQLDatabase.md#_destroy)
21
+ - [\_getConnection](MySQLDatabase.md#_getconnection)
22
+ - [\_removeNode](MySQLDatabase.md#_removenode)
23
+ - [addMaster](MySQLDatabase.md#addmaster)
24
+ - [addSlave](MySQLDatabase.md#addslave)
25
+ - [destroy](MySQLDatabase.md#destroy)
26
+ - [escape](MySQLDatabase.md#escape)
27
+ - [getConnection](MySQLDatabase.md#getconnection)
28
+ - [removeMaster](MySQLDatabase.md#removemaster)
29
+ - [removeSlave](MySQLDatabase.md#removeslave)
30
+ - [escape](MySQLDatabase.md#escape)
31
+
32
+ ## Constructors
33
+
34
+ ### constructor
35
+
36
+ • **new MySQLDatabase**()
37
+
38
+ #### Overrides
39
+
40
+ [Database](Database.md).[constructor](Database.md#constructor)
41
+
42
+ #### Defined in
43
+
44
+ [src/MySQLDatabase.ts:27](https://github.com/breautek/storm/blob/186ee78/src/MySQLDatabase.ts#L27)
45
+
46
+ ## Methods
47
+
48
+ ### \_addNode
49
+
50
+ ▸ `Protected` **_addNode**(`nodeID`, `config`): `void`
51
+
52
+ #### Parameters
53
+
54
+ | Name | Type |
55
+ | :------ | :------ |
56
+ | `nodeID` | `string` |
57
+ | `config` | `PoolConfig` |
58
+
59
+ #### Returns
60
+
61
+ `void`
62
+
63
+ #### Overrides
64
+
65
+ [Database](Database.md).[_addNode](Database.md#_addnode)
66
+
67
+ #### Defined in
68
+
69
+ [src/MySQLDatabase.ts:49](https://github.com/breautek/storm/blob/186ee78/src/MySQLDatabase.ts#L49)
70
+
71
+ ___
72
+
73
+ ### \_destroy
74
+
75
+ ▸ `Protected` **_destroy**(): `Promise`<`void`\>
76
+
77
+ #### Returns
78
+
79
+ `Promise`<`void`\>
80
+
81
+ #### Overrides
82
+
83
+ [Database](Database.md).[_destroy](Database.md#_destroy)
84
+
85
+ #### Defined in
86
+
87
+ [src/MySQLDatabase.ts:59](https://github.com/breautek/storm/blob/186ee78/src/MySQLDatabase.ts#L59)
88
+
89
+ ___
90
+
91
+ ### \_getConnection
92
+
93
+ ▸ `Protected` **_getConnection**(`query`, `requireWriteAccess`): `Promise`<[`MySQLConnection`](MySQLConnection.md)\>
94
+
95
+ #### Parameters
96
+
97
+ | Name | Type |
98
+ | :------ | :------ |
99
+ | `query` | `string` |
100
+ | `requireWriteAccess` | `boolean` |
101
+
102
+ #### Returns
103
+
104
+ `Promise`<[`MySQLConnection`](MySQLConnection.md)\>
105
+
106
+ #### Overrides
107
+
108
+ [Database](Database.md).[_getConnection](Database.md#_getconnection)
109
+
110
+ #### Defined in
111
+
112
+ [src/MySQLDatabase.ts:72](https://github.com/breautek/storm/blob/186ee78/src/MySQLDatabase.ts#L72)
113
+
114
+ ___
115
+
116
+ ### \_removeNode
117
+
118
+ ▸ `Protected` **_removeNode**(`nodeID`): `void`
119
+
120
+ #### Parameters
121
+
122
+ | Name | Type |
123
+ | :------ | :------ |
124
+ | `nodeID` | `string` |
125
+
126
+ #### Returns
127
+
128
+ `void`
129
+
130
+ #### Overrides
131
+
132
+ [Database](Database.md).[_removeNode](Database.md#_removenode)
133
+
134
+ #### Defined in
135
+
136
+ [src/MySQLDatabase.ts:54](https://github.com/breautek/storm/blob/186ee78/src/MySQLDatabase.ts#L54)
137
+
138
+ ___
139
+
140
+ ### addMaster
141
+
142
+ ▸ **addMaster**(`config`): `void`
143
+
144
+ #### Parameters
145
+
146
+ | Name | Type |
147
+ | :------ | :------ |
148
+ | `config` | `PoolConfig` |
149
+
150
+ #### Returns
151
+
152
+ `void`
153
+
154
+ #### Inherited from
155
+
156
+ [Database](Database.md).[addMaster](Database.md#addmaster)
157
+
158
+ #### Defined in
159
+
160
+ [src/Database.ts:32](https://github.com/breautek/storm/blob/186ee78/src/Database.ts#L32)
161
+
162
+ ___
163
+
164
+ ### addSlave
165
+
166
+ ▸ **addSlave**(`slaveID`, `config`): `string`
167
+
168
+ #### Parameters
169
+
170
+ | Name | Type |
171
+ | :------ | :------ |
172
+ | `slaveID` | `string` |
173
+ | `config` | `PoolConfig` |
174
+
175
+ #### Returns
176
+
177
+ `string`
178
+
179
+ #### Inherited from
180
+
181
+ [Database](Database.md).[addSlave](Database.md#addslave)
182
+
183
+ #### Defined in
184
+
185
+ [src/Database.ts:46](https://github.com/breautek/storm/blob/186ee78/src/Database.ts#L46)
186
+
187
+ ___
188
+
189
+ ### destroy
190
+
191
+ ▸ **destroy**(): `Promise`<`void`\>
192
+
193
+ #### Returns
194
+
195
+ `Promise`<`void`\>
196
+
197
+ #### Inherited from
198
+
199
+ [Database](Database.md).[destroy](Database.md#destroy)
200
+
201
+ #### Defined in
202
+
203
+ [src/Database.ts:78](https://github.com/breautek/storm/blob/186ee78/src/Database.ts#L78)
204
+
205
+ ___
206
+
207
+ ### escape
208
+
209
+ ▸ **escape**(`value`): `string`
210
+
211
+ #### Parameters
212
+
213
+ | Name | Type |
214
+ | :------ | :------ |
215
+ | `value` | `any` |
216
+
217
+ #### Returns
218
+
219
+ `string`
220
+
221
+ #### Overrides
222
+
223
+ [Database](Database.md).[escape](Database.md#escape)
224
+
225
+ #### Defined in
226
+
227
+ [src/MySQLDatabase.ts:40](https://github.com/breautek/storm/blob/186ee78/src/MySQLDatabase.ts#L40)
228
+
229
+ ___
230
+
231
+ ### getConnection
232
+
233
+ ▸ **getConnection**(`requireWriteAccess?`, `nodeID?`): `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`PoolConnection`\>\>
234
+
235
+ #### Parameters
236
+
237
+ | Name | Type | Default value |
238
+ | :------ | :------ | :------ |
239
+ | `requireWriteAccess` | `boolean` | `false` |
240
+ | `nodeID?` | `string` | `undefined` |
241
+
242
+ #### Returns
243
+
244
+ `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`PoolConnection`\>\>
245
+
246
+ #### Inherited from
247
+
248
+ [Database](Database.md).[getConnection](Database.md#getconnection)
249
+
250
+ #### Defined in
251
+
252
+ [src/Database.ts:65](https://github.com/breautek/storm/blob/186ee78/src/Database.ts#L65)
253
+
254
+ ___
255
+
256
+ ### removeMaster
257
+
258
+ ▸ **removeMaster**(): `void`
259
+
260
+ #### Returns
261
+
262
+ `void`
263
+
264
+ #### Inherited from
265
+
266
+ [Database](Database.md).[removeMaster](Database.md#removemaster)
267
+
268
+ #### Defined in
269
+
270
+ [src/Database.ts:41](https://github.com/breautek/storm/blob/186ee78/src/Database.ts#L41)
271
+
272
+ ___
273
+
274
+ ### removeSlave
275
+
276
+ ▸ **removeSlave**(`slaveID`): `void`
277
+
278
+ #### Parameters
279
+
280
+ | Name | Type |
281
+ | :------ | :------ |
282
+ | `slaveID` | `string` |
283
+
284
+ #### Returns
285
+
286
+ `void`
287
+
288
+ #### Inherited from
289
+
290
+ [Database](Database.md).[removeSlave](Database.md#removeslave)
291
+
292
+ #### Defined in
293
+
294
+ [src/Database.ts:55](https://github.com/breautek/storm/blob/186ee78/src/Database.ts#L55)
295
+
296
+ ___
297
+
298
+ ### escape
299
+
300
+ ▸ `Static` **escape**(`value`): `string`
301
+
302
+ #### Parameters
303
+
304
+ | Name | Type |
305
+ | :------ | :------ |
306
+ | `value` | `any` |
307
+
308
+ #### Returns
309
+
310
+ `string`
311
+
312
+ #### Defined in
313
+
314
+ [src/MySQLDatabase.ts:45](https://github.com/breautek/storm/blob/186ee78/src/MySQLDatabase.ts#L45)