mirror of
https://github.com/oatpp/oatpp.git
synced 2024-11-27 08:30:07 +08:00
Update the '1.2.5' changelog.
This commit is contained in:
parent
3ccb178e6d
commit
58293e5cb7
@ -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).
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include <WS2tcpip.h>
|
||||
#else
|
||||
#include <netdb.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user