The Battle for Wesnoth  1.15.5+dev
Namespaces | Functions
mariadb::concurrency Namespace Reference

Namespaces

 status
 

Functions

void set_account (account_ref &account)
 
status::type worker_status (handle h)
 
handle execute (const std::string &query, bool keep_handle)
 
void execute (const std::string &squery)
 
handle insert (const std::string &query, bool keep_handle)
 
void insert (const std::string &squery)
 
handle query (const std::string &query, bool keep_handle)
 
void query (const std::string &squery)
 
statement_ref create_statement (const std::string &query)
 
handle execute (statement_ref &statement, bool keep_handle)
 
void execute (statement_ref &statement)
 
handle insert (statement_ref &statement, bool keep_handle)
 
void insert (statement_ref &statement)
 
handle query (statement_ref &statement, bool keep_handle)
 
void query (statement_ref &statement)
 
u64 get_execute_result (handle h)
 
u64 get_insert_result (handle h)
 
result_set_ref get_query_result (handle h)
 
void release_handle (handle h)
 
bool wait_handle (handle h, u64 wait_time_ms=100)
 

Function Documentation

◆ create_statement()

statement_ref mariadb::concurrency::create_statement ( const std::string &  query)

Definition at line 165 of file concurrency.cpp.

References mariadb::connection::create(), mariadb::statement::set_connection(), and statement().

Referenced by query().

◆ execute() [1/4]

handle mariadb::concurrency::execute ( const std::string &  query,
bool  keep_handle 
)

Definition at line 150 of file concurrency.cpp.

References mariadb::command::execute.

Referenced by execute(), and query().

◆ execute() [2/4]

void mariadb::concurrency::execute ( const std::string &  squery)
inline

Definition at line 40 of file concurrency.hpp.

References execute(), insert(), and mariadb::value::string.

◆ execute() [3/4]

handle mariadb::concurrency::execute ( statement_ref statement,
bool  keep_handle 
)

Definition at line 172 of file concurrency.cpp.

References mariadb::command::execute.

◆ execute() [4/4]

void mariadb::concurrency::execute ( statement_ref statement)
inline

Definition at line 55 of file concurrency.hpp.

References execute(), and insert().

◆ get_execute_result()

u64 mariadb::concurrency::get_execute_result ( handle  h)

◆ get_insert_result()

u64 mariadb::concurrency::get_insert_result ( handle  h)

◆ get_query_result()

result_set_ref mariadb::concurrency::get_query_result ( handle  h)

◆ insert() [1/4]

handle mariadb::concurrency::insert ( const std::string &  query,
bool  keep_handle 
)

Definition at line 154 of file concurrency.cpp.

References mariadb::command::insert.

Referenced by execute(), and insert().

◆ insert() [2/4]

void mariadb::concurrency::insert ( const std::string &  squery)
inline

Definition at line 43 of file concurrency.hpp.

References insert(), query(), and mariadb::value::string.

◆ insert() [3/4]

handle mariadb::concurrency::insert ( statement_ref statement,
bool  keep_handle 
)

Definition at line 176 of file concurrency.cpp.

References mariadb::command::insert.

◆ insert() [4/4]

void mariadb::concurrency::insert ( statement_ref statement)
inline

Definition at line 58 of file concurrency.hpp.

References insert(), and query().

◆ query() [1/4]

handle mariadb::concurrency::query ( const std::string &  query,
bool  keep_handle 
)

Definition at line 158 of file concurrency.cpp.

References mariadb::command::query.

Referenced by insert(), and query().

◆ query() [2/4]

void mariadb::concurrency::query ( const std::string &  squery)
inline

Definition at line 46 of file concurrency.hpp.

References create_statement(), execute(), query(), and mariadb::value::string.

◆ query() [3/4]

handle mariadb::concurrency::query ( statement_ref statement,
bool  keep_handle 
)

Definition at line 180 of file concurrency.cpp.

References mariadb::command::query.

◆ query() [4/4]

void mariadb::concurrency::query ( statement_ref statement)
inline

◆ release_handle()

void mariadb::concurrency::release_handle ( handle  h)

Definition at line 189 of file concurrency.cpp.

References LOCK_MUTEX, and w.

Referenced by query(), and TEST_F().

◆ set_account()

void mariadb::concurrency::set_account ( account_ref account)

Definition at line 119 of file concurrency.cpp.

Referenced by TEST_F().

◆ wait_handle()

bool mariadb::concurrency::wait_handle ( handle  h,
u64  wait_time_ms = 100 
)

Definition at line 199 of file concurrency.cpp.

References mariadb::concurrency::status::succeed, and worker_status().

Referenced by query(), and TEST_F().

◆ worker_status()

status::type mariadb::concurrency::worker_status ( handle  h)

Definition at line 124 of file concurrency.cpp.

References mariadb::worker::status(), and w.

Referenced by wait_handle().