![]() |
MySQL 26.10.0
Source Code Documentation
|
RAII wrapper around MySQL Table Access services. More...
#include <mrs_component_table_access.h>
Classes | |
| struct | Ticket |
Public Member Functions | |
| ~Table_accessor () | |
| Table_accessor ()=delete | |
| Table_accessor (const Table_accessor &)=delete | |
| Table_accessor & | operator= (const Table_accessor &)=delete |
| Table_accessor (Table_accessor &&)=delete | |
| Table_accessor & | operator= (Table_accessor &&)=delete |
| bool | valid () const |
| Ticket | add_table_read (const char *schema, const char *table) |
| Ticket | add_table_write (const char *schema, const char *table) |
| bool | begin () |
| bool | materialize_tables (std::vector< Ticket > &tickets) |
| bool | materialize_table (Ticket &ticket) |
| bool | scan (TA_table t, const std::function< bool(TA_table)> &on_row) |
| bool | get_varchar (TA_table t, int col, std::string &out) const |
Static Public Member Functions | |
| static Table_accessor | make_with_current_ctx (size_t max_tables=4) |
Private Member Functions | |
| Table_accessor (MYSQL_THD thd, size_t max_tables) | |
| Ticket | add_table (const char *schema, const char *table, TA_lock_type mode) |
Private Attributes | |
| Table_access | ta_ {nullptr} |
| MYSQL_THD | thd_ {nullptr} |
RAII wrapper around MySQL Table Access services.
Handles:
| mrs_component::Table_accessor::~Table_accessor | ( | ) |
|
delete |
|
delete |
|
delete |
|
private |
|
private |
| Table_accessor::Ticket mrs_component::Table_accessor::add_table_read | ( | const char * | schema, |
| const char * | table | ||
| ) |
| Table_accessor::Ticket mrs_component::Table_accessor::add_table_write | ( | const char * | schema, |
| const char * | table | ||
| ) |
| bool mrs_component::Table_accessor::begin | ( | ) |
| bool mrs_component::Table_accessor::get_varchar | ( | TA_table | t, |
| int | col, | ||
| std::string & | out | ||
| ) | const |
|
static |
| bool mrs_component::Table_accessor::materialize_table | ( | Ticket & | ticket | ) |
| bool mrs_component::Table_accessor::materialize_tables | ( | std::vector< Ticket > & | tickets | ) |
|
delete |
|
delete |
| bool mrs_component::Table_accessor::scan | ( | TA_table | t, |
| const std::function< bool(TA_table)> & | on_row | ||
| ) |
|
inline |
|
private |