COPY for CSVs

Started by Andrew Dunstanover 22 years ago3 messagespatches
Jump to latest
#1Andrew Dunstan
andrew@dunslane.net

Attached is an undocumented patch that implements COPY for CSVs
according to the scheme recently discussed. I believe it handles all the
straightforward and perverse cases that were discussed (including
multiline fields and partially quoted fields).

I have done some light testing on it, but would appreciate some
assistance with testing, as well as any useful review comments.

cheers

andrew

Attachments:

csv.patchtext/plain; name=csv.patchDownload+209-28
#2Andrew Dunstan
andrew@dunslane.net
In reply to: Andrew Dunstan (#1)
Re: COPY for CSVs

Andrew Dunstan wrote:

Attached is an undocumented patch that implements COPY for CSVs
according to the scheme recently discussed. I believe it handles all
the straightforward and perverse cases that were discussed (including
multiline fields and partially quoted fields).

I have done some light testing on it, but would appreciate some
assistance with testing, as well as any useful review comments.

Looking back over the discussion, I see that there was demand for the
ability to export as well as import CSVs.

That will actually be rather easier to do, so I will revise the patch
accordingly.

cheers

andrew

#3Andrew Dunstan
andrew@dunslane.net
In reply to: Andrew Dunstan (#2)
Re: COPY for CSVs

Andrew Dunstan wrote:

Andrew Dunstan wrote:

Attached is an undocumented patch that implements COPY for CSVs
according to the scheme recently discussed. I believe it handles all
the straightforward and perverse cases that were discussed (including
multiline fields and partially quoted fields).

I have done some light testing on it, but would appreciate some
assistance with testing, as well as any useful review comments.

Looking back over the discussion, I see that there was demand for the
ability to export as well as import CSVs.

That will actually be rather easier to do, so I will revise the patch
accordingly.

version attached that does copy out as well as copy in. I am not sure
about the multibyte stuff, so that needs careful review.

cheers

andrew

Attachments:

csv.patchtext/plain; name=csv.patchDownload+285-35