26#ifndef MRS_COMPONENT_TABLE_ACCESS_H
27#define MRS_COMPONENT_TABLE_ACCESS_H
64 [[nodiscard]]
bool valid()
const {
return ta_ !=
nullptr; }
#define MYSQL_THD
Definition: backup_page_tracker.h:38
RAII wrapper around MySQL Table Access services.
Definition: mrs_component_table_access.h:46
Table_access ta_
Definition: mrs_component_table_access.h:80
bool valid() const
Definition: mrs_component_table_access.h:64
Ticket add_table_write(const char *schema, const char *table)
Definition: mrs_component_table_access.cc:57
bool materialize_tables(std::vector< Ticket > &tickets)
Definition: mrs_component_table_access.cc:68
static Table_accessor make_with_current_ctx(size_t max_tables=4)
Definition: mrs_component_table_access.cc:43
bool begin()
Definition: mrs_component_table_access.cc:62
Ticket add_table_read(const char *schema, const char *table)
Definition: mrs_component_table_access.cc:52
Ticket add_table(const char *schema, const char *table, TA_lock_type mode)
Definition: mrs_component_table_access.cc:141
bool materialize_table(Ticket &ticket)
Definition: mrs_component_table_access.cc:82
Table_accessor & operator=(const Table_accessor &)=delete
Table_accessor & operator=(Table_accessor &&)=delete
bool get_varchar(TA_table t, int col, std::string &out) const
Definition: mrs_component_table_access.cc:107
bool scan(TA_table t, const std::function< bool(TA_table)> &on_row)
Definition: mrs_component_table_access.cc:89
Table_accessor(const Table_accessor &)=delete
~Table_accessor()
Definition: mrs_component_table_access.cc:36
MYSQL_THD thd_
Definition: mrs_component_table_access.h:81
Table_accessor(Table_accessor &&)=delete
TA_lock_type
Table lock type.
Definition: table_access_bits.h:46
struct Table_access_imp * Table_access
Table_access.
Definition: table_access_bits.h:99
struct TA_table_imp * TA_table
An opened table.
Definition: table_access_bits.h:104
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: mrs_component.cc:137
mode
Definition: file_handle.h:61
Definition: mrs_component_table_access.h:48
TA_table tbl
Definition: mrs_component_table_access.h:50
Generic table access interface.