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]
def create(self): return DbContext(server="Online", connectionStr="Online connection string")
def create(self): return DbContext(server="History", connectionStr="History connection string")
def create(self): return DbContext(server="DataMart", connectionStr="DataMart connection string")
def createOnline(): dbContext = DbContext(server="Online", connectionStr="Online connection string") return dbContext
def createHistory(): dbContext = DbContext(server="History", connectionStr="History connection string") return dbContext
def createDataMart(): dbContext = DbContext(server="DataMart", connectionStr="DataMart connection string") return dbContext