def execute_koppeltabel_buids(): dbmongo = connectmongo() dbsql = connectsql() visitors = getvisitors(dbmongo) for visitor in visitors: save_buids(visitor, dbsql)
def execute_sessions(): dbmongo = connectmongo() dbsql = connectsql() sessions = getsessions(dbmongo) #database_mongo.products.find() for session in sessions: savesession(session, dbsql)
def execute_visitors(): dbmongo = connectmongo() dbsql = connectsql() visitors = getvisitors(dbmongo) #database_mongo.products.find() for visitor in visitors: savevisitor(visitor, dbsql)
def execute_koppeltabel_order(): dbmongo = connectmongo() dbsql = connectsql() sessions = getsessions(dbmongo) #database_mongo.products.find() for session in sessions: save_order(session, dbsql)
def execute_products(): dbmongo = connectmongo() dbsql = connectsql() products = getproducts(dbmongo) #database_mongo.products.find() for product in products: saveproduct(product, dbsql)
from database import connectmongo from database import connectsql from models.visitors import getvisitors from models.visitors import savevisitor dbmongo = connectmongo() dbsql = connectsql() visitors = getvisitors(dbmongo) #database_mongo.products.find() for visitor in visitors: savevisitor(visitor, dbsql)