MySQL 9.0.0
Source Code Documentation
classic_protocol::borrowable::message::client::ListFields< 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 ListFields (string_type table_name, string_type wildcard)
 list columns of a table. More...
 
constexpr string_type table_name () const
 
constexpr string_type wildcard () const
 

Private Attributes

string_type table_name_
 
string_type wildcard_
 

Member Typedef Documentation

◆ string_type

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

Constructor & Destructor Documentation

◆ ListFields()

template<bool Borrowed>
constexpr classic_protocol::borrowable::message::client::ListFields< Borrowed >::ListFields ( string_type  table_name,
string_type  wildcard 
)
inlineconstexpr

list columns of a table.

If 'wildcard' is empty the server will execute:

SHOW COLUMNS FROM table_name

Otherwise:

SHOW COLUMNS FROM table_name LIKE wildcard

Parameters
table_namename of table to list
wildcardwildcard

Member Function Documentation

◆ table_name()

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

◆ wildcard()

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

Member Data Documentation

◆ table_name_

template<bool Borrowed>
string_type classic_protocol::borrowable::message::client::ListFields< Borrowed >::table_name_
private

◆ wildcard_

template<bool Borrowed>
string_type classic_protocol::borrowable::message::client::ListFields< Borrowed >::wildcard_
private

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