www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Need csv writer (std.csv only has csvReader)

reply John Xu <728308756 qq.com> writes:
Any friend can help me with a csvWriter? The std.csv only has a 
csvReader.

I want to dump database from sqlite to mysql.

If I do it manually, I need handle double quote("), \n, ',' 
specifically
Oct 12 2023
next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Thursday, 12 October 2023 at 23:18:23 UTC, John Xu wrote:
 Any friend can help me with a csvWriter? The std.csv only has a 
 csvReader.

 I want to dump database from sqlite to mysql.

 If I do it manually, I need handle double quote("), \n, ',' 
 specifically
Have you looked at https://code.dlang.org/packages/mir-ion ?
Oct 13 2023
prev sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Thursday, 12 October 2023 at 23:18:23 UTC, John Xu wrote:
 Any friend can help me with a csvWriter? The std.csv only has a 
 csvReader.

 I want to dump database from sqlite to mysql.

 If I do it manually, I need handle double quote("), \n, ',' 
 specifically
Also, if tsv is acceptable, I tried this previously https://code.dlang.org/packages/tsv-utils And it can convert csv to tsv
Oct 13 2023