boostorg / mysql

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

Connection pool: per-operation metadata_mode #192

Open anarthal opened 9 months ago

anarthal commented 9 months ago

connection_pool doesn't allow setting metadata mode, so there's no way to retrieve metadata strings from a pooled connection (the static interface still works, since it bypasses metadata mode).

Having a per-connection metadata mode is error prone, and a leftover from the time when we didn't have the universal execute and start_execution functions. Consider a per-operation metadata mode, deprecating meta_mode and set_meta_mode from connection, and removing the latter functions from any_connection.