Update 1.2.0.md

This commit is contained in:
Leonid Stryzhevskyi 2020-09-28 04:21:40 +03:00 committed by GitHub
parent 1386f9d1d9
commit a23532f937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ Contents:
- [Changes In ConnectionProvider Interface](#changes-in-connectionprovider-interface)
- [Object-Mapping - Type Interpretations](#type-interpretations)
- [The new Oat++ ORM](#orm)
- [Changes in oatpp::network Namespace](#changes-in-oatppnetwork-namespace)
## Continuous Multipart Streaming
@ -71,6 +72,8 @@ Renamed methods:
This was done to unify providers' APIs and to have same API for all resource providers and resource pools.
Connection Providers and Connection Pools of the new ORM database adaptors are implemented based on the same functionality.
More info on ConnectionProvider changes see here - [Changes in oatpp::network Namespace](#changes-in-oatppnetwork-namespace).
## Type Interpretations
To simplify the integration of custom types with oatpp Object-Mapping framework the the "Type Interpretation" feature was introduced.
@ -181,3 +184,38 @@ For details see - [Object-Relational Mapping (ORM) framework](https://oatpp.io/d
- `oatpp::network::Address`
### New Constructors for Connection Providers
oatpp::network::tcp::server::ConnectionProvider
```cpp
oatpp::network::tcp::server::ConnectionProvider::createShared(
{"localhost", 8000} /* network::Address */
);
oatpp::network::tcp::server::ConnectionProvider::createShared(
{"localhost", 8000, oatpp::network::Address::IP_4} /* network::Address */
);
oatpp::network::tcp::server::ConnectionProvider::createShared(
{"localhost", 8000, oatpp::network::Address::IP_4} /* network::Address */,
true /* use extended connections */
);
```
oatpp::network::tcp::client::ConnectionProvider
```cpp
oatpp::network::tcp::client::ConnectionProvider::createShared(
{"localhost", 8000} /* network::Address */
);
oatpp::network::tcp::client::ConnectionProvider::createShared(
{"localhost", 8000, oatpp::network::Address::IP_4} /* network::Address */
);
oatpp::network::tcp::client::ConnectionProvider::createShared(
{"localhost", 8000, oatpp::network::Address::IP_4} /* network::Address */,
true /* use extended connections */
);
```