コード例 #1
0
ファイル: lite2pg.py プロジェクト: fmarella/pg3
                                    user_source + ":" +
                                    password_source + "@" +
                                    host_source + ":" +
                                    port_source + "/" +
                                    database_source,
                                convert_unicode=True,
                                encoding='utf-8',
                                poolclass=NullPool)
else:
    print "ORIGINE MIGRAZIONE NON RICONOSCIUTO"

db_source = SQLSoup(engine_source)

if tipodb_source == "postgresql":
    db_source_main = SQLSoup(engine_source)
    db_source.schema = azienda_source
    db_source_main.schema = "promogest2"

if tipodb_source == "postgresql":
    meta_source = MetaData()
    meta_source_main = MetaData()
    meta_source_main.reflect(bind=engine_source, schema="promogest2")
    meta_source.reflect(bind=engine_source, schema=azienda_source)
else:
    meta_source = MetaData()
    meta_source.reflect(bind=engine_source)



# ****************** DATABASE DI DESTINAZIONE
if tipodb_dest == "mysql":