Ejemplo n.º 1
0
    def create(dbEnum: DbEnum):

        return {
            DbEnum.DataMart:
            DbContext(server="DataMart",
                      connectionStr="DataMart connection string"),
            DbEnum.History:
            DbContext(server="History",
                      connectionStr="History connection string"),
            DbEnum.Online:
            DbContext(server="Online",
                      connectionStr="Online connection string")
        }[dbEnum]
Ejemplo n.º 2
0
 def create(self):
     return DbContext(server="Online",
                      connectionStr="Online connection string")
Ejemplo n.º 3
0
 def create(self):
     return DbContext(server="History",
                      connectionStr="History connection string")
Ejemplo n.º 4
0
 def create(self):
     return DbContext(server="DataMart",
                      connectionStr="DataMart connection string")
Ejemplo n.º 5
0
 def createOnline():
     dbContext = DbContext(server="Online",
                           connectionStr="Online connection string")
     return dbContext
Ejemplo n.º 6
0
 def createHistory():
     dbContext = DbContext(server="History",
                           connectionStr="History connection string")
     return dbContext
Ejemplo n.º 7
0
 def createDataMart():
     dbContext = DbContext(server="DataMart",
                           connectionStr="DataMart connection string")
     return dbContext