mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.43k stars 290 forks source link

Add CSV export format options #1309

Closed flowrean closed 2 months ago

flowrean commented 2 months ago

This PR adds options from csv-stringify to the extension settings, allowing users to customize the format of the generated CSV when exporting. The new settings are all in the group sqltools.csvExport, which allows to directly pass all values at once to csv-stringify. The default settings reflect the current option values.

The changes made here partly close #739. I was planning to add an option to change the CSV field separator and ended up adding some additional related options that might be useful to tweak the resulting CSV. In #739, the decimal separator is also mentioned. I don't handle this here, as it does not seem specifically related to the CSV format (could also apply to the JSON export).


Thank you for your contribution! Before submitting this PR, please make sure:

flowrean commented 2 months ago

Those are valid comments. I made the changes.