Exemplo n.º 1
0
def execute_koppeltabel_buids():
    dbmongo = connectmongo()
    dbsql = connectsql()

    visitors = getvisitors(dbmongo)

    for visitor in visitors:
        save_buids(visitor, dbsql)
Exemplo n.º 2
0
def execute_sessions():

    dbmongo = connectmongo()
    dbsql = connectsql()

    sessions = getsessions(dbmongo)  #database_mongo.products.find()

    for session in sessions:
        savesession(session, dbsql)
Exemplo n.º 3
0
def execute_visitors():

    dbmongo = connectmongo()
    dbsql = connectsql()

    visitors = getvisitors(dbmongo)  #database_mongo.products.find()

    for visitor in visitors:
        savevisitor(visitor, dbsql)
Exemplo n.º 4
0
def execute_koppeltabel_order():

    dbmongo = connectmongo()
    dbsql = connectsql()

    sessions = getsessions(dbmongo)  #database_mongo.products.find()

    for session in sessions:
        save_order(session, dbsql)
Exemplo n.º 5
0
def execute_products():

    dbmongo = connectmongo()
    dbsql = connectsql()

    products = getproducts(dbmongo)  #database_mongo.products.find()

    for product in products:
        saveproduct(product, dbsql)
Exemplo n.º 6
0
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)