if you do

db.export_to_csv_file(open('myfile.csv','wb'))

you get a csv dump of the db and you do

db.import_from_csv_file(open('myfile.csv','rb'))

you get a restore. The myfile.csv is a csv file and it is not specific
of one db engine.

Massimo



On Dec 10, 4:38 pm, Richard <[email protected]> wrote:
> I have a CSV file and want to generate dumps of the data for sqlite,
> mysql, postgres, etc.
>
> My current workflow is to insert the data in each database and then use
> mysqldump, etc to generate the dump files.
>
> I read that the DAL is now a standalone module - great!
> Is it possible to use the DAL to purely generate the required SQL for a
> database without actually inserting or even installing the database?

Reply via email to