|
@@ -387,9 +387,9 @@ if __name__ == '__main__' :
|
|
|
#
|
|
|
# Let's run the export function ..., This will push files into a data-store of choice Redshift, PostgreSQL, MySQL ...
|
|
|
#
|
|
|
- _store = json.loads( (open(path) ).read())
|
|
|
+ _store = {"type":"sql.SQLWriter","args":json.loads( (open(path) ).read())}
|
|
|
|
|
|
- pipes = export.Factory.instance(type=TYPE,write_store={"type":"sql.SQLWriter","args":{"provider":"postgresql","db":"sample",}}) #"inspect":0,"cast":0}})
|
|
|
+ pipes = export.Factory.instance(type=TYPE,write_store=_store) #"inspect":0,"cast":0}})
|
|
|
# pipes[0].run()
|
|
|
for thread in pipes:
|
|
|
thread.start()
|