MySQL 8.4.3
Source Code Documentation
dd::Raw_table Class Reference

#include <raw_table.h>

Public Member Functions

 Raw_table (thr_lock_type lock_type, const String_type &name)
 
virtual ~Raw_table ()=default
 
TABLEget_table ()
 
Table_refget_table_ref ()
 
bool find_record (const Object_key &key, std::unique_ptr< Raw_record > &r)
 Find record and populate raw_record. More...
 
bool find_last_record (const Object_key &key, std::unique_ptr< Raw_record > &r)
 Find last record in table and populate raw_record. More...
 
bool prepare_record_for_update (const Object_key &key, std::unique_ptr< Raw_record > &r)
 Write modified data into row buffer. More...
 
Raw_new_recordprepare_record_for_insert ()
 
bool open_record_set (const Object_key *key, std::unique_ptr< Raw_record_set > &rs)
 Initiate table scan operation for the given key. More...
 

Private Attributes

Table_ref m_table_ref
 

Constructor & Destructor Documentation

◆ Raw_table()

dd::Raw_table::Raw_table ( thr_lock_type  lock_type,
const String_type name 
)

◆ ~Raw_table()

virtual dd::Raw_table::~Raw_table ( )
virtualdefault

Member Function Documentation

◆ find_last_record()

bool dd::Raw_table::find_last_record ( const Object_key key,
std::unique_ptr< Raw_record > &  r 
)

Find last record in table and populate raw_record.

Parameters
key- Pointer to Raw_record after moving to next row.
r- row on which data is updated.
Returns
false - On success. 1) We found a row. 2) OR Either we don't have any matching rows
true - On failure and error is reported.

◆ find_record()

bool dd::Raw_table::find_record ( const Object_key key,
std::unique_ptr< Raw_record > &  r 
)

Find record and populate raw_record.

Parameters
key- Pointer to Raw_record after moving to next row.
r- row on which data is updated.
Returns
false - On success. 1) We found a row. 2) OR Either we don't have any matching rows
true - On failure and error is reported.

◆ get_table()

TABLE * dd::Raw_table::get_table ( )
inline

◆ get_table_ref()

Table_ref * dd::Raw_table::get_table_ref ( )
inline

◆ open_record_set()

bool dd::Raw_table::open_record_set ( const Object_key key,
std::unique_ptr< Raw_record_set > &  rs 
)

Initiate table scan operation for the given key.

Returns
false - on success.
true - on failure and error is reported.

◆ prepare_record_for_insert()

Raw_new_record * dd::Raw_table::prepare_record_for_insert ( )

◆ prepare_record_for_update()

bool dd::Raw_table::prepare_record_for_update ( const Object_key key,
std::unique_ptr< Raw_record > &  r 
)

Write modified data into row buffer.

Parameters
key- Pointer to Raw_record after moving to next row.
r- row on which data is updated.
Returns
false - On success.
true - On failure and error is reported.

Member Data Documentation

◆ m_table_ref

Table_ref dd::Raw_table::m_table_ref
private

The documentation for this class was generated from the following files: