Esempio n. 1
0
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():
Esempio n. 2
0
 def onStart(self):
     MumoModule.onStart(self)
     cfg = self.cfg()
     self.db = SourceDB(cfg.source.database)
Esempio n. 3
0
 def setUp(self):
     self.db = SourceDB()