Hi Jörg,
> is it possible to support NULL values in the CSV import and export? For
> example, MySQL and Postgres escape NULL as \N. Another possibility I can
> think of is treating “””” differently from “”.
I'm not sure if CSV can formally distinguish between NULL and ''. jOOQ
could define a behaviour for exports along the lines you specified,
i.e. ,"", corresponds to an empty string, whereas ,, corresponds to
NULL. For imports it might be a bit more tricky, as this would be
quite a "hard" requirement on CSV files.
> Or maybe allow some “Oracle-like” behavior which converts the empty string
> to NULL before inserting it?
That is weird for non-Oracle users. I'm still amazed by that, myself :-)
On the other hand, for numeric columns, empty strings already
correspond to NULL today, so maybe that's more consistent?
> Is it planned to support NULL for the XML import and export?
I guess for XML export it will be easier to formally handle NULL's as
jOOQ uses its own proprietary XML format.
Could you open two GitHub issues for handling NULL in CSV / XML
imports / exports?
Note, XML imports are currently not supported by jOOQ, but it is on the roadmap:
https://github.com/jOOQ/jOOQ/issues/801