![]() |
MySQL 8.0.43
Source Code Documentation
|
This class represent server options as set by the parser. More...
#include <sql_servers.h>
Public Member Functions | |
| void | set_port (long port) |
| void | set_host (LEX_STRING host) |
| void | set_db (LEX_STRING db) |
| void | set_username (LEX_STRING username) |
| void | set_password (LEX_STRING password) |
| void | set_scheme (LEX_STRING scheme) |
| void | set_socket (LEX_STRING socket) |
| void | set_owner (LEX_STRING owner) |
| long | get_port () const |
| const char * | get_host () const |
| const char * | get_db () const |
| const char * | get_username () const |
| const char * | get_password () const |
| const char * | get_scheme () const |
| const char * | get_socket () const |
| const char * | get_owner () const |
| void | reset () |
| Reset all strings to NULL and port to PORT_NOT_SET. More... | |
| bool | insert_into_cache () const |
| Create a cache entry and insert it into the cache. More... | |
| bool | update_cache (FOREIGN_SERVER *existing) const |
| Update a cache entry. More... | |
| void | store_new_server (TABLE *table) const |
| Create a record representing these server options, ready to be inserted into the mysql.servers table. More... | |
| void | store_altered_server (TABLE *table, FOREIGN_SERVER *existing) const |
| Create a record for updating a row in the mysql.servers table. More... | |
Public Attributes | |
| LEX_STRING | m_server_name |
Static Public Attributes | |
| static const long | PORT_NOT_SET = -1 |
Private Attributes | |
| long | m_port |
| LEX_STRING | m_host |
| LEX_STRING | m_db |
| LEX_STRING | m_username |
| LEX_STRING | m_password |
| LEX_STRING | m_scheme |
| LEX_STRING | m_socket |
| LEX_STRING | m_owner |
This class represent server options as set by the parser.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool Server_options::insert_into_cache | ( | ) | const |
Create a cache entry and insert it into the cache.
| void Server_options::reset | ( | void | ) |
Reset all strings to NULL and port to PORT_NOT_SET.
This prepares the structure for being used by a new statement.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Server_options::store_altered_server | ( | TABLE * | table, |
| FOREIGN_SERVER * | existing | ||
| ) | const |
Create a record for updating a row in the mysql.servers table.
| table | Table to be updated. |
| existing | Cache entry represeting the existing values. |
| void Server_options::store_new_server | ( | TABLE * | table | ) | const |
Create a record representing these server options, ready to be inserted into the mysql.servers table.
| table | Table to be inserted into. |
| bool Server_options::update_cache | ( | FOREIGN_SERVER * | existing | ) | const |
Update a cache entry.
| existing | Cache entry to update |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| LEX_STRING Server_options::m_server_name |
|
private |
|
private |
|
static |