from db import SourceDB from db import DestinationDB from db import config from time import sleep import sys from datetime import datetime # Source and Destination DB Initialization with session sourceDB = SourceDB() destinationDB = DestinationDB() ########################### # Get class type of input # ########################### def get_type(x): return { 'str': str, 'string': str, 'int': int, 'integer': int, 'float': float, 'datetime': datetime }.get(x) ########################### # Migration Function from one table column into another one # ########################### def column_to_column():
def onStart(self): MumoModule.onStart(self) cfg = self.cfg() self.db = SourceDB(cfg.source.database)
def setUp(self): self.db = SourceDB()