@breautek/storm 3.3.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.
- package/CHANGELOG.md +20 -0
- package/docs/README.md +153 -62
- package/docs/classes/{Application.Application-1.md → Application.md} +110 -112
- 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} +38 -32
- package/docs/classes/{RawQuery.RawQuery-1.md → RawQuery.md} +36 -32
- 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.ServiceProvider-1.md → ServiceProvider.md} +52 -54
- 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/{api.formidable.EmitData.md → formidable.EmitData.md} +7 -7
- 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} +23 -25
- 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 +2 -2
- package/lib/Query.js +2 -2
- package/lib/Query.js.map +1 -1
- package/lib/Request.js +2 -2
- package/lib/Request.js.map +1 -1
- package/lib/Response.js +1 -1
- package/lib/Response.js.map +1 -1
- package/lib/SetSessionVariableQuery.d.ts +10 -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 +2 -1
- 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 +20 -20
- package/src/DatabaseConnection.ts +2 -2
- package/src/Query.ts +3 -3
- package/src/SetSessionVariableQuery.ts +29 -0
- package/src/TemporaryTableQuery.ts +3 -2
- 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/Request.Request-1.md +0 -323
- package/docs/classes/Response.Response-1.md +0 -244
- 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.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
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
[@breautek/storm](../README.md) /
|
|
1
|
+
[@breautek/storm](../README.md) / Query
|
|
2
2
|
|
|
3
3
|
# Class: Query<TQueryParameters, TQueryResultSet, TQueryPostProcessedResultSet\>
|
|
4
4
|
|
|
5
|
-
[Query](../modules/Query.md).Query
|
|
6
|
-
|
|
7
5
|
## Type parameters
|
|
8
6
|
|
|
9
7
|
| Name | Type |
|
|
@@ -16,33 +14,29 @@
|
|
|
16
14
|
|
|
17
15
|
- **`Query`**
|
|
18
16
|
|
|
19
|
-
↳ [`
|
|
20
|
-
|
|
21
|
-
↳ [`RawQuery`](RawQuery.RawQuery-1.md)
|
|
17
|
+
↳ [`TemporaryTableQuery`](TemporaryTableQuery.md)
|
|
22
18
|
|
|
23
|
-
↳ [`
|
|
19
|
+
↳ [`DropTemporaryTableQuery`](DropTemporaryTableQuery.md)
|
|
24
20
|
|
|
25
|
-
↳ [`
|
|
21
|
+
↳ [`RawQuery`](RawQuery.md)
|
|
26
22
|
|
|
27
|
-
↳ [`
|
|
28
|
-
|
|
29
|
-
↳ [`StartTransactionQuery`](private_StartTransactionQuery.StartTransactionQuery.md)
|
|
23
|
+
↳ [`SetSessionVariableQuery`](SetSessionVariableQuery.md)
|
|
30
24
|
|
|
31
25
|
## Table of contents
|
|
32
26
|
|
|
33
27
|
### Constructors
|
|
34
28
|
|
|
35
|
-
- [constructor](Query.
|
|
29
|
+
- [constructor](Query.md#constructor)
|
|
36
30
|
|
|
37
31
|
### Methods
|
|
38
32
|
|
|
39
|
-
- [\_getQuery](Query.
|
|
40
|
-
- [execute](Query.
|
|
41
|
-
- [getParameters](Query.
|
|
42
|
-
- [getParametersForQuery](Query.
|
|
43
|
-
- [getQuery](Query.
|
|
44
|
-
- [onPostProcess](Query.
|
|
45
|
-
- [onPreQuery](Query.
|
|
33
|
+
- [\_getQuery](Query.md#_getquery)
|
|
34
|
+
- [execute](Query.md#execute)
|
|
35
|
+
- [getParameters](Query.md#getparameters)
|
|
36
|
+
- [getParametersForQuery](Query.md#getparametersforquery)
|
|
37
|
+
- [getQuery](Query.md#getquery)
|
|
38
|
+
- [onPostProcess](Query.md#onpostprocess)
|
|
39
|
+
- [onPreQuery](Query.md#onprequery)
|
|
46
40
|
|
|
47
41
|
## Constructors
|
|
48
42
|
|
|
@@ -66,13 +60,19 @@
|
|
|
66
60
|
|
|
67
61
|
#### Defined in
|
|
68
62
|
|
|
69
|
-
[src/Query.ts:23](https://github.com/breautek/storm/blob/
|
|
63
|
+
[src/Query.ts:23](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L23)
|
|
70
64
|
|
|
71
65
|
## Methods
|
|
72
66
|
|
|
73
67
|
### \_getQuery
|
|
74
68
|
|
|
75
|
-
▸ `Protected` `Abstract` **_getQuery**(): `string`
|
|
69
|
+
▸ `Protected` `Abstract` **_getQuery**(`connection`): `string`
|
|
70
|
+
|
|
71
|
+
#### Parameters
|
|
72
|
+
|
|
73
|
+
| Name | Type |
|
|
74
|
+
| :------ | :------ |
|
|
75
|
+
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
|
|
76
76
|
|
|
77
77
|
#### Returns
|
|
78
78
|
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
|
|
81
81
|
#### Defined in
|
|
82
82
|
|
|
83
|
-
[src/Query.ts:35](https://github.com/breautek/storm/blob/
|
|
83
|
+
[src/Query.ts:35](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L35)
|
|
84
84
|
|
|
85
85
|
___
|
|
86
86
|
|
|
@@ -92,7 +92,7 @@ ___
|
|
|
92
92
|
|
|
93
93
|
| Name | Type |
|
|
94
94
|
| :------ | :------ |
|
|
95
|
-
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.
|
|
95
|
+
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
|
|
96
96
|
|
|
97
97
|
#### Returns
|
|
98
98
|
|
|
@@ -100,7 +100,7 @@ ___
|
|
|
100
100
|
|
|
101
101
|
#### Defined in
|
|
102
102
|
|
|
103
|
-
[src/Query.ts:63](https://github.com/breautek/storm/blob/
|
|
103
|
+
[src/Query.ts:63](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L63)
|
|
104
104
|
|
|
105
105
|
___
|
|
106
106
|
|
|
@@ -114,7 +114,7 @@ ___
|
|
|
114
114
|
|
|
115
115
|
#### Defined in
|
|
116
116
|
|
|
117
|
-
[src/Query.ts:27](https://github.com/breautek/storm/blob/
|
|
117
|
+
[src/Query.ts:27](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L27)
|
|
118
118
|
|
|
119
119
|
___
|
|
120
120
|
|
|
@@ -128,13 +128,19 @@ ___
|
|
|
128
128
|
|
|
129
129
|
#### Defined in
|
|
130
130
|
|
|
131
|
-
[src/Query.ts:31](https://github.com/breautek/storm/blob/
|
|
131
|
+
[src/Query.ts:31](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L31)
|
|
132
132
|
|
|
133
133
|
___
|
|
134
134
|
|
|
135
135
|
### getQuery
|
|
136
136
|
|
|
137
|
-
▸ **getQuery**(): `string`
|
|
137
|
+
▸ **getQuery**(`connection`): `string`
|
|
138
|
+
|
|
139
|
+
#### Parameters
|
|
140
|
+
|
|
141
|
+
| Name | Type |
|
|
142
|
+
| :------ | :------ |
|
|
143
|
+
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
|
|
138
144
|
|
|
139
145
|
#### Returns
|
|
140
146
|
|
|
@@ -142,7 +148,7 @@ ___
|
|
|
142
148
|
|
|
143
149
|
#### Defined in
|
|
144
150
|
|
|
145
|
-
[src/Query.ts:37](https://github.com/breautek/storm/blob/
|
|
151
|
+
[src/Query.ts:37](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L37)
|
|
146
152
|
|
|
147
153
|
___
|
|
148
154
|
|
|
@@ -156,7 +162,7 @@ Override to augment/manipulate the returned result set.
|
|
|
156
162
|
|
|
157
163
|
| Name | Type | Description |
|
|
158
164
|
| :------ | :------ | :------ |
|
|
159
|
-
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.
|
|
165
|
+
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) | The connection object used for this query execution. Useful if further queries are required. |
|
|
160
166
|
| `resultSet` | `TQueryResultSet` | - |
|
|
161
167
|
|
|
162
168
|
#### Returns
|
|
@@ -165,7 +171,7 @@ Override to augment/manipulate the returned result set.
|
|
|
165
171
|
|
|
166
172
|
#### Defined in
|
|
167
173
|
|
|
168
|
-
[src/Query.ts:58](https://github.com/breautek/storm/blob/
|
|
174
|
+
[src/Query.ts:58](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L58)
|
|
169
175
|
|
|
170
176
|
___
|
|
171
177
|
|
|
@@ -180,7 +186,7 @@ Can be used to set session variables or create temporary tables, etc.
|
|
|
180
186
|
|
|
181
187
|
| Name | Type |
|
|
182
188
|
| :------ | :------ |
|
|
183
|
-
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.
|
|
189
|
+
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
|
|
184
190
|
|
|
185
191
|
#### Returns
|
|
186
192
|
|
|
@@ -188,4 +194,4 @@ Can be used to set session variables or create temporary tables, etc.
|
|
|
188
194
|
|
|
189
195
|
#### Defined in
|
|
190
196
|
|
|
191
|
-
[src/Query.ts:48](https://github.com/breautek/storm/blob/
|
|
197
|
+
[src/Query.ts:48](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L48)
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
[@breautek/storm](../README.md) /
|
|
1
|
+
[@breautek/storm](../README.md) / RawQuery
|
|
2
2
|
|
|
3
3
|
# Class: RawQuery<TQueryParameters, TQueryResultSet\>
|
|
4
4
|
|
|
5
|
-
[RawQuery](../modules/RawQuery.md).RawQuery
|
|
6
|
-
|
|
7
5
|
## Type parameters
|
|
8
6
|
|
|
9
7
|
| Name | Type |
|
|
@@ -13,7 +11,7 @@
|
|
|
13
11
|
|
|
14
12
|
## Hierarchy
|
|
15
13
|
|
|
16
|
-
- [`Query`](Query.
|
|
14
|
+
- [`Query`](Query.md)<`TQueryParameters`, `TQueryResultSet`, `TQueryResultSet`\>
|
|
17
15
|
|
|
18
16
|
↳ **`RawQuery`**
|
|
19
17
|
|
|
@@ -21,17 +19,17 @@
|
|
|
21
19
|
|
|
22
20
|
### Constructors
|
|
23
21
|
|
|
24
|
-
- [constructor](RawQuery.
|
|
22
|
+
- [constructor](RawQuery.md#constructor)
|
|
25
23
|
|
|
26
24
|
### Methods
|
|
27
25
|
|
|
28
|
-
- [\_getQuery](RawQuery.
|
|
29
|
-
- [execute](RawQuery.
|
|
30
|
-
- [getParameters](RawQuery.
|
|
31
|
-
- [getParametersForQuery](RawQuery.
|
|
32
|
-
- [getQuery](RawQuery.
|
|
33
|
-
- [onPostProcess](RawQuery.
|
|
34
|
-
- [onPreQuery](RawQuery.
|
|
26
|
+
- [\_getQuery](RawQuery.md#_getquery)
|
|
27
|
+
- [execute](RawQuery.md#execute)
|
|
28
|
+
- [getParameters](RawQuery.md#getparameters)
|
|
29
|
+
- [getParametersForQuery](RawQuery.md#getparametersforquery)
|
|
30
|
+
- [getQuery](RawQuery.md#getquery)
|
|
31
|
+
- [onPostProcess](RawQuery.md#onpostprocess)
|
|
32
|
+
- [onPreQuery](RawQuery.md#onprequery)
|
|
35
33
|
|
|
36
34
|
## Constructors
|
|
37
35
|
|
|
@@ -55,11 +53,11 @@
|
|
|
55
53
|
|
|
56
54
|
#### Overrides
|
|
57
55
|
|
|
58
|
-
[Query](Query.
|
|
56
|
+
[Query](Query.md).[constructor](Query.md#constructor)
|
|
59
57
|
|
|
60
58
|
#### Defined in
|
|
61
59
|
|
|
62
|
-
[src/RawQuery.ts:22](https://github.com/breautek/storm/blob/
|
|
60
|
+
[src/RawQuery.ts:22](https://github.com/breautek/storm/blob/186ee78/src/RawQuery.ts#L22)
|
|
63
61
|
|
|
64
62
|
## Methods
|
|
65
63
|
|
|
@@ -73,11 +71,11 @@
|
|
|
73
71
|
|
|
74
72
|
#### Overrides
|
|
75
73
|
|
|
76
|
-
[Query](Query.
|
|
74
|
+
[Query](Query.md).[_getQuery](Query.md#_getquery)
|
|
77
75
|
|
|
78
76
|
#### Defined in
|
|
79
77
|
|
|
80
|
-
[src/RawQuery.ts:27](https://github.com/breautek/storm/blob/
|
|
78
|
+
[src/RawQuery.ts:27](https://github.com/breautek/storm/blob/186ee78/src/RawQuery.ts#L27)
|
|
81
79
|
|
|
82
80
|
___
|
|
83
81
|
|
|
@@ -89,7 +87,7 @@ ___
|
|
|
89
87
|
|
|
90
88
|
| Name | Type |
|
|
91
89
|
| :------ | :------ |
|
|
92
|
-
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.
|
|
90
|
+
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
|
|
93
91
|
|
|
94
92
|
#### Returns
|
|
95
93
|
|
|
@@ -97,11 +95,11 @@ ___
|
|
|
97
95
|
|
|
98
96
|
#### Inherited from
|
|
99
97
|
|
|
100
|
-
[Query](Query.
|
|
98
|
+
[Query](Query.md).[execute](Query.md#execute)
|
|
101
99
|
|
|
102
100
|
#### Defined in
|
|
103
101
|
|
|
104
|
-
[src/Query.ts:63](https://github.com/breautek/storm/blob/
|
|
102
|
+
[src/Query.ts:63](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L63)
|
|
105
103
|
|
|
106
104
|
___
|
|
107
105
|
|
|
@@ -115,11 +113,11 @@ ___
|
|
|
115
113
|
|
|
116
114
|
#### Inherited from
|
|
117
115
|
|
|
118
|
-
[Query](Query.
|
|
116
|
+
[Query](Query.md).[getParameters](Query.md#getparameters)
|
|
119
117
|
|
|
120
118
|
#### Defined in
|
|
121
119
|
|
|
122
|
-
[src/Query.ts:27](https://github.com/breautek/storm/blob/
|
|
120
|
+
[src/Query.ts:27](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L27)
|
|
123
121
|
|
|
124
122
|
___
|
|
125
123
|
|
|
@@ -133,17 +131,23 @@ ___
|
|
|
133
131
|
|
|
134
132
|
#### Inherited from
|
|
135
133
|
|
|
136
|
-
[Query](Query.
|
|
134
|
+
[Query](Query.md).[getParametersForQuery](Query.md#getparametersforquery)
|
|
137
135
|
|
|
138
136
|
#### Defined in
|
|
139
137
|
|
|
140
|
-
[src/Query.ts:31](https://github.com/breautek/storm/blob/
|
|
138
|
+
[src/Query.ts:31](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L31)
|
|
141
139
|
|
|
142
140
|
___
|
|
143
141
|
|
|
144
142
|
### getQuery
|
|
145
143
|
|
|
146
|
-
▸ **getQuery**(): `string`
|
|
144
|
+
▸ **getQuery**(`connection`): `string`
|
|
145
|
+
|
|
146
|
+
#### Parameters
|
|
147
|
+
|
|
148
|
+
| Name | Type |
|
|
149
|
+
| :------ | :------ |
|
|
150
|
+
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
|
|
147
151
|
|
|
148
152
|
#### Returns
|
|
149
153
|
|
|
@@ -151,11 +155,11 @@ ___
|
|
|
151
155
|
|
|
152
156
|
#### Inherited from
|
|
153
157
|
|
|
154
|
-
[Query](Query.
|
|
158
|
+
[Query](Query.md).[getQuery](Query.md#getquery)
|
|
155
159
|
|
|
156
160
|
#### Defined in
|
|
157
161
|
|
|
158
|
-
[src/Query.ts:37](https://github.com/breautek/storm/blob/
|
|
162
|
+
[src/Query.ts:37](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L37)
|
|
159
163
|
|
|
160
164
|
___
|
|
161
165
|
|
|
@@ -169,7 +173,7 @@ Override to augment/manipulate the returned result set.
|
|
|
169
173
|
|
|
170
174
|
| Name | Type | Description |
|
|
171
175
|
| :------ | :------ | :------ |
|
|
172
|
-
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.
|
|
176
|
+
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) | The connection object used for this query execution. Useful if further queries are required. |
|
|
173
177
|
| `resultSet` | `TQueryResultSet` | - |
|
|
174
178
|
|
|
175
179
|
#### Returns
|
|
@@ -178,11 +182,11 @@ Override to augment/manipulate the returned result set.
|
|
|
178
182
|
|
|
179
183
|
#### Inherited from
|
|
180
184
|
|
|
181
|
-
[Query](Query.
|
|
185
|
+
[Query](Query.md).[onPostProcess](Query.md#onpostprocess)
|
|
182
186
|
|
|
183
187
|
#### Defined in
|
|
184
188
|
|
|
185
|
-
[src/Query.ts:58](https://github.com/breautek/storm/blob/
|
|
189
|
+
[src/Query.ts:58](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L58)
|
|
186
190
|
|
|
187
191
|
___
|
|
188
192
|
|
|
@@ -197,7 +201,7 @@ Can be used to set session variables or create temporary tables, etc.
|
|
|
197
201
|
|
|
198
202
|
| Name | Type |
|
|
199
203
|
| :------ | :------ |
|
|
200
|
-
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.
|
|
204
|
+
| `connection` | [`IDatabaseConnection`](../interfaces/IDatabaseConnection.md) |
|
|
201
205
|
|
|
202
206
|
#### Returns
|
|
203
207
|
|
|
@@ -205,8 +209,8 @@ Can be used to set session variables or create temporary tables, etc.
|
|
|
205
209
|
|
|
206
210
|
#### Inherited from
|
|
207
211
|
|
|
208
|
-
[Query](Query.
|
|
212
|
+
[Query](Query.md).[onPreQuery](Query.md#onprequery)
|
|
209
213
|
|
|
210
214
|
#### Defined in
|
|
211
215
|
|
|
212
|
-
[src/Query.ts:48](https://github.com/breautek/storm/blob/
|
|
216
|
+
[src/Query.ts:48](https://github.com/breautek/storm/blob/186ee78/src/Query.ts#L48)
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
[@breautek/storm](../README.md) / Request
|
|
2
|
+
|
|
3
|
+
# Class: Request<TBody, TAuthToken\>
|
|
4
|
+
|
|
5
|
+
## Type parameters
|
|
6
|
+
|
|
7
|
+
| Name | Type |
|
|
8
|
+
| :------ | :------ |
|
|
9
|
+
| `TBody` | `any` |
|
|
10
|
+
| `TAuthToken` | extends [`IAuthTokenData`](../interfaces/IAuthTokenData.md) = [`IAuthTokenData`](../interfaces/IAuthTokenData.md) |
|
|
11
|
+
|
|
12
|
+
## Table of contents
|
|
13
|
+
|
|
14
|
+
### Constructors
|
|
15
|
+
|
|
16
|
+
- [constructor](Request.md#constructor)
|
|
17
|
+
|
|
18
|
+
### Methods
|
|
19
|
+
|
|
20
|
+
- [getAuthenticationToken](Request.md#getauthenticationtoken)
|
|
21
|
+
- [getBody](Request.md#getbody)
|
|
22
|
+
- [getForm](Request.md#getform)
|
|
23
|
+
- [getForwardedIP](Request.md#getforwardedip)
|
|
24
|
+
- [getHeader](Request.md#getheader)
|
|
25
|
+
- [getHeaders](Request.md#getheaders)
|
|
26
|
+
- [getHostname](Request.md#gethostname)
|
|
27
|
+
- [getIP](Request.md#getip)
|
|
28
|
+
- [getMethod](Request.md#getmethod)
|
|
29
|
+
- [getParam](Request.md#getparam)
|
|
30
|
+
- [getParams](Request.md#getparams)
|
|
31
|
+
- [getQueryVariables](Request.md#getqueryvariables)
|
|
32
|
+
- [getRequestSource](Request.md#getrequestsource)
|
|
33
|
+
- [getURL](Request.md#geturl)
|
|
34
|
+
- [isSecure](Request.md#issecure)
|
|
35
|
+
- [pipe](Request.md#pipe)
|
|
36
|
+
- [unpipe](Request.md#unpipe)
|
|
37
|
+
|
|
38
|
+
## Constructors
|
|
39
|
+
|
|
40
|
+
### constructor
|
|
41
|
+
|
|
42
|
+
• **new Request**<`TBody`, `TAuthToken`\>(`request`)
|
|
43
|
+
|
|
44
|
+
#### Type parameters
|
|
45
|
+
|
|
46
|
+
| Name | Type |
|
|
47
|
+
| :------ | :------ |
|
|
48
|
+
| `TBody` | `any` |
|
|
49
|
+
| `TAuthToken` | extends [`IAuthTokenData`](../interfaces/IAuthTokenData.md) = [`IAuthTokenData`](../interfaces/IAuthTokenData.md) |
|
|
50
|
+
|
|
51
|
+
#### Parameters
|
|
52
|
+
|
|
53
|
+
| Name | Type |
|
|
54
|
+
| :------ | :------ |
|
|
55
|
+
| `request` | `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\> |
|
|
56
|
+
|
|
57
|
+
#### Defined in
|
|
58
|
+
|
|
59
|
+
[src/Request.ts:42](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L42)
|
|
60
|
+
|
|
61
|
+
## Methods
|
|
62
|
+
|
|
63
|
+
### getAuthenticationToken
|
|
64
|
+
|
|
65
|
+
▸ **getAuthenticationToken**(): `Promise`<`TAuthToken`\>
|
|
66
|
+
|
|
67
|
+
#### Returns
|
|
68
|
+
|
|
69
|
+
`Promise`<`TAuthToken`\>
|
|
70
|
+
|
|
71
|
+
#### Defined in
|
|
72
|
+
|
|
73
|
+
[src/Request.ts:132](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L132)
|
|
74
|
+
|
|
75
|
+
___
|
|
76
|
+
|
|
77
|
+
### getBody
|
|
78
|
+
|
|
79
|
+
▸ **getBody**(): `TBody`
|
|
80
|
+
|
|
81
|
+
#### Returns
|
|
82
|
+
|
|
83
|
+
`TBody`
|
|
84
|
+
|
|
85
|
+
#### Defined in
|
|
86
|
+
|
|
87
|
+
[src/Request.ts:46](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L46)
|
|
88
|
+
|
|
89
|
+
___
|
|
90
|
+
|
|
91
|
+
### getForm
|
|
92
|
+
|
|
93
|
+
▸ **getForm**(): `Promise`<[`IFormData`](../interfaces/IFormData.md)\>
|
|
94
|
+
|
|
95
|
+
#### Returns
|
|
96
|
+
|
|
97
|
+
`Promise`<[`IFormData`](../interfaces/IFormData.md)\>
|
|
98
|
+
|
|
99
|
+
#### Defined in
|
|
100
|
+
|
|
101
|
+
[src/Request.ts:50](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L50)
|
|
102
|
+
|
|
103
|
+
___
|
|
104
|
+
|
|
105
|
+
### getForwardedIP
|
|
106
|
+
|
|
107
|
+
▸ **getForwardedIP**(): `string`
|
|
108
|
+
|
|
109
|
+
#### Returns
|
|
110
|
+
|
|
111
|
+
`string`
|
|
112
|
+
|
|
113
|
+
#### Defined in
|
|
114
|
+
|
|
115
|
+
[src/Request.ts:100](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L100)
|
|
116
|
+
|
|
117
|
+
___
|
|
118
|
+
|
|
119
|
+
### getHeader
|
|
120
|
+
|
|
121
|
+
▸ **getHeader**(`name`): `string`
|
|
122
|
+
|
|
123
|
+
#### Parameters
|
|
124
|
+
|
|
125
|
+
| Name | Type |
|
|
126
|
+
| :------ | :------ |
|
|
127
|
+
| `name` | `string` |
|
|
128
|
+
|
|
129
|
+
#### Returns
|
|
130
|
+
|
|
131
|
+
`string`
|
|
132
|
+
|
|
133
|
+
#### Defined in
|
|
134
|
+
|
|
135
|
+
[src/Request.ts:74](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L74)
|
|
136
|
+
|
|
137
|
+
___
|
|
138
|
+
|
|
139
|
+
### getHeaders
|
|
140
|
+
|
|
141
|
+
▸ **getHeaders**(): `IncomingHttpHeaders`
|
|
142
|
+
|
|
143
|
+
#### Returns
|
|
144
|
+
|
|
145
|
+
`IncomingHttpHeaders`
|
|
146
|
+
|
|
147
|
+
#### Defined in
|
|
148
|
+
|
|
149
|
+
[src/Request.ts:70](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L70)
|
|
150
|
+
|
|
151
|
+
___
|
|
152
|
+
|
|
153
|
+
### getHostname
|
|
154
|
+
|
|
155
|
+
▸ **getHostname**(): `string`
|
|
156
|
+
|
|
157
|
+
#### Returns
|
|
158
|
+
|
|
159
|
+
`string`
|
|
160
|
+
|
|
161
|
+
#### Defined in
|
|
162
|
+
|
|
163
|
+
[src/Request.ts:104](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L104)
|
|
164
|
+
|
|
165
|
+
___
|
|
166
|
+
|
|
167
|
+
### getIP
|
|
168
|
+
|
|
169
|
+
▸ **getIP**(): `string`
|
|
170
|
+
|
|
171
|
+
#### Returns
|
|
172
|
+
|
|
173
|
+
`string`
|
|
174
|
+
|
|
175
|
+
#### Defined in
|
|
176
|
+
|
|
177
|
+
[src/Request.ts:96](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L96)
|
|
178
|
+
|
|
179
|
+
___
|
|
180
|
+
|
|
181
|
+
### getMethod
|
|
182
|
+
|
|
183
|
+
▸ **getMethod**(): `string`
|
|
184
|
+
|
|
185
|
+
#### Returns
|
|
186
|
+
|
|
187
|
+
`string`
|
|
188
|
+
|
|
189
|
+
#### Defined in
|
|
190
|
+
|
|
191
|
+
[src/Request.ts:108](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L108)
|
|
192
|
+
|
|
193
|
+
___
|
|
194
|
+
|
|
195
|
+
### getParam
|
|
196
|
+
|
|
197
|
+
▸ **getParam**(`name`): `string`
|
|
198
|
+
|
|
199
|
+
#### Parameters
|
|
200
|
+
|
|
201
|
+
| Name | Type |
|
|
202
|
+
| :------ | :------ |
|
|
203
|
+
| `name` | `string` |
|
|
204
|
+
|
|
205
|
+
#### Returns
|
|
206
|
+
|
|
207
|
+
`string`
|
|
208
|
+
|
|
209
|
+
#### Defined in
|
|
210
|
+
|
|
211
|
+
[src/Request.ts:92](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L92)
|
|
212
|
+
|
|
213
|
+
___
|
|
214
|
+
|
|
215
|
+
### getParams
|
|
216
|
+
|
|
217
|
+
▸ **getParams**(): [`IParameterMap`](../interfaces/IParameterMap.md)
|
|
218
|
+
|
|
219
|
+
#### Returns
|
|
220
|
+
|
|
221
|
+
[`IParameterMap`](../interfaces/IParameterMap.md)
|
|
222
|
+
|
|
223
|
+
#### Defined in
|
|
224
|
+
|
|
225
|
+
[src/Request.ts:88](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L88)
|
|
226
|
+
|
|
227
|
+
___
|
|
228
|
+
|
|
229
|
+
### getQueryVariables
|
|
230
|
+
|
|
231
|
+
▸ **getQueryVariables**(): `any`
|
|
232
|
+
|
|
233
|
+
#### Returns
|
|
234
|
+
|
|
235
|
+
`any`
|
|
236
|
+
|
|
237
|
+
#### Defined in
|
|
238
|
+
|
|
239
|
+
[src/Request.ts:84](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L84)
|
|
240
|
+
|
|
241
|
+
___
|
|
242
|
+
|
|
243
|
+
### getRequestSource
|
|
244
|
+
|
|
245
|
+
▸ **getRequestSource**(): `Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\>
|
|
246
|
+
|
|
247
|
+
#### Returns
|
|
248
|
+
|
|
249
|
+
`Request`<`ParamsDictionary`, `any`, `any`, `ParsedQs`, `Record`<`string`, `any`\>\>
|
|
250
|
+
|
|
251
|
+
#### Defined in
|
|
252
|
+
|
|
253
|
+
[src/Request.ts:128](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L128)
|
|
254
|
+
|
|
255
|
+
___
|
|
256
|
+
|
|
257
|
+
### getURL
|
|
258
|
+
|
|
259
|
+
▸ **getURL**(): `string`
|
|
260
|
+
|
|
261
|
+
#### Returns
|
|
262
|
+
|
|
263
|
+
`string`
|
|
264
|
+
|
|
265
|
+
#### Defined in
|
|
266
|
+
|
|
267
|
+
[src/Request.ts:112](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L112)
|
|
268
|
+
|
|
269
|
+
___
|
|
270
|
+
|
|
271
|
+
### isSecure
|
|
272
|
+
|
|
273
|
+
▸ **isSecure**(): `boolean`
|
|
274
|
+
|
|
275
|
+
#### Returns
|
|
276
|
+
|
|
277
|
+
`boolean`
|
|
278
|
+
|
|
279
|
+
#### Defined in
|
|
280
|
+
|
|
281
|
+
[src/Request.ts:116](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L116)
|
|
282
|
+
|
|
283
|
+
___
|
|
284
|
+
|
|
285
|
+
### pipe
|
|
286
|
+
|
|
287
|
+
▸ **pipe**(`destination`): `any`
|
|
288
|
+
|
|
289
|
+
#### Parameters
|
|
290
|
+
|
|
291
|
+
| Name | Type |
|
|
292
|
+
| :------ | :------ |
|
|
293
|
+
| `destination` | `Writable` |
|
|
294
|
+
|
|
295
|
+
#### Returns
|
|
296
|
+
|
|
297
|
+
`any`
|
|
298
|
+
|
|
299
|
+
#### Defined in
|
|
300
|
+
|
|
301
|
+
[src/Request.ts:120](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L120)
|
|
302
|
+
|
|
303
|
+
___
|
|
304
|
+
|
|
305
|
+
### unpipe
|
|
306
|
+
|
|
307
|
+
▸ **unpipe**(`source`): `void`
|
|
308
|
+
|
|
309
|
+
#### Parameters
|
|
310
|
+
|
|
311
|
+
| Name | Type |
|
|
312
|
+
| :------ | :------ |
|
|
313
|
+
| `source` | `Writable` |
|
|
314
|
+
|
|
315
|
+
#### Returns
|
|
316
|
+
|
|
317
|
+
`void`
|
|
318
|
+
|
|
319
|
+
#### Defined in
|
|
320
|
+
|
|
321
|
+
[src/Request.ts:124](https://github.com/breautek/storm/blob/186ee78/src/Request.ts#L124)
|