~ubuntu-branches/ubuntu/quantal/mysql-workbench/quantal

« back to all changes in this revision

Viewing changes to plugins/db.mysql/backend/db_frw_eng_be.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-03-01 21:57:30 UTC
  • Revision ID: package-import@ubuntu.com-20120301215730-o7y8av8y38n162ro
Tags: upstream-5.2.38+dfsg
ImportĀ upstreamĀ versionĀ 5.2.38+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "stdafx.h"
 
2
 
 
3
#include "grtdb/db_object_helpers.h"
 
4
 
 
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"
 
9
 
 
10
#include "grtpp.h"
 
11
 
 
12
 
 
13
using namespace grt;
 
14
 
 
15
 
 
16
#include "db_frw_eng_be.h"
 
17
 
 
18
 
 
19
Db_frw_eng::Db_frw_eng(bec::GRTManager *grtm)
 
20
  : Db_plugin(), DbMySQLValidationPage(grtm), _export(grtm)
 
21
{
 
22
  {
 
23
    workbench_DocumentRef doc= workbench_DocumentRef::cast_from(grtm->get_grt()->get("/wb/doc"));
 
24
    Db_frw_eng::grtm(grtm);
 
25
  }
 
26
 
 
27
  _catalog= db_mysql_CatalogRef::cast_from(_grtm->get_grt()->get("/wb/doc/physicalModels/0/catalog"));
 
28
}
 
29
 
 
30
 
 
31
void Db_frw_eng::start_apply_script_to_db()
 
32
{
 
33
  sql_script(_sql_script);
 
34
  Db_plugin::exec_task();
 
35
}
 
36
 
 
37
 
 
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)
 
49
{
 
50
  _export.setup_grt_string_list_models_from_catalog(
 
51
    users_model,
 
52
    users_exc_model,
 
53
    tables_model,
 
54
    tables_exc_model,
 
55
    views_model,
 
56
    views_exc_model,
 
57
    routines_model,
 
58
    routines_exc_model,
 
59
    triggers_model,
 
60
    triggers_exc_model);
 
61
}
 
62