MySQL 8.0.39
Source Code Documentation
Mysql::Tools::Dump::Table Class Reference

#include <table.h>

Inheritance diagram for Mysql::Tools::Dump::Table:
[legend]

Public Member Functions

 Table (uint64 id, const std::string &name, const std::string &schema, const std::string &sql_formatted_definition, std::vector< Field > &fields, std::string type, uint64 row_count, uint64 row_bound, uint64 data_lenght)
 
std::string get_type () const
 Retrieves type name. More...
 
uint64 get_row_count () const
 Retrieves number of rows in table, this value can be approximate. More...
 
uint64 get_row_count_bound () const
 Retrieves maximum number of rows in table. More...
 
uint64 get_row_data_lenght () const
 Retrieves total number of bytes of rows data. More...
 
const std::vector< Field > & get_fields () const
 
const std::vector< std::string > & get_indexes_sql_definition () const
 
const std::string & get_sql_definition_without_indexes () const
 
- Public Member Functions inherited from Mysql::Tools::Dump::Abstract_plain_sql_object
 Abstract_plain_sql_object (uint64 id, const std::string &name, const std::string &schema, const std::string &sql_formatted_definition)
 
std::string get_sql_formatted_definition () const
 
void set_sql_formatted_definition (std::string)
 
- Public Member Functions inherited from Mysql::Tools::Dump::Abstract_data_object
 ~Abstract_data_object () override
 
uint64 get_id () const
 Returns an unique ID of this DB object. More...
 
std::string get_schema () const
 Returns schema in which object is contained. More...
 
std::string get_name () const
 Returns name of object in schema. More...
 
- Public Member Functions inherited from Mysql::Tools::Dump::I_data_object
virtual ~I_data_object ()=default
 

Private Attributes

std::vector< Fieldm_fields
 
std::vector< std::string > m_indexes_sql_definition
 
std::string m_sql_definition_without_indexes
 
std::string m_type
 
uint64 m_row_count
 
uint64 m_row_bound
 
uint64 m_data_lenght
 

Additional Inherited Members

- Protected Member Functions inherited from Mysql::Tools::Dump::Abstract_data_object
 Abstract_data_object (uint64 id, const std::string &name, const std::string &schema)
 

Constructor & Destructor Documentation

◆ Table()

Table::Table ( uint64  id,
const std::string &  name,
const std::string &  schema,
const std::string &  sql_formatted_definition,
std::vector< Field > &  fields,
std::string  type,
uint64  row_count,
uint64  row_bound,
uint64  data_lenght 
)

Member Function Documentation

◆ get_fields()

const std::vector< Field > & Table::get_fields ( ) const

◆ get_indexes_sql_definition()

const std::vector< std::string > & Table::get_indexes_sql_definition ( ) const

◆ get_row_count()

uint64 Table::get_row_count ( ) const

Retrieves number of rows in table, this value can be approximate.

◆ get_row_count_bound()

uint64 Table::get_row_count_bound ( ) const

Retrieves maximum number of rows in table.

This value can be approximate, but should be upper bound for actual number of rows.

◆ get_row_data_lenght()

uint64 Table::get_row_data_lenght ( ) const

Retrieves total number of bytes of rows data.

This value can be approximate.

◆ get_sql_definition_without_indexes()

const std::string & Table::get_sql_definition_without_indexes ( ) const

◆ get_type()

std::string Table::get_type ( ) const

Retrieves type name.

Member Data Documentation

◆ m_data_lenght

uint64 Mysql::Tools::Dump::Table::m_data_lenght
private

◆ m_fields

std::vector<Field> Mysql::Tools::Dump::Table::m_fields
private

◆ m_indexes_sql_definition

std::vector<std::string> Mysql::Tools::Dump::Table::m_indexes_sql_definition
private

◆ m_row_bound

uint64 Mysql::Tools::Dump::Table::m_row_bound
private

◆ m_row_count

uint64 Mysql::Tools::Dump::Table::m_row_count
private

◆ m_sql_definition_without_indexes

std::string Mysql::Tools::Dump::Table::m_sql_definition_without_indexes
private

◆ m_type

std::string Mysql::Tools::Dump::Table::m_type
private

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