CSVEntityExporter quoteEmpty property value

suggest/request new features

CSVEntityExporter quoteEmpty property value

Postby Gary » Mon Jun 27, 2011 5:45 am

I'd like to see a quoteEmpty property value for the CSV exporter that would enable me to turn on quoting of all 'empty' values.

Currently both null and empty attributes get exported as empty CSV fields, which is confusing as reading the CSV file it is not clear which fields (if any) should be null/empty.

My current CSV handler can distinguish between null and empty with the use of 'empty' CSV fields and "" strings.

I know I can use the nullString property value to change the output for null values, but that would involve an intermediate step to process out the null values explicitly. (And I don't want to do more work. Yes, I'm lazy)

Thanks,
User avatar
Gary
 
Posts: 13
Joined: Thu May 19, 2011 2:05 am

Re: CSVEntityExporter quoteEmpty property value

Postby Volker Bergmann » Tue Jun 28, 2011 5:40 pm

Good idea, I've implemented it and will release it this week with Benerator 0.6.6.

Regards,
Volker 'databene' Bergmann

Need faster response times? phone support? onsite support? training? custom extensions? immediate bug fixes? Support Benerator evolution by buying services from Volker Bergmann!
User avatar
Volker Bergmann
 
Posts: 654
Joined: Sat Nov 10, 2007 2:40 pm


Return to Benerator Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron