Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
pool_charset_strategy::use_server_default

Creates a strategy that makes pooled connections use the server's default character set.

Synopsis
static pool_charset_strategy
use_server_default(
    character_set charset) noexcept;
Description

Creates an object with type pool_charset_strategy_type::use_server_default and a server_default_charset equal to the passed charset.

The passed charset must equal the server's configured default character set. No runtime check is performed to verify this assertion. If it does not hold, vulnerabilities may arise. If unsure, prefer set_to_utf8mb4.

Exception safety

No-throw guarantee.


PrevUpHomeNext