MySQL 8.3.0
Source Code Documentation
classic_protocol::borrowable::message::client::ChangeUser< Borrowed > Class Template Reference

#include <classic_protocol_message.h>

Public Types

using string_type = std::conditional_t< Borrowed, std::string_view, std::string >
 

Public Member Functions

constexpr ChangeUser (string_type username, string_type auth_method_data, string_type schema, uint16_t collation, string_type auth_method_name, string_type attributes)
 construct a ChangeUser message. More...
 
constexpr uint8_t collation () const noexcept
 
constexpr string_type username () const
 
constexpr string_type auth_method_data () const
 
constexpr string_type schema () const
 
constexpr string_type auth_method_name () const
 
constexpr string_type attributes () const
 

Private Attributes

string_type username_
 
string_type auth_method_data_
 
string_type schema_
 
uint16_t collation_
 
string_type auth_method_name_
 
string_type attributes_
 

Member Typedef Documentation

◆ string_type

template<bool Borrowed>
using classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::string_type = std::conditional_t<Borrowed, std::string_view, std::string>

Constructor & Destructor Documentation

◆ ChangeUser()

template<bool Borrowed>
constexpr classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::ChangeUser ( string_type  username,
string_type  auth_method_data,
string_type  schema,
uint16_t  collation,
string_type  auth_method_name,
string_type  attributes 
)
inlineconstexpr

construct a ChangeUser message.

Parameters
usernameusername to change to
auth_method_dataauth-method specific data like hashed password
schemainitial schema of the newly authenticated session
auth_method_nameauth-method the data is for
collationcollation
attributessession-attributes

Member Function Documentation

◆ attributes()

template<bool Borrowed>
constexpr string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::attributes ( ) const
inlineconstexpr

◆ auth_method_data()

template<bool Borrowed>
constexpr string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::auth_method_data ( ) const
inlineconstexpr

◆ auth_method_name()

template<bool Borrowed>
constexpr string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::auth_method_name ( ) const
inlineconstexpr

◆ collation()

template<bool Borrowed>
constexpr uint8_t classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::collation ( ) const
inlineconstexprnoexcept

◆ schema()

template<bool Borrowed>
constexpr string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::schema ( ) const
inlineconstexpr

◆ username()

template<bool Borrowed>
constexpr string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::username ( ) const
inlineconstexpr

Member Data Documentation

◆ attributes_

template<bool Borrowed>
string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::attributes_
private

◆ auth_method_data_

template<bool Borrowed>
string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::auth_method_data_
private

◆ auth_method_name_

template<bool Borrowed>
string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::auth_method_name_
private

◆ collation_

template<bool Borrowed>
uint16_t classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::collation_
private

◆ schema_

template<bool Borrowed>
string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::schema_
private

◆ username_

template<bool Borrowed>
string_type classic_protocol::borrowable::message::client::ChangeUser< Borrowed >::username_
private

The documentation for this class was generated from the following file: