Пример #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]
Пример #2
0
 def create(self):
     return DbContext(server="Online",
                      connectionStr="Online connection string")
Пример #3
0
 def create(self):
     return DbContext(server="History",
                      connectionStr="History connection string")
Пример #4
0
 def create(self):
     return DbContext(server="DataMart",
                      connectionStr="DataMart connection string")
Пример #5
0
 def createOnline():
     dbContext = DbContext(server="Online",
                           connectionStr="Online connection string")
     return dbContext
Пример #6
0
 def createHistory():
     dbContext = DbContext(server="History",
                           connectionStr="History connection string")
     return dbContext
Пример #7
0
 def createDataMart():
     dbContext = DbContext(server="DataMart",
                           connectionStr="DataMart connection string")
     return dbContext