CSV again - complete database dump/restore

1 view
Skip to first unread message

mdipierro

unread,
Dec 22, 2008, 8:16:06 AM12/22/08
to web2py Web Framework
New in trunk

db.export_to_csv_file(open('filename','w'))
db.import_from_csv_file(open('filename','r'))

obviously you can export in one DB (say mysql) and import in another
(say postgresql). It should fix all references.

Please give it a try and let me know if it works for you.

Massimo
Reply all
Reply to author
Forward
0 new messages