23#ifndef DD__SDI_INCLUDED
24#define DD__SDI_INCLUDED
234inline bool store(
THD *thd [[maybe_unused]],
const DDT *ddo [[maybe_unused]]) {
284inline bool drop(
THD *thd [[maybe_unused]],
const DDT *) {
321 const DDT *old_ddo [[maybe_unused]],
322 const DDT *new_ddo [[maybe_unused]]) {
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
Data structure that contains the information about shared tablespaces.
Definition: fsp0space.h:46
Definition: tablespace.h:55
bool drop(THD *thd, const Table *tp)
Remove SDI for a table.
Definition: sdi.cc:638
bool drop_after_update(THD *thd, const Table *old_tp, const Table *new_tp)
Table cleanup hook.
Definition: sdi.cc:649
bool store(THD *thd, const Table *tp)
Stores the SDI for a table.
Definition: sdi.cc:606
bool CheckDefaultCompatibility(const RJ_Document &doc)
Default checker which implements the traditional (strict) compatibility check: MYSQL_VERSION less tha...
Definition: sdi.cc:378
Sdi_type serialize(THD *thd, const Table &table, const String_type &schema_name)
Serialize a Table object.
Definition: sdi.cc:363
std::function< bool(const RJ_Document &)> SdiCompatibilityChecker
Type alias for std::function wrapping a callable to check if SDI, as an RJ_Document,...
Definition: sdi.h:152
bool deserialize(THD *thd, const Sdi_type &sdi, Table *dst_table, SdiCompatibilityChecker comp_checker, String_type *deser_schema_name)
Deserialize a dd::Table object.
Definition: sdi.cc:474
Header for compiler-dependent features.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
borrowable::session_track::Schema< true > Schema
Definition: classic_protocol_session_track.h:276
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
String_type Sdi_type
Definition: sdi.h:47
constexpr const std::uint64_t SDI_VERSION
The version of the current SDI Json format.
Definition: sdi.h:103
rapidjson::GenericDocument< RJ_Encoding, RJ_Allocator, rapidjson::CrtAllocator > RJ_Document
Definition: sdi_fwd.h:47
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
This header provides Rapidjson Type Aliases.
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2661