MySQL 9.1.0
Source Code Documentation
main.cc File Reference
#include <iostream>
#include <stdexcept>
#include <mysql.h>
#include "dim.h"
#include "mysql/harness/loader_config.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/logging/registry.h"
#include "mysql/harness/tty.h"
#include "mysql/harness/vt100_filter.h"
#include "mysqlrouter/mysql_client_thread_token.h"
#include "mysqlrouter/mysql_session.h"
#include "random_generator.h"
#include "router_app.h"
#include "windows/main-windows.h"

Macros

#define MYSQL_ROUTER_LOG_DOMAIN    ::mysql_harness::logging::kMainLogger
 

Functions

static void init_DIM ()
 Initialise Dependency Injection Manager (DIM) More...
 
static void preconfig_log_init (bool use_os_logger_initially) noexcept
 
int real_main (int argc, char **argv, bool use_os_logger_initially)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ MYSQL_ROUTER_LOG_DOMAIN

#define MYSQL_ROUTER_LOG_DOMAIN    ::mysql_harness::logging::kMainLogger

Function Documentation

◆ init_DIM()

static void init_DIM ( )
static

Initialise Dependency Injection Manager (DIM)

Unless there's a specific reason to do it elsewhere, this is the place to initialise all the DI stuff used thoroughout our application. (well, maybe we'll want plugins to init their own stuff, we'll see).

Naturally, unit tests will not run this code, as they will initialise the objects they need their own way.

◆ main()

int main ( int  argc,
char **  argv 
)

◆ preconfig_log_init()

static void preconfig_log_init ( bool  use_os_logger_initially)
staticnoexcept

◆ real_main()

int real_main ( int  argc,
char **  argv,
bool  use_os_logger_initially 
)