3
#include "grtdb/db_object_helpers.h"
5
#include "grts/structs.h"
6
#include "grts/structs.db.mgmt.h"
7
#include "grts/structs.db.mysql.h"
8
#include "grts/structs.workbench.h"
16
#include "db_frw_eng_be.h"
19
Db_frw_eng::Db_frw_eng(bec::GRTManager *grtm)
20
: Db_plugin(), DbMySQLValidationPage(grtm), _export(grtm)
23
workbench_DocumentRef doc= workbench_DocumentRef::cast_from(grtm->get_grt()->get("/wb/doc"));
24
Db_frw_eng::grtm(grtm);
27
_catalog= db_mysql_CatalogRef::cast_from(_grtm->get_grt()->get("/wb/doc/physicalModels/0/catalog"));
31
void Db_frw_eng::start_apply_script_to_db()
33
sql_script(_sql_script);
34
Db_plugin::exec_task();
38
void Db_frw_eng::setup_grt_string_list_models_from_catalog(
39
bec::GrtStringListModel **users_model,
40
bec::GrtStringListModel **users_exc_model,
41
bec::GrtStringListModel **tables_model,
42
bec::GrtStringListModel **tables_exc_model,
43
bec::GrtStringListModel **views_model,
44
bec::GrtStringListModel **views_exc_model,
45
bec::GrtStringListModel **routines_model,
46
bec::GrtStringListModel **routines_exc_model,
47
bec::GrtStringListModel **triggers_model,
48
bec::GrtStringListModel **triggers_exc_model)
50
_export.setup_grt_string_list_models_from_catalog(