MySQL 8.3.0
Source Code Documentation
options.cc File Reference
#include <sys/types.h>
#include <cstddef>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <utility>
#include <my_alloc.h>
#include <my_default.h>
#include <my_getopt.h>
#include <my_inttypes.h>
#include <my_macros.h>
#include <mysql.h>
#include <mysql/service_mysql_alloc.h>
#include <mysql_com.h>
#include <print_version.h>
#include <typelib.h>
#include <welcome_copyright_notice.h>
#include "m_string.h"
#include "mysql/strings/m_ctype.h"
#include "nulls.h"
#include "template_utils.h"
#include "options.h"
#include "utilities.h"
#include "sslopt-vars.h"
#include "caching_sha2_passwordopt-vars.h"
#include "sslopt-longopts.h"
#include "caching_sha2_passwordopt-longopts.h"
#include "sslopt-case.h"

Namespaces

namespace  options
 

Enumerations

enum  options::migration_options {
  options::OPT_COMPONENT_DIR = 512 , options::OPT_SOURCE_KEYRING , options::OPT_SOURCE_KEYRING_CONFIG_DIR , options::OPT_DESTINATION_KEYRING ,
  options::OPT_DESTINATION_KEYRING_CONFIG_DIR , options::OPT_ONLINE_MIGRATION , options::OPT_SSL_MODE , options::OPT_SSL_CA ,
  options::OPT_SSL_CAPATH , options::OPT_SSL_CERT , options::OPT_SSL_CIPHER , options::OPT_SSL_KEY ,
  options::OPT_SSL_CRL , options::OPT_SSL_CRLPATH , options::OPT_TLS_VERSION , options::OPT_SSL_FIPS_MODE ,
  options::OPT_TLS_CIPHERSUITES , options::OPT_SERVER_PUBLIC_KEY , options::OPT_SSL_SESSION_DATA , options::OPT_SSL_SESSION_DATA_CONTINUE_ON_FAILED_REUSE ,
  options::OPT_TLS_SNI_SERVERNAME , options::OPT_LAST
}
 

Functions

static void options::usage (bool version_only)
 
bool options::get_one_option (int optid, const struct my_option *opt, char *argument)
 
static bool options::check_options_for_sanity ()
 
static bool options::get_options (int argc, char **argv, int &exit_code)
 
bool options::process_options (int *argc, char ***argv, int &exit_code)
 Process command line options. More...
 
void options::init_connection_basic ()
 Initialize MYSQL connection structures. More...
 
void options::deinit_connection_basic ()
 Deinitialize MYSQL connection structures. More...
 

Variables

static MEM_ROOT options::argv_alloc {PSI_NOT_INSTRUMENTED, 512}
 MEM_ROOT for arguments. More...
 
static const char * options::load_default_groups [] = {"mysql_migrate_keyring", nullptr}
 Options group. More...
 
static struct my_option options::my_long_options []
 Command line options. More...
 
const char * options::default_charset = MYSQL_AUTODETECT_CHARSET_NAME