boostorg / mysql

MySQL C++ client based on Boost.Asio
https://www.boost.org/doc/libs/master/libs/mysql
Boost Software License 1.0
259 stars 33 forks source link

Boost 1.87 example update #365

Open anarthal opened 1 month ago

anarthal commented 1 month ago

In 1.87, any_connection and SQL formatting are stable, so examples should be updated to reflect these new best practices. Now that C++20 coroutines are more widespread and that we support them cleanly thanks to with_diagnostics, most examples should be updated to use these. Some need to be reviewed (as they were written long ago).

I propose having simple-but-complete examples demonstrating a single feature (e.g. suppressing exceptions, using pipelines, avoiding copies in SQL formatting, metadata...) plus a couple of fully-fledged web servers. In particular, I dislike the current examples about orders, because they don't fit any of these. Some ETL-like examples would be nice, too.

anarthal commented 5 days ago

This was incorrectly closed by GitHub.