-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstagesController.py
41 lines (33 loc) · 1.06 KB
/
stagesController.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from createDDL import CreateDDL
class StagesController(CreateDDL):
def setDatabaseName(self, databaseName):
self.databaseName = databaseName
def setBbddTemplate(self, bbddTemplate):
self.bbddTemplate = bbddTemplate
def setPathEndSQL(self, pathSQL):
self.pathSQL = pathSQL
def setDatabaseJson(self, database):
self.database = database
def setPathMapp(self, pathMapping):
self.pathMapping = pathMapping
def controller(self):
self.setBbddTemplate("./bbddTemplate/ddl.sql")
self.setPathNewMapping()
self.getContent()
self.jsonLoads()
self.getMappingKeyNames()
self.mapping()
self.newContent()
self.setPathMapping()
self.getContent()
self.jsonLoads()
self.setPathBbddTemplate()
self.getContent()
self.getKeyNames()
self.defineTableStructure()
self.setPathSQL()
self.formatContent()
self.setContent()
self.updateContent()
self.createTable()
self.insertMigr()