#include "binding.hpp"
#include "rust_callbacks.hpp"
#include "sql/handler.h"
namespace {
bool rusty_hton_is_dict_readonly() { return rust__hton__is_dict_readonly(); }
bool rusty_hton_rm_tmp_tables(handlerton *, THD *thd, List<LEX_STRING> *) {
return rust__hton__rm_tmp_tables(static_cast<const void *>(thd));
}
void rusty_hton_replace_native_transaction_in_thd(THD *thd, void *new_trx_arg,
void **ptr_trx_arg) {
rust__hton__replace_native_transaction_in_thd(static_cast<const void *>(thd),
new_trx_arg, ptr_trx_arg);
}
bool rusty_hton_rotate_encryption_master_key() {
return rust__hton__rotate_encryption_master_key();
}
bool rusty_hton_redo_log_set_state(THD *thd, bool enable) {
return rust__hton__redo_log_set_state(static_cast<const void *>(thd), enable);
}
void rusty_hton_post_ddl(THD *thd) {
rust__hton__post_ddl(static_cast<const void *>(thd));
}
void rusty_hton_post_recover() { rust__hton__post_recover(); }
}
void rusty_hton_wire_misc(handlerton *hton) {
hton->is_dict_readonly = rusty_hton_is_dict_readonly;
hton->rm_tmp_tables = rusty_hton_rm_tmp_tables;
hton->post_ddl = rusty_hton_post_ddl;
hton->post_recover = rusty_hton_post_recover;
}
void rusty_hton_wire_encryption(handlerton *hton) {
hton->rotate_encryption_master_key = rusty_hton_rotate_encryption_master_key;
}
void rusty_hton_wire_redo_log_set_state(handlerton *hton) {
hton->redo_log_set_state = rusty_hton_redo_log_set_state;
}