Update the '1.2.5' changelog.

This commit is contained in:
lganzzzo 2020-12-23 03:53:05 +02:00
parent 3ccb178e6d
commit 58293e5cb7
2 changed files with 37 additions and 0 deletions

View File

@ -10,6 +10,8 @@ Contents:
- [Enable Global CORS](#enable-global-cors)
- [Headers Multimap](#headers-multimap)
- [Better Router API](#better-router-api)
- [ORM Clean Section](#orm-clean-section)
- [New Modules](#new-modules)
## Introduce ResponseInterceptor
@ -130,3 +132,37 @@ if(r && r.getEndpoint() == true) {
// check auth
}
```
## ORM Clean Section
For modules:
- [oatpp-sqlite](https://github.com/oatpp/oatpp-sqlite)
- [oatpp-postgresql](https://github.com/oatpp/oatpp-postgresql)
Now it's possible to declare a "clean section" - a section that is untouched by DSL processor.
Clean section begins with `<!!` and ends with `!!>`.
**Note:** `<!!` and `!!>` char sequences are ignored inside string.
### Example
Such query:
```cpp
QUERY(selectUserName,
"SELECT <!! name::varchar !!> FROM users WHERE userId=:userId",
PARAM(String, userId))
```
Will be processed as follows:
```sql
SELECT name::varchar FROM users WHERE userId="<user-id-value>"
```
Note: unlike the `:userId` the `:varchar` char-sequence wasn't interpreted as a template parameter (unlike the `:userId`).
## New Modules
- [oatpp-openssl](https://github.com/oatpp/oatpp-openssl) - TLS adaptor for OpenSSL (Recommended to use).

View File

@ -35,6 +35,7 @@
#include <WS2tcpip.h>
#else
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
#endif