@breautek/storm 3.3.1 → 4.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/CHANGELOG.md +24 -0
- package/bt-config-sample.jsonc +1 -1
- package/docs/README.md +153 -62
- package/docs/classes/{Application.Application-1.md → Application.md} +111 -113
- package/docs/classes/{BackendAuthenticationMiddleware.BackendAuthenticationMiddleware-1.md → BackendAuthenticationMiddleware.md} +6 -8
- package/docs/classes/CORSMiddleware.md +143 -0
- package/docs/classes/{ConfigLoader.ConfigLoader-1.md → ConfigLoader.md} +5 -7
- package/docs/classes/{Database.Database-1.md → Database.md} +30 -32
- package/docs/classes/{DatabaseConnection.DatabaseConnection-1.md → DatabaseConnection.md} +57 -59
- package/docs/classes/DatabaseQueryError.md +307 -0
- package/docs/classes/DiskSpaceError.md +301 -0
- package/docs/classes/DropTemporaryTableQuery.md +201 -0
- package/docs/classes/DumpStream.md +23 -0
- package/docs/classes/DuplicateEntryError.md +303 -0
- package/docs/classes/EntityNotFoundError.md +301 -0
- package/docs/classes/ExpiredTokenError.md +301 -0
- package/docs/classes/Handler.md +323 -0
- package/docs/classes/InternalError.md +301 -0
- package/docs/classes/InvalidCredentialsError.md +301 -0
- package/docs/classes/InvalidValueError.md +309 -0
- package/docs/classes/ManagedDatabaseConnection.md +397 -0
- package/docs/classes/Middleware.md +72 -0
- package/docs/classes/MissingConfigError.md +301 -0
- package/docs/classes/MissingParameterError.md +301 -0
- package/docs/classes/{MySQLConnection.MySQLConnection-1.md → MySQLConnection.md} +63 -65
- package/docs/classes/MySQLDatabase.md +314 -0
- package/docs/classes/{Query.Query-1.md → Query.md} +40 -34
- package/docs/classes/RawQuery.md +218 -0
- package/docs/classes/Request.md +321 -0
- package/docs/classes/Response.md +242 -0
- package/docs/classes/{ResponseData.ResponseData-1.md → ResponseData.md} +18 -20
- package/docs/classes/ServiceProvider.md +296 -0
- package/docs/classes/{ServiceResponse.ServiceResponse-1.md → ServiceResponse.md} +9 -11
- package/docs/classes/SetSessionVariableQuery.md +201 -0
- package/docs/classes/StormError.md +307 -0
- package/docs/classes/TemporaryTableQuery.md +207 -0
- package/docs/classes/{Token.Token-1.md → Token.md} +5 -7
- package/docs/classes/{TokenManager.TokenManager-1.md → TokenManager.md} +16 -18
- package/docs/classes/UnauthorizedAccessError.md +301 -0
- package/docs/enums/ErrorCode.md +107 -0
- package/docs/enums/ExitCode.md +30 -0
- package/docs/enums/HTTPMethod.md +52 -0
- package/docs/enums/JWTError.md +30 -0
- package/docs/enums/StatusCode.md +536 -0
- package/docs/interfaces/IAdditionalErrorDetails.md +7 -0
- package/docs/interfaces/{IAuthTokenData.IAuthTokenData-1.md → IAuthTokenData.md} +4 -6
- package/docs/interfaces/IConfig.md +112 -0
- package/docs/interfaces/{IDatabaseConfig.IDatabaseConfig-1.md → IDatabaseConfig.md} +13 -15
- package/docs/interfaces/{IDatabaseConnection.IDatabaseConnection-1.md → IDatabaseConnection.md} +33 -35
- package/docs/interfaces/IErrorResponse.md +52 -0
- package/docs/interfaces/IFormData.md +30 -0
- package/docs/interfaces/{IHandler.IHandler-1.md → IHandler.md} +4 -6
- package/docs/interfaces/IInsertQueryResult.md +41 -0
- package/docs/interfaces/IJWTVerifyOptions.md +19 -0
- package/docs/interfaces/IParameterMap.md +7 -0
- package/docs/interfaces/IRequestResponse.md +37 -0
- package/docs/interfaces/IServiceHeaders.md +7 -0
- package/docs/interfaces/ISetSessionVariableQueryInput.md +30 -0
- package/docs/interfaces/ITemporaryTableQueryInput.md +30 -0
- package/docs/interfaces/IUpdateQueryResult.md +30 -0
- package/docs/interfaces/formidable.EmitData.md +54 -0
- package/docs/interfaces/{api.formidable.EventData.md → formidable.EventData.md} +10 -10
- package/docs/interfaces/formidable.Fields.md +9 -0
- package/docs/interfaces/{api.formidable.File.md → formidable.File.md} +12 -12
- package/docs/interfaces/{api.formidable.FileJSON.md → formidable.FileJSON.md} +12 -12
- package/docs/interfaces/formidable.Files.md +9 -0
- package/docs/interfaces/{api.formidable.Options.md → formidable.Options.md} +17 -15
- package/docs/interfaces/{api.formidable.Part.md → formidable.Part.md} +41 -41
- package/docs/modules/{api.formidable.md → formidable.md} +25 -27
- package/lib/Application.js +1 -1
- package/lib/Application.js.map +1 -1
- package/lib/BackendAuthenticationMiddleware.js +2 -2
- package/lib/BackendAuthenticationMiddleware.js.map +1 -1
- package/lib/CORSMiddleware.js +1 -1
- package/lib/CORSMiddleware.js.map +1 -1
- package/lib/ConfigLoader.js +1 -1
- package/lib/ConfigLoader.js.map +1 -1
- package/lib/Database.js +1 -1
- package/lib/Database.js.map +1 -1
- package/lib/DatabaseConnection.js +4 -4
- package/lib/DatabaseConnection.js.map +1 -1
- package/lib/Handler.js +2 -2
- package/lib/Handler.js.map +1 -1
- package/lib/ManagedDatabaseConnection.js +4 -4
- package/lib/ManagedDatabaseConnection.js.map +1 -1
- package/lib/MySQLConnection.js +7 -7
- package/lib/MySQLConnection.js.map +1 -1
- package/lib/MySQLDatabase.js +4 -4
- package/lib/MySQLDatabase.js.map +1 -1
- package/lib/Query.d.ts +3 -4
- package/lib/Query.js +2 -2
- package/lib/Query.js.map +1 -1
- package/lib/RawQuery.d.ts +1 -1
- package/lib/RawQuery.js.map +1 -1
- package/lib/Request.d.ts +1 -0
- package/lib/Request.js +2 -2
- package/lib/Request.js.map +1 -1
- package/lib/Response.d.ts +1 -0
- package/lib/Response.js +1 -1
- package/lib/Response.js.map +1 -1
- package/lib/ServiceProvider.d.ts +1 -2
- package/lib/ServiceProvider.js.map +1 -1
- package/lib/ServiceResponse.d.ts +1 -0
- package/lib/SetSessionVariableQuery.d.ts +9 -0
- package/lib/SetSessionVariableQuery.js +20 -0
- package/lib/SetSessionVariableQuery.js.map +1 -0
- package/lib/StormError.js +1 -1
- package/lib/StormError.js.map +1 -1
- package/lib/TemporaryTableQuery.d.ts +3 -3
- package/lib/TemporaryTableQuery.js +2 -2
- package/lib/TemporaryTableQuery.js.map +1 -1
- package/lib/TokenManager.js +1 -1
- package/lib/TokenManager.js.map +1 -1
- package/lib/api.d.ts +1 -0
- package/lib/api.js +3 -1
- package/lib/api.js.map +1 -1
- package/package.json +22 -23
- package/src/Database.ts +1 -2
- package/src/DatabaseConnection.ts +4 -5
- package/src/Query.ts +4 -5
- package/src/RawQuery.ts +1 -1
- package/src/ServiceProvider.ts +1 -2
- package/src/SetSessionVariableQuery.ts +28 -0
- package/src/TemporaryTableQuery.ts +5 -5
- package/src/api.ts +1 -0
- package/.nyc_output/01d7f3ed-ada5-4fbf-bf72-17458de5eda1.json +0 -1
- package/.nyc_output/07a372ea-5f20-411a-8f9b-5cfd38c9f7cf.json +0 -1
- package/.nyc_output/1a03fe29-15f4-4d36-a6f1-061f95c919d2.json +0 -1
- package/.nyc_output/1be973a3-2986-4e51-9bef-ffa834a81029.json +0 -1
- package/.nyc_output/1fa3f196-6284-4422-b186-8fb97ac299b1.json +0 -1
- package/.nyc_output/21b4136c-a3f4-465a-ab85-cdfa70dda252.json +0 -1
- package/.nyc_output/279ce3fa-118b-4b21-bbd4-a0dbabb3cf28.json +0 -1
- package/.nyc_output/370daf16-8792-4296-a491-4b0ff8c5c03d.json +0 -1
- package/.nyc_output/44cabfc1-f759-4ff5-9502-0967bba28c3b.json +0 -1
- package/.nyc_output/52cc8740-cb58-4b4e-b952-bedee8b2a4b9.json +0 -1
- package/.nyc_output/5359ad53-153e-4a68-9158-095880ce3682.json +0 -1
- package/.nyc_output/54476a59-73ed-43c2-b90f-46bad1fd2b24.json +0 -1
- package/.nyc_output/5e815b47-2082-47aa-8d02-548d8f0175a6.json +0 -1
- package/.nyc_output/6300a22c-16ee-4f46-a5bc-ac392153ef39.json +0 -1
- package/.nyc_output/6331ec83-1ccd-4980-8cdb-55f87f01b6a0.json +0 -1
- package/.nyc_output/6a819ad4-b691-45b3-b693-98f812bd3249.json +0 -1
- package/.nyc_output/77e0e45c-5d9f-4848-96a1-cc36e5373078.json +0 -1
- package/.nyc_output/790a50c9-e677-48ed-9d87-3ca0d173f7b0.json +0 -1
- package/.nyc_output/7dad65fb-92f5-4d0a-a576-e071c1ab73e5.json +0 -1
- package/.nyc_output/7ee3638f-2a2d-4d5a-9970-254a86884c40.json +0 -1
- package/.nyc_output/883b8a83-3a1e-4153-a987-3a2f5455a627.json +0 -1
- package/.nyc_output/8dc3a0b6-b04e-45f5-85ec-99efabb63499.json +0 -1
- package/.nyc_output/8e03b522-9fef-4fae-82c0-f51611fab55a.json +0 -1
- package/.nyc_output/946bad92-6c4b-4ac1-b508-83983322629c.json +0 -1
- package/.nyc_output/95d30443-c776-4f68-ab14-34ecdccdaee4.json +0 -1
- package/.nyc_output/abc21188-b3dc-4cce-bc20-f0680a4dde62.json +0 -1
- package/.nyc_output/ac7ebac2-d226-41f9-b271-25b0ad449de0.json +0 -1
- package/.nyc_output/ae1048af-74db-41a3-b4d7-e511f60259ef.json +0 -1
- package/.nyc_output/b121ce1e-5d6b-4b6d-93a7-21b315098afc.json +0 -1
- package/.nyc_output/bb6d14e4-2e75-45bd-a1f0-67c21781bcf6.json +0 -1
- package/.nyc_output/c5d84f76-682f-429c-9b0d-241c81a72907.json +0 -1
- package/.nyc_output/d14c616f-ca9b-402d-879d-c7e91ecc6b89.json +0 -1
- package/.nyc_output/d3096a06-29ef-4de7-b565-b7b1ca58471a.json +0 -1
- package/.nyc_output/d6313ced-0715-41aa-a0bb-22eeae3cccc1.json +0 -1
- package/.nyc_output/e7143b16-9cb3-4900-9498-05c40f90af46.json +0 -1
- package/.nyc_output/eb21b824-fc88-4f0c-9e72-bd691a141b75.json +0 -1
- package/.nyc_output/ee09e08d-c0f5-4fba-9fa1-849b0f32f347.json +0 -1
- package/.nyc_output/ee8b9792-e4fc-4950-8532-733858a2a7f2.json +0 -1
- package/.nyc_output/f4344c1d-e947-4c51-abe0-e3600b4e721d.json +0 -1
- package/.nyc_output/f7d0a4d2-62db-494d-bb67-78e3f93ae05b.json +0 -1
- package/.nyc_output/processinfo/01d7f3ed-ada5-4fbf-bf72-17458de5eda1.json +0 -1
- package/.nyc_output/processinfo/07a372ea-5f20-411a-8f9b-5cfd38c9f7cf.json +0 -1
- package/.nyc_output/processinfo/1a03fe29-15f4-4d36-a6f1-061f95c919d2.json +0 -1
- package/.nyc_output/processinfo/1be973a3-2986-4e51-9bef-ffa834a81029.json +0 -1
- package/.nyc_output/processinfo/1fa3f196-6284-4422-b186-8fb97ac299b1.json +0 -1
- package/.nyc_output/processinfo/21b4136c-a3f4-465a-ab85-cdfa70dda252.json +0 -1
- package/.nyc_output/processinfo/279ce3fa-118b-4b21-bbd4-a0dbabb3cf28.json +0 -1
- package/.nyc_output/processinfo/370daf16-8792-4296-a491-4b0ff8c5c03d.json +0 -1
- package/.nyc_output/processinfo/44cabfc1-f759-4ff5-9502-0967bba28c3b.json +0 -1
- package/.nyc_output/processinfo/52cc8740-cb58-4b4e-b952-bedee8b2a4b9.json +0 -1
- package/.nyc_output/processinfo/5359ad53-153e-4a68-9158-095880ce3682.json +0 -1
- package/.nyc_output/processinfo/54476a59-73ed-43c2-b90f-46bad1fd2b24.json +0 -1
- package/.nyc_output/processinfo/5e815b47-2082-47aa-8d02-548d8f0175a6.json +0 -1
- package/.nyc_output/processinfo/6300a22c-16ee-4f46-a5bc-ac392153ef39.json +0 -1
- package/.nyc_output/processinfo/6331ec83-1ccd-4980-8cdb-55f87f01b6a0.json +0 -1
- package/.nyc_output/processinfo/6a819ad4-b691-45b3-b693-98f812bd3249.json +0 -1
- package/.nyc_output/processinfo/77e0e45c-5d9f-4848-96a1-cc36e5373078.json +0 -1
- package/.nyc_output/processinfo/790a50c9-e677-48ed-9d87-3ca0d173f7b0.json +0 -1
- package/.nyc_output/processinfo/7dad65fb-92f5-4d0a-a576-e071c1ab73e5.json +0 -1
- package/.nyc_output/processinfo/7ee3638f-2a2d-4d5a-9970-254a86884c40.json +0 -1
- package/.nyc_output/processinfo/883b8a83-3a1e-4153-a987-3a2f5455a627.json +0 -1
- package/.nyc_output/processinfo/8dc3a0b6-b04e-45f5-85ec-99efabb63499.json +0 -1
- package/.nyc_output/processinfo/8e03b522-9fef-4fae-82c0-f51611fab55a.json +0 -1
- package/.nyc_output/processinfo/946bad92-6c4b-4ac1-b508-83983322629c.json +0 -1
- package/.nyc_output/processinfo/95d30443-c776-4f68-ab14-34ecdccdaee4.json +0 -1
- package/.nyc_output/processinfo/abc21188-b3dc-4cce-bc20-f0680a4dde62.json +0 -1
- package/.nyc_output/processinfo/ac7ebac2-d226-41f9-b271-25b0ad449de0.json +0 -1
- package/.nyc_output/processinfo/ae1048af-74db-41a3-b4d7-e511f60259ef.json +0 -1
- package/.nyc_output/processinfo/b121ce1e-5d6b-4b6d-93a7-21b315098afc.json +0 -1
- package/.nyc_output/processinfo/bb6d14e4-2e75-45bd-a1f0-67c21781bcf6.json +0 -1
- package/.nyc_output/processinfo/c5d84f76-682f-429c-9b0d-241c81a72907.json +0 -1
- package/.nyc_output/processinfo/d14c616f-ca9b-402d-879d-c7e91ecc6b89.json +0 -1
- package/.nyc_output/processinfo/d3096a06-29ef-4de7-b565-b7b1ca58471a.json +0 -1
- package/.nyc_output/processinfo/d6313ced-0715-41aa-a0bb-22eeae3cccc1.json +0 -1
- package/.nyc_output/processinfo/e7143b16-9cb3-4900-9498-05c40f90af46.json +0 -1
- package/.nyc_output/processinfo/eb21b824-fc88-4f0c-9e72-bd691a141b75.json +0 -1
- package/.nyc_output/processinfo/ee09e08d-c0f5-4fba-9fa1-849b0f32f347.json +0 -1
- package/.nyc_output/processinfo/ee8b9792-e4fc-4950-8532-733858a2a7f2.json +0 -1
- package/.nyc_output/processinfo/f4344c1d-e947-4c51-abe0-e3600b4e721d.json +0 -1
- package/.nyc_output/processinfo/f7d0a4d2-62db-494d-bb67-78e3f93ae05b.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/docs/classes/CORSMiddleware.CORSMiddleware-1.md +0 -145
- package/docs/classes/DatabaseQueryError.DatabaseQueryError-1.md +0 -309
- package/docs/classes/DiskSpaceError.DiskSpaceError-1.md +0 -303
- package/docs/classes/DropTemporaryTableQuery.DropTemporaryTableQuery-1.md +0 -197
- package/docs/classes/DumpStream.DumpStream-1.md +0 -25
- package/docs/classes/DuplicateEntryError.DuplicateEntryError-1.md +0 -305
- package/docs/classes/EntityNotFoundError.EntityNotFoundError-1.md +0 -303
- package/docs/classes/ExpiredTokenError.ExpiredTokenError-1.md +0 -303
- package/docs/classes/Handler.Handler-1.md +0 -325
- package/docs/classes/InternalError.InternalError-1.md +0 -303
- package/docs/classes/InvalidConfigError.InvalidConfigError-1.md +0 -316
- package/docs/classes/InvalidCredentialsError.InvalidCredentialsError-1.md +0 -303
- package/docs/classes/InvalidValueError.InvalidValueError-1.md +0 -311
- package/docs/classes/JWTVerifyOptionsParser.JWTVerifyOptionsParser-1.md +0 -45
- package/docs/classes/ManagedDatabaseConnection.ManagedDatabaseConnection-1.md +0 -399
- package/docs/classes/Middleware.Middleware-1.md +0 -74
- package/docs/classes/MissingConfigError.MissingConfigError-1.md +0 -303
- package/docs/classes/MissingParameterError.MissingParameterError-1.md +0 -303
- package/docs/classes/MySQLDatabase.MySQLDatabase-1.md +0 -316
- package/docs/classes/RawQuery.RawQuery-1.md +0 -212
- package/docs/classes/Request.Request-1.md +0 -323
- package/docs/classes/Response.Response-1.md +0 -244
- package/docs/classes/ServiceProvider.ServiceProvider-1.md +0 -298
- package/docs/classes/StormError.StormError-1.md +0 -309
- package/docs/classes/TemporaryTableQuery.TemporaryTableQuery-1.md +0 -197
- package/docs/classes/UnauthorizedAccessError.UnauthorizedAccessError-1.md +0 -301
- package/docs/classes/private_CommitQuery.CommitQuery.md +0 -197
- package/docs/classes/private_RollbackQuery.RollbackQuery.md +0 -197
- package/docs/classes/private_StartTransactionQuery.StartTransactionQuery.md +0 -197
- package/docs/enums/ApplicationEvent.ApplicationEvent-1.md +0 -21
- package/docs/enums/ErrorCode.ErrorCode-1.md +0 -109
- package/docs/enums/ExitCode.ExitCode-1.md +0 -32
- package/docs/enums/HTTPMethod.HTTPMethod-1.md +0 -54
- package/docs/enums/JWTError.JWTError-1.md +0 -32
- package/docs/enums/StatusCode.StatusCode-1.md +0 -538
- package/docs/interfaces/DropTemporaryTableQuery.IDropTemporaryTableQueryInput.md +0 -21
- package/docs/interfaces/IConfig.IConfig-1.md +0 -114
- package/docs/interfaces/IFormData.IFormData-1.md +0 -32
- package/docs/interfaces/IInsertQueryResult.IInsertQueryResult-1.md +0 -43
- package/docs/interfaces/IJWTVerifyOptions.IJWTVerifyOptions-1.md +0 -21
- package/docs/interfaces/IRequestResponse.IRequestResponse-1.md +0 -39
- package/docs/interfaces/IServiceHeaders.IServiceHeaders-1.md +0 -9
- package/docs/interfaces/IUpdateQueryResult.IUpdateQueryResult-1.md +0 -32
- package/docs/interfaces/Request.IParameterMap.md +0 -9
- package/docs/interfaces/Response.IHeaderKeyValuePair.md +0 -9
- package/docs/interfaces/StormError.IAdditionalErrorDetails.md +0 -9
- package/docs/interfaces/StormError.IErrorResponse.md +0 -54
- package/docs/interfaces/TemporaryTableQuery.ITemporaryTableQueryInput.md +0 -32
- package/docs/interfaces/api.formidable.EmitData.md +0 -54
- package/docs/interfaces/api.formidable.Fields.md +0 -9
- package/docs/interfaces/api.formidable.Files.md +0 -9
- package/docs/modules/Application.md +0 -9
- package/docs/modules/ApplicationEvent.md +0 -9
- package/docs/modules/BackendAuthenticationMiddleware.md +0 -9
- package/docs/modules/CORSMiddleware.md +0 -9
- package/docs/modules/ConfigLoader.md +0 -9
- package/docs/modules/Database.md +0 -9
- package/docs/modules/DatabaseConnection.md +0 -34
- package/docs/modules/DatabaseQueryError.md +0 -9
- package/docs/modules/DiskSpaceError.md +0 -9
- package/docs/modules/DropTemporaryTableQuery.md +0 -13
- package/docs/modules/DumpStream.md +0 -9
- package/docs/modules/DuplicateEntryError.md +0 -9
- package/docs/modules/EntityNotFoundError.md +0 -9
- package/docs/modules/ErrorCode.md +0 -9
- package/docs/modules/ExitCode.md +0 -9
- package/docs/modules/ExpiredTokenError.md +0 -9
- package/docs/modules/HTTPMethod.md +0 -9
- package/docs/modules/Handler.md +0 -50
- package/docs/modules/IAuthTokenData.md +0 -9
- package/docs/modules/IConfig.md +0 -9
- package/docs/modules/IDatabaseConfig.md +0 -9
- package/docs/modules/IDatabaseConnection.md +0 -9
- package/docs/modules/IDeleteQueryResult.md +0 -19
- package/docs/modules/IFormData.md +0 -9
- package/docs/modules/IHandler.md +0 -9
- package/docs/modules/IInsertQueryResult.md +0 -9
- package/docs/modules/IJWTVerifyOptions.md +0 -9
- package/docs/modules/IRequestResponse.md +0 -9
- package/docs/modules/IServiceHeaders.md +0 -9
- package/docs/modules/IUpdateQueryResult.md +0 -9
- package/docs/modules/InternalError.md +0 -9
- package/docs/modules/InvalidConfigError.md +0 -9
- package/docs/modules/InvalidCredentialsError.md +0 -9
- package/docs/modules/InvalidValueError.md +0 -9
- package/docs/modules/JWTError.md +0 -9
- package/docs/modules/JWTVerifyOptionsParser.md +0 -9
- package/docs/modules/ManagedDatabaseConnection.md +0 -9
- package/docs/modules/Middleware.md +0 -9
- package/docs/modules/MissingConfigError.md +0 -9
- package/docs/modules/MissingParameterError.md +0 -9
- package/docs/modules/MySQLConnection.md +0 -9
- package/docs/modules/MySQLDatabase.md +0 -9
- package/docs/modules/Query.md +0 -9
- package/docs/modules/RawQuery.md +0 -9
- package/docs/modules/Request.md +0 -13
- package/docs/modules/Response.md +0 -27
- package/docs/modules/ResponseData.md +0 -9
- package/docs/modules/ServiceProvider.md +0 -9
- package/docs/modules/ServiceResponse.md +0 -9
- package/docs/modules/StatusCode.md +0 -9
- package/docs/modules/StormError.md +0 -14
- package/docs/modules/TemporaryTableQuery.md +0 -13
- package/docs/modules/Token.md +0 -9
- package/docs/modules/TokenManager.md +0 -9
- package/docs/modules/UnauthorizedAccessError.md +0 -9
- package/docs/modules/api.md +0 -439
- package/docs/modules/instance.md +0 -44
- package/docs/modules/private_CommitQuery.md +0 -9
- package/docs/modules/private_RollbackQuery.md +0 -9
- package/docs/modules/private_StartTransactionQuery.md +0 -9
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
[@breautek/storm](../README.md) / CORSMiddleware
|
|
2
|
+
|
|
3
|
+
# Class: CORSMiddleware
|
|
4
|
+
|
|
5
|
+
CORSMiddleware is used to enable CORS on APIs.
|
|
6
|
+
It will automatically add the necessary headers necessary to
|
|
7
|
+
communicate with CORS enabled clients.
|
|
8
|
+
|
|
9
|
+
## Hierarchy
|
|
10
|
+
|
|
11
|
+
- [`Middleware`](Middleware.md)
|
|
12
|
+
|
|
13
|
+
↳ **`CORSMiddleware`**
|
|
14
|
+
|
|
15
|
+
## Table of contents
|
|
16
|
+
|
|
17
|
+
### Constructors
|
|
18
|
+
|
|
19
|
+
- [constructor](CORSMiddleware.md#constructor)
|
|
20
|
+
|
|
21
|
+
### Methods
|
|
22
|
+
|
|
23
|
+
- [\_execute](CORSMiddleware.md#_execute)
|
|
24
|
+
- [execute](CORSMiddleware.md#execute)
|
|
25
|
+
- [getDefaultAllowedHeaders](CORSMiddleware.md#getdefaultallowedheaders)
|
|
26
|
+
- [getDefaultAllowedMethods](CORSMiddleware.md#getdefaultallowedmethods)
|
|
27
|
+
- [getDefaultAllowedOrigin](CORSMiddleware.md#getdefaultallowedorigin)
|
|
28
|
+
|
|
29
|
+
## Constructors
|
|
30
|
+
|
|
31
|
+
### constructor
|
|
32
|
+
|
|
33
|
+
• **new CORSMiddleware**(`allowedOrigin?`, `allowedHeaders?`, `allowedMethods?`)
|
|
34
|
+
|
|
35
|
+
#### Parameters
|
|
36
|
+
|
|
37
|
+
| Name | Type | Description |
|
|
38
|
+
| :------ | :------ | :------ |
|
|
39
|
+
| `allowedOrigin?` | `string` | The allowed origin. By default it will use the request origin. |
|
|
40
|
+
| `allowedHeaders?` | `string`[] | Array of allowed headers. |
|
|
41
|
+
| `allowedMethods?` | `string`[] | Array of allowed HTTP methods. |
|
|
42
|
+
|
|
43
|
+
#### Overrides
|
|
44
|
+
|
|
45
|
+
[Middleware](Middleware.md).[constructor](Middleware.md#constructor)
|
|
46
|
+
|
|
47
|
+
#### Defined in
|
|
48
|
+
|
|
49
|
+
[src/CORSMiddleware.ts:39](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L39)
|
|
50
|
+
|
|
51
|
+
## Methods
|
|
52
|
+
|
|
53
|
+
### \_execute
|
|
54
|
+
|
|
55
|
+
▸ `Protected` **_execute**(`request`, `response`): `Promise`<[`IRequestResponse`](../interfaces/IRequestResponse.md)<`any`, `any`\>\>
|
|
56
|
+
|
|
57
|
+
#### Parameters
|
|
58
|
+
|
|
59
|
+
| Name | Type |
|
|
60
|
+
| :------ | :------ |
|
|
61
|
+
| `request` | [`Request`](Request.md)<`any`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
|
|
62
|
+
| `response` | [`Response`](Response.md)<`any`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/IErrorResponse.md)\> |
|
|
63
|
+
|
|
64
|
+
#### Returns
|
|
65
|
+
|
|
66
|
+
`Promise`<[`IRequestResponse`](../interfaces/IRequestResponse.md)<`any`, `any`\>\>
|
|
67
|
+
|
|
68
|
+
#### Overrides
|
|
69
|
+
|
|
70
|
+
[Middleware](Middleware.md).[_execute](Middleware.md#_execute)
|
|
71
|
+
|
|
72
|
+
#### Defined in
|
|
73
|
+
|
|
74
|
+
[src/CORSMiddleware.ts:75](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L75)
|
|
75
|
+
|
|
76
|
+
___
|
|
77
|
+
|
|
78
|
+
### execute
|
|
79
|
+
|
|
80
|
+
▸ **execute**(`request`, `response`): `Promise`<[`IRequestResponse`](../interfaces/IRequestResponse.md)<`any`, `any`\>\>
|
|
81
|
+
|
|
82
|
+
#### Parameters
|
|
83
|
+
|
|
84
|
+
| Name | Type |
|
|
85
|
+
| :------ | :------ |
|
|
86
|
+
| `request` | [`Request`](Request.md)<`any`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
|
|
87
|
+
| `response` | [`Response`](Response.md)<`any`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/IErrorResponse.md)\> |
|
|
88
|
+
|
|
89
|
+
#### Returns
|
|
90
|
+
|
|
91
|
+
`Promise`<[`IRequestResponse`](../interfaces/IRequestResponse.md)<`any`, `any`\>\>
|
|
92
|
+
|
|
93
|
+
#### Inherited from
|
|
94
|
+
|
|
95
|
+
[Middleware](Middleware.md).[execute](Middleware.md#execute)
|
|
96
|
+
|
|
97
|
+
#### Defined in
|
|
98
|
+
|
|
99
|
+
[src/Middleware.ts:27](https://github.com/breautek/storm/blob/3ad3438/src/Middleware.ts#L27)
|
|
100
|
+
|
|
101
|
+
___
|
|
102
|
+
|
|
103
|
+
### getDefaultAllowedHeaders
|
|
104
|
+
|
|
105
|
+
▸ **getDefaultAllowedHeaders**(): `string`[]
|
|
106
|
+
|
|
107
|
+
#### Returns
|
|
108
|
+
|
|
109
|
+
`string`[]
|
|
110
|
+
|
|
111
|
+
#### Defined in
|
|
112
|
+
|
|
113
|
+
[src/CORSMiddleware.ts:54](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L54)
|
|
114
|
+
|
|
115
|
+
___
|
|
116
|
+
|
|
117
|
+
### getDefaultAllowedMethods
|
|
118
|
+
|
|
119
|
+
▸ **getDefaultAllowedMethods**(): `string`[]
|
|
120
|
+
|
|
121
|
+
#### Returns
|
|
122
|
+
|
|
123
|
+
`string`[]
|
|
124
|
+
|
|
125
|
+
#### Defined in
|
|
126
|
+
|
|
127
|
+
[src/CORSMiddleware.ts:64](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L64)
|
|
128
|
+
|
|
129
|
+
___
|
|
130
|
+
|
|
131
|
+
### getDefaultAllowedOrigin
|
|
132
|
+
|
|
133
|
+
▸ **getDefaultAllowedOrigin**(): `string`
|
|
134
|
+
|
|
135
|
+
Sets the allowed origin. By default,
|
|
136
|
+
|
|
137
|
+
#### Returns
|
|
138
|
+
|
|
139
|
+
`string`
|
|
140
|
+
|
|
141
|
+
#### Defined in
|
|
142
|
+
|
|
143
|
+
[src/CORSMiddleware.ts:50](https://github.com/breautek/storm/blob/3ad3438/src/CORSMiddleware.ts#L50)
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
[@breautek/storm](../README.md) /
|
|
1
|
+
[@breautek/storm](../README.md) / ConfigLoader
|
|
2
2
|
|
|
3
3
|
# Class: ConfigLoader
|
|
4
4
|
|
|
5
|
-
[ConfigLoader](../modules/ConfigLoader.md).ConfigLoader
|
|
6
|
-
|
|
7
5
|
## Table of contents
|
|
8
6
|
|
|
9
7
|
### Methods
|
|
10
8
|
|
|
11
|
-
- [load](ConfigLoader.
|
|
9
|
+
- [load](ConfigLoader.md#load)
|
|
12
10
|
|
|
13
11
|
## Methods
|
|
14
12
|
|
|
15
13
|
### load
|
|
16
14
|
|
|
17
|
-
▸ `Static` **load**(`path`): `Promise`<[`IConfig`](../interfaces/IConfig.
|
|
15
|
+
▸ `Static` **load**(`path`): `Promise`<[`IConfig`](../interfaces/IConfig.md)\>
|
|
18
16
|
|
|
19
17
|
#### Parameters
|
|
20
18
|
|
|
@@ -24,8 +22,8 @@
|
|
|
24
22
|
|
|
25
23
|
#### Returns
|
|
26
24
|
|
|
27
|
-
`Promise`<[`IConfig`](../interfaces/IConfig.
|
|
25
|
+
`Promise`<[`IConfig`](../interfaces/IConfig.md)\>
|
|
28
26
|
|
|
29
27
|
#### Defined in
|
|
30
28
|
|
|
31
|
-
[src/ConfigLoader.ts:34](https://github.com/breautek/storm/blob/
|
|
29
|
+
[src/ConfigLoader.ts:34](https://github.com/breautek/storm/blob/3ad3438/src/ConfigLoader.ts#L34)
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
[@breautek/storm](../README.md) /
|
|
1
|
+
[@breautek/storm](../README.md) / Database
|
|
2
2
|
|
|
3
3
|
# Class: Database<TDatabaseConfig, TConnectionAPI\>
|
|
4
4
|
|
|
5
|
-
[Database](../modules/Database.md).Database
|
|
6
|
-
|
|
7
5
|
## Type parameters
|
|
8
6
|
|
|
9
7
|
| Name |
|
|
@@ -15,27 +13,27 @@
|
|
|
15
13
|
|
|
16
14
|
- **`Database`**
|
|
17
15
|
|
|
18
|
-
↳ [`MySQLDatabase`](MySQLDatabase.
|
|
16
|
+
↳ [`MySQLDatabase`](MySQLDatabase.md)
|
|
19
17
|
|
|
20
18
|
## Table of contents
|
|
21
19
|
|
|
22
20
|
### Constructors
|
|
23
21
|
|
|
24
|
-
- [constructor](Database.
|
|
22
|
+
- [constructor](Database.md#constructor)
|
|
25
23
|
|
|
26
24
|
### Methods
|
|
27
25
|
|
|
28
|
-
- [\_addNode](Database.
|
|
29
|
-
- [\_destroy](Database.
|
|
30
|
-
- [\_getConnection](Database.
|
|
31
|
-
- [\_removeNode](Database.
|
|
32
|
-
- [addMaster](Database.
|
|
33
|
-
- [addSlave](Database.
|
|
34
|
-
- [destroy](Database.
|
|
35
|
-
- [escape](Database.
|
|
36
|
-
- [getConnection](Database.
|
|
37
|
-
- [removeMaster](Database.
|
|
38
|
-
- [removeSlave](Database.
|
|
26
|
+
- [\_addNode](Database.md#_addnode)
|
|
27
|
+
- [\_destroy](Database.md#_destroy)
|
|
28
|
+
- [\_getConnection](Database.md#_getconnection)
|
|
29
|
+
- [\_removeNode](Database.md#_removenode)
|
|
30
|
+
- [addMaster](Database.md#addmaster)
|
|
31
|
+
- [addSlave](Database.md#addslave)
|
|
32
|
+
- [destroy](Database.md#destroy)
|
|
33
|
+
- [escape](Database.md#escape)
|
|
34
|
+
- [getConnection](Database.md#getconnection)
|
|
35
|
+
- [removeMaster](Database.md#removemaster)
|
|
36
|
+
- [removeSlave](Database.md#removeslave)
|
|
39
37
|
|
|
40
38
|
## Constructors
|
|
41
39
|
|
|
@@ -52,7 +50,7 @@
|
|
|
52
50
|
|
|
53
51
|
#### Defined in
|
|
54
52
|
|
|
55
|
-
[src/Database.ts:
|
|
53
|
+
[src/Database.ts:27](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L27)
|
|
56
54
|
|
|
57
55
|
## Methods
|
|
58
56
|
|
|
@@ -73,7 +71,7 @@
|
|
|
73
71
|
|
|
74
72
|
#### Defined in
|
|
75
73
|
|
|
76
|
-
[src/Database.ts:
|
|
74
|
+
[src/Database.ts:82](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L82)
|
|
77
75
|
|
|
78
76
|
___
|
|
79
77
|
|
|
@@ -87,13 +85,13 @@ ___
|
|
|
87
85
|
|
|
88
86
|
#### Defined in
|
|
89
87
|
|
|
90
|
-
[src/Database.ts:
|
|
88
|
+
[src/Database.ts:81](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L81)
|
|
91
89
|
|
|
92
90
|
___
|
|
93
91
|
|
|
94
92
|
### \_getConnection
|
|
95
93
|
|
|
96
|
-
▸ `Protected` `Abstract` **_getConnection**(`query`, `requireWriteAccess`): `Promise`<[`DatabaseConnection`](DatabaseConnection.
|
|
94
|
+
▸ `Protected` `Abstract` **_getConnection**(`query`, `requireWriteAccess`): `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`TConnectionAPI`\>\>
|
|
97
95
|
|
|
98
96
|
#### Parameters
|
|
99
97
|
|
|
@@ -104,11 +102,11 @@ ___
|
|
|
104
102
|
|
|
105
103
|
#### Returns
|
|
106
104
|
|
|
107
|
-
`Promise`<[`DatabaseConnection`](DatabaseConnection.
|
|
105
|
+
`Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`TConnectionAPI`\>\>
|
|
108
106
|
|
|
109
107
|
#### Defined in
|
|
110
108
|
|
|
111
|
-
[src/Database.ts:
|
|
109
|
+
[src/Database.ts:84](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L84)
|
|
112
110
|
|
|
113
111
|
___
|
|
114
112
|
|
|
@@ -128,7 +126,7 @@ ___
|
|
|
128
126
|
|
|
129
127
|
#### Defined in
|
|
130
128
|
|
|
131
|
-
[src/Database.ts:
|
|
129
|
+
[src/Database.ts:83](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L83)
|
|
132
130
|
|
|
133
131
|
___
|
|
134
132
|
|
|
@@ -148,7 +146,7 @@ ___
|
|
|
148
146
|
|
|
149
147
|
#### Defined in
|
|
150
148
|
|
|
151
|
-
[src/Database.ts:
|
|
149
|
+
[src/Database.ts:31](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L31)
|
|
152
150
|
|
|
153
151
|
___
|
|
154
152
|
|
|
@@ -169,7 +167,7 @@ ___
|
|
|
169
167
|
|
|
170
168
|
#### Defined in
|
|
171
169
|
|
|
172
|
-
[src/Database.ts:
|
|
170
|
+
[src/Database.ts:45](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L45)
|
|
173
171
|
|
|
174
172
|
___
|
|
175
173
|
|
|
@@ -183,7 +181,7 @@ ___
|
|
|
183
181
|
|
|
184
182
|
#### Defined in
|
|
185
183
|
|
|
186
|
-
[src/Database.ts:
|
|
184
|
+
[src/Database.ts:77](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L77)
|
|
187
185
|
|
|
188
186
|
___
|
|
189
187
|
|
|
@@ -203,13 +201,13 @@ ___
|
|
|
203
201
|
|
|
204
202
|
#### Defined in
|
|
205
203
|
|
|
206
|
-
[src/Database.ts:
|
|
204
|
+
[src/Database.ts:85](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L85)
|
|
207
205
|
|
|
208
206
|
___
|
|
209
207
|
|
|
210
208
|
### getConnection
|
|
211
209
|
|
|
212
|
-
▸ **getConnection**(`requireWriteAccess?`, `nodeID?`): `Promise`<[`DatabaseConnection`](DatabaseConnection.
|
|
210
|
+
▸ **getConnection**(`requireWriteAccess?`, `nodeID?`): `Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`TConnectionAPI`\>\>
|
|
213
211
|
|
|
214
212
|
#### Parameters
|
|
215
213
|
|
|
@@ -220,11 +218,11 @@ ___
|
|
|
220
218
|
|
|
221
219
|
#### Returns
|
|
222
220
|
|
|
223
|
-
`Promise`<[`DatabaseConnection`](DatabaseConnection.
|
|
221
|
+
`Promise`<[`DatabaseConnection`](DatabaseConnection.md)<`TConnectionAPI`\>\>
|
|
224
222
|
|
|
225
223
|
#### Defined in
|
|
226
224
|
|
|
227
|
-
[src/Database.ts:
|
|
225
|
+
[src/Database.ts:64](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L64)
|
|
228
226
|
|
|
229
227
|
___
|
|
230
228
|
|
|
@@ -238,7 +236,7 @@ ___
|
|
|
238
236
|
|
|
239
237
|
#### Defined in
|
|
240
238
|
|
|
241
|
-
[src/Database.ts:
|
|
239
|
+
[src/Database.ts:40](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L40)
|
|
242
240
|
|
|
243
241
|
___
|
|
244
242
|
|
|
@@ -258,4 +256,4 @@ ___
|
|
|
258
256
|
|
|
259
257
|
#### Defined in
|
|
260
258
|
|
|
261
|
-
[src/Database.ts:
|
|
259
|
+
[src/Database.ts:54](https://github.com/breautek/storm/blob/3ad3438/src/Database.ts#L54)
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
[@breautek/storm](../README.md) /
|
|
1
|
+
[@breautek/storm](../README.md) / DatabaseConnection
|
|
2
2
|
|
|
3
3
|
# Class: DatabaseConnection<TAPI\>
|
|
4
4
|
|
|
5
|
-
[DatabaseConnection](../modules/DatabaseConnection.md).DatabaseConnection
|
|
6
|
-
|
|
7
5
|
Do not call `new Database` directly. Use `Database.getConnection` to create a `DatabaseConnection` object.
|
|
8
6
|
|
|
9
7
|
**`abstract`**
|
|
@@ -20,38 +18,38 @@ Do not call `new Database` directly. Use `Database.getConnection` to create a `D
|
|
|
20
18
|
|
|
21
19
|
- **`DatabaseConnection`**
|
|
22
20
|
|
|
23
|
-
↳ [`MySQLConnection`](MySQLConnection.
|
|
21
|
+
↳ [`MySQLConnection`](MySQLConnection.md)
|
|
24
22
|
|
|
25
23
|
## Implements
|
|
26
24
|
|
|
27
|
-
- [`IDatabaseConnection`](../interfaces/IDatabaseConnection.
|
|
25
|
+
- [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md)
|
|
28
26
|
|
|
29
27
|
## Table of contents
|
|
30
28
|
|
|
31
29
|
### Constructors
|
|
32
30
|
|
|
33
|
-
- [constructor](DatabaseConnection.
|
|
31
|
+
- [constructor](DatabaseConnection.md#constructor)
|
|
34
32
|
|
|
35
33
|
### Methods
|
|
36
34
|
|
|
37
|
-
- [\_close](DatabaseConnection.
|
|
38
|
-
- [\_query](DatabaseConnection.
|
|
39
|
-
- [\_stream](DatabaseConnection.
|
|
40
|
-
- [close](DatabaseConnection.
|
|
41
|
-
- [commit](DatabaseConnection.
|
|
42
|
-
- [endTransaction](DatabaseConnection.
|
|
43
|
-
- [getAPI](DatabaseConnection.
|
|
44
|
-
- [getInstantiationStack](DatabaseConnection.
|
|
45
|
-
- [getTimeout](DatabaseConnection.
|
|
46
|
-
- [isClosed](DatabaseConnection.
|
|
47
|
-
- [isReadOnly](DatabaseConnection.
|
|
48
|
-
- [isTransaction](DatabaseConnection.
|
|
49
|
-
- [query](DatabaseConnection.
|
|
50
|
-
- [rollback](DatabaseConnection.
|
|
51
|
-
- [setInstantiationStack](DatabaseConnection.
|
|
52
|
-
- [setTimeout](DatabaseConnection.
|
|
53
|
-
- [startTransaction](DatabaseConnection.
|
|
54
|
-
- [stream](DatabaseConnection.
|
|
35
|
+
- [\_close](DatabaseConnection.md#_close)
|
|
36
|
+
- [\_query](DatabaseConnection.md#_query)
|
|
37
|
+
- [\_stream](DatabaseConnection.md#_stream)
|
|
38
|
+
- [close](DatabaseConnection.md#close)
|
|
39
|
+
- [commit](DatabaseConnection.md#commit)
|
|
40
|
+
- [endTransaction](DatabaseConnection.md#endtransaction)
|
|
41
|
+
- [getAPI](DatabaseConnection.md#getapi)
|
|
42
|
+
- [getInstantiationStack](DatabaseConnection.md#getinstantiationstack)
|
|
43
|
+
- [getTimeout](DatabaseConnection.md#gettimeout)
|
|
44
|
+
- [isClosed](DatabaseConnection.md#isclosed)
|
|
45
|
+
- [isReadOnly](DatabaseConnection.md#isreadonly)
|
|
46
|
+
- [isTransaction](DatabaseConnection.md#istransaction)
|
|
47
|
+
- [query](DatabaseConnection.md#query)
|
|
48
|
+
- [rollback](DatabaseConnection.md#rollback)
|
|
49
|
+
- [setInstantiationStack](DatabaseConnection.md#setinstantiationstack)
|
|
50
|
+
- [setTimeout](DatabaseConnection.md#settimeout)
|
|
51
|
+
- [startTransaction](DatabaseConnection.md#starttransaction)
|
|
52
|
+
- [stream](DatabaseConnection.md#stream)
|
|
55
53
|
|
|
56
54
|
## Constructors
|
|
57
55
|
|
|
@@ -75,7 +73,7 @@ Do not call `new Database` directly. Use `Database.getConnection` to create a `D
|
|
|
75
73
|
|
|
76
74
|
#### Defined in
|
|
77
75
|
|
|
78
|
-
[src/DatabaseConnection.ts:
|
|
76
|
+
[src/DatabaseConnection.ts:43](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L43)
|
|
79
77
|
|
|
80
78
|
## Methods
|
|
81
79
|
|
|
@@ -102,7 +100,7 @@ Promise<void>
|
|
|
102
100
|
|
|
103
101
|
#### Defined in
|
|
104
102
|
|
|
105
|
-
[src/DatabaseConnection.ts:
|
|
103
|
+
[src/DatabaseConnection.ts:238](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L238)
|
|
106
104
|
|
|
107
105
|
___
|
|
108
106
|
|
|
@@ -135,7 +133,7 @@ Promise
|
|
|
135
133
|
|
|
136
134
|
#### Defined in
|
|
137
135
|
|
|
138
|
-
[src/DatabaseConnection.ts:
|
|
136
|
+
[src/DatabaseConnection.ts:249](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L249)
|
|
139
137
|
|
|
140
138
|
___
|
|
141
139
|
|
|
@@ -162,7 +160,7 @@ but returns a `Readable` stream instead.
|
|
|
162
160
|
|
|
163
161
|
#### Defined in
|
|
164
162
|
|
|
165
|
-
[src/DatabaseConnection.ts:
|
|
163
|
+
[src/DatabaseConnection.ts:261](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L261)
|
|
166
164
|
|
|
167
165
|
___
|
|
168
166
|
|
|
@@ -190,11 +188,11 @@ Promise<void>
|
|
|
190
188
|
|
|
191
189
|
#### Implementation of
|
|
192
190
|
|
|
193
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
191
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[close](../interfaces/IDatabaseConnection.md#close)
|
|
194
192
|
|
|
195
193
|
#### Defined in
|
|
196
194
|
|
|
197
|
-
[src/DatabaseConnection.ts:
|
|
195
|
+
[src/DatabaseConnection.ts:168](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L168)
|
|
198
196
|
|
|
199
197
|
___
|
|
200
198
|
|
|
@@ -216,11 +214,11 @@ Promise<void>
|
|
|
216
214
|
|
|
217
215
|
#### Implementation of
|
|
218
216
|
|
|
219
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
217
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[commit](../interfaces/IDatabaseConnection.md#commit)
|
|
220
218
|
|
|
221
219
|
#### Defined in
|
|
222
220
|
|
|
223
|
-
[src/DatabaseConnection.ts:
|
|
221
|
+
[src/DatabaseConnection.ts:219](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L219)
|
|
224
222
|
|
|
225
223
|
___
|
|
226
224
|
|
|
@@ -248,7 +246,7 @@ Promise<void>
|
|
|
248
246
|
|
|
249
247
|
#### Defined in
|
|
250
248
|
|
|
251
|
-
[src/DatabaseConnection.ts:
|
|
249
|
+
[src/DatabaseConnection.ts:210](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L210)
|
|
252
250
|
|
|
253
251
|
___
|
|
254
252
|
|
|
@@ -266,11 +264,11 @@ any
|
|
|
266
264
|
|
|
267
265
|
#### Implementation of
|
|
268
266
|
|
|
269
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
267
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[getAPI](../interfaces/IDatabaseConnection.md#getapi)
|
|
270
268
|
|
|
271
269
|
#### Defined in
|
|
272
270
|
|
|
273
|
-
[src/DatabaseConnection.ts:
|
|
271
|
+
[src/DatabaseConnection.ts:90](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L90)
|
|
274
272
|
|
|
275
273
|
___
|
|
276
274
|
|
|
@@ -289,11 +287,11 @@ string - A stacktrace
|
|
|
289
287
|
|
|
290
288
|
#### Implementation of
|
|
291
289
|
|
|
292
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
290
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[getInstantiationStack](../interfaces/IDatabaseConnection.md#getinstantiationstack)
|
|
293
291
|
|
|
294
292
|
#### Defined in
|
|
295
293
|
|
|
296
|
-
[src/DatabaseConnection.ts:
|
|
294
|
+
[src/DatabaseConnection.ts:72](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L72)
|
|
297
295
|
|
|
298
296
|
___
|
|
299
297
|
|
|
@@ -311,11 +309,11 @@ number in milliseconds
|
|
|
311
309
|
|
|
312
310
|
#### Implementation of
|
|
313
311
|
|
|
314
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
312
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[getTimeout](../interfaces/IDatabaseConnection.md#gettimeout)
|
|
315
313
|
|
|
316
314
|
#### Defined in
|
|
317
315
|
|
|
318
|
-
[src/DatabaseConnection.ts:
|
|
316
|
+
[src/DatabaseConnection.ts:120](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L120)
|
|
319
317
|
|
|
320
318
|
___
|
|
321
319
|
|
|
@@ -331,11 +329,11 @@ Returns true if the connection has been closed.
|
|
|
331
329
|
|
|
332
330
|
#### Implementation of
|
|
333
331
|
|
|
334
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
332
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[isClosed](../interfaces/IDatabaseConnection.md#isclosed)
|
|
335
333
|
|
|
336
334
|
#### Defined in
|
|
337
335
|
|
|
338
|
-
[src/DatabaseConnection.ts:
|
|
336
|
+
[src/DatabaseConnection.ts:181](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L181)
|
|
339
337
|
|
|
340
338
|
___
|
|
341
339
|
|
|
@@ -354,11 +352,11 @@ boolean
|
|
|
354
352
|
|
|
355
353
|
#### Implementation of
|
|
356
354
|
|
|
357
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
355
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[isReadOnly](../interfaces/IDatabaseConnection.md#isreadonly)
|
|
358
356
|
|
|
359
357
|
#### Defined in
|
|
360
358
|
|
|
361
|
-
[src/DatabaseConnection.ts:
|
|
359
|
+
[src/DatabaseConnection.ts:99](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L99)
|
|
362
360
|
|
|
363
361
|
___
|
|
364
362
|
|
|
@@ -378,11 +376,11 @@ boolean
|
|
|
378
376
|
|
|
379
377
|
#### Implementation of
|
|
380
378
|
|
|
381
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
379
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[isTransaction](../interfaces/IDatabaseConnection.md#istransaction)
|
|
382
380
|
|
|
383
381
|
#### Defined in
|
|
384
382
|
|
|
385
|
-
[src/DatabaseConnection.ts:
|
|
383
|
+
[src/DatabaseConnection.ts:200](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L200)
|
|
386
384
|
|
|
387
385
|
___
|
|
388
386
|
|
|
@@ -404,7 +402,7 @@ Queries the database for a dataset.
|
|
|
404
402
|
|
|
405
403
|
| Name | Type | Description |
|
|
406
404
|
| :------ | :------ | :------ |
|
|
407
|
-
| `query` | [`Query`](Query.
|
|
405
|
+
| `query` | [`Query`](Query.md)<`any`, `any`, `any`\> | The database query |
|
|
408
406
|
|
|
409
407
|
#### Returns
|
|
410
408
|
|
|
@@ -414,11 +412,11 @@ Promise<TQueryResult>
|
|
|
414
412
|
|
|
415
413
|
#### Implementation of
|
|
416
414
|
|
|
417
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
415
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[query](../interfaces/IDatabaseConnection.md#query)
|
|
418
416
|
|
|
419
417
|
#### Defined in
|
|
420
418
|
|
|
421
|
-
[src/DatabaseConnection.ts:
|
|
419
|
+
[src/DatabaseConnection.ts:131](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L131)
|
|
422
420
|
|
|
423
421
|
___
|
|
424
422
|
|
|
@@ -440,11 +438,11 @@ Promise<void>
|
|
|
440
438
|
|
|
441
439
|
#### Implementation of
|
|
442
440
|
|
|
443
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
441
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[rollback](../interfaces/IDatabaseConnection.md#rollback)
|
|
444
442
|
|
|
445
443
|
#### Defined in
|
|
446
444
|
|
|
447
|
-
[src/DatabaseConnection.ts:
|
|
445
|
+
[src/DatabaseConnection.ts:228](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L228)
|
|
448
446
|
|
|
449
447
|
___
|
|
450
448
|
|
|
@@ -464,11 +462,11 @@ ___
|
|
|
464
462
|
|
|
465
463
|
#### Implementation of
|
|
466
464
|
|
|
467
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
465
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[setInstantiationStack](../interfaces/IDatabaseConnection.md#setinstantiationstack)
|
|
468
466
|
|
|
469
467
|
#### Defined in
|
|
470
468
|
|
|
471
|
-
[src/DatabaseConnection.ts:
|
|
469
|
+
[src/DatabaseConnection.ts:63](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L63)
|
|
472
470
|
|
|
473
471
|
___
|
|
474
472
|
|
|
@@ -490,11 +488,11 @@ Sets the timeout of this connectino
|
|
|
490
488
|
|
|
491
489
|
#### Implementation of
|
|
492
490
|
|
|
493
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
491
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[setTimeout](../interfaces/IDatabaseConnection.md#settimeout)
|
|
494
492
|
|
|
495
493
|
#### Defined in
|
|
496
494
|
|
|
497
|
-
[src/DatabaseConnection.ts:
|
|
495
|
+
[src/DatabaseConnection.ts:108](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L108)
|
|
498
496
|
|
|
499
497
|
___
|
|
500
498
|
|
|
@@ -516,11 +514,11 @@ Promise<void>
|
|
|
516
514
|
|
|
517
515
|
#### Implementation of
|
|
518
516
|
|
|
519
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
517
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[startTransaction](../interfaces/IDatabaseConnection.md#starttransaction)
|
|
520
518
|
|
|
521
519
|
#### Defined in
|
|
522
520
|
|
|
523
|
-
[src/DatabaseConnection.ts:
|
|
521
|
+
[src/DatabaseConnection.ts:192](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L192)
|
|
524
522
|
|
|
525
523
|
___
|
|
526
524
|
|
|
@@ -532,7 +530,7 @@ ___
|
|
|
532
530
|
|
|
533
531
|
| Name | Type | Description |
|
|
534
532
|
| :------ | :------ | :------ |
|
|
535
|
-
| `query` | [`Query`](Query.
|
|
533
|
+
| `query` | [`Query`](Query.md)<`any`, `any`, `any`\> | The database query |
|
|
536
534
|
| `streamOptions?` | `any` | Stream options |
|
|
537
535
|
|
|
538
536
|
#### Returns
|
|
@@ -543,8 +541,8 @@ Readable
|
|
|
543
541
|
|
|
544
542
|
#### Implementation of
|
|
545
543
|
|
|
546
|
-
[IDatabaseConnection](../interfaces/IDatabaseConnection.
|
|
544
|
+
[IDatabaseConnection](../interfaces/IDatabaseConnection.md).[stream](../interfaces/IDatabaseConnection.md#stream)
|
|
547
545
|
|
|
548
546
|
#### Defined in
|
|
549
547
|
|
|
550
|
-
[src/DatabaseConnection.ts:
|
|
548
|
+
[src/DatabaseConnection.ts:151](https://github.com/breautek/storm/blob/3ad3438/src/DatabaseConnection.ts#L151)
|