Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

pool_charset_strategy

Describes how pooled connections manage their character set.

Synopsis

Defined in header <boost/mysql/pool_params.hpp>

class pool_charset_strategy;
Member Functions

Name

Description

pool_charset_strategy [constructor]

Default constructor, equivalent to set_to_utf8mb4.

server_default_charset

Retrieves the server's default character set.

type

Retrieves the kind of strategy represented by this object.

Static Member Functions

Name

Description

set_to_utf8mb4

Creates a strategy that makes pooled connections use utf8mb4.

use_server_default

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

Description

This is a lightweight variant-like type that determines how connections in a pool set its character set and restore it when they are returned to the pool. Create instances using the set_to_utf8mb4 and use_server_default factory functions.

Convenience header <boost/mysql.hpp>


PrevUpHomeNext