MySQL 9.1.0
Source Code Documentation
options Namespace Reference

Classes

class  Mysql_connection
 
class  Options
 Command line options container. More...
 

Enumerations

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

Functions

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

Variables

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

Enumeration Type Documentation

◆ migration_options

Enumerator
OPT_COMPONENT_DIR 
OPT_SOURCE_KEYRING 
OPT_SOURCE_KEYRING_CONFIG_DIR 
OPT_DESTINATION_KEYRING 
OPT_DESTINATION_KEYRING_CONFIG_DIR 
OPT_ONLINE_MIGRATION 
OPT_SSL_MODE 
OPT_SSL_CA 
OPT_SSL_CAPATH 
OPT_SSL_CERT 
OPT_SSL_CIPHER 
OPT_SSL_KEY 
OPT_SSL_CRL 
OPT_SSL_CRLPATH 
OPT_TLS_VERSION 
OPT_SSL_FIPS_MODE 
OPT_TLS_CIPHERSUITES 
OPT_SERVER_PUBLIC_KEY 
OPT_SSL_SESSION_DATA 
OPT_SSL_SESSION_DATA_CONTINUE_ON_FAILED_REUSE 
OPT_TLS_SNI_SERVERNAME 
OPT_LAST 

Function Documentation

◆ check_options_for_sanity()

static bool options::check_options_for_sanity ( )
static

◆ deinit_connection_basic()

void options::deinit_connection_basic ( )

Deinitialize MYSQL connection structures.

◆ get_one_option()

bool options::get_one_option ( int  optid,
const struct my_option opt,
char *  argument 
)

◆ get_options()

static bool options::get_options ( int  argc,
char **  argv,
int &  exit_code 
)
static

◆ init_connection_basic()

void options::init_connection_basic ( )

Initialize MYSQL connection structures.

◆ process_options()

bool options::process_options ( int *  argc,
char ***  argv,
int &  exit_code 
)

Process command line options.

Parameters
[in,out]argcNumber of arguments
[in,out]argvCommand line argument array
[out]exit_codeExit code
Returns
status of argument processing
Return values
trueSuccess
falseFailure

◆ usage()

static void options::usage ( bool  version_only)
static

Variable Documentation

◆ argv_alloc

MEM_ROOT options::argv_alloc {PSI_NOT_INSTRUMENTED, 512}
static

MEM_ROOT for arguments.

◆ default_charset

const char* options::default_charset = MYSQL_AUTODETECT_CHARSET_NAME

◆ load_default_groups

const char* options::load_default_groups[] = {"mysql_migrate_keyring", nullptr}
static

Options group.

◆ my_long_options

struct my_option options::my_long_options[]
static

Command line options.