DevToys icon indicating copy to clipboard operation
DevToys copied to clipboard

CSV Query

Open Manuel-Steinberg opened this issue 2 years ago • 5 comments

What's the Problem?

Working with CSV files is easy and fast, but bulk manipulations or more in depth queries can be tricky. Mostly I am using notepad++ with CsvQuery extension since it is way faster than Excel/Calc.

Solution/Idea

  1. Load a CSV file.
  2. Set optional read params, e.g. seperator.
  3. Write SQL statements against CSV file.
  4. Export to another CSV file.

Alternatives

CsvQuery

Priorities

Capability Priority
This proposal will allow developers to set custom read param Should
This proposal will allow end users to query a CSV with SQL Must
This proposal will allow end users to export query result to CSV again Must

DevToys Version

No response

Comments

No response

Manuel-Steinberg avatar Sep 04 '22 08:09 Manuel-Steinberg

image Screenshot of how this looks like with notepad++ and CsvQuery extension.

Manuel-Steinberg avatar Sep 04 '22 08:09 Manuel-Steinberg

A feature like this would definitely be really great!

joshpinto6 avatar Sep 04 '22 14:09 joshpinto6

Just as a general thought, this may be a more extensive feature to implement than some of the others since we have to write a way to query the data dynamically, since we don't have the model until we load the CSV and then have to allow folks to query on it (should use ANSI SQL).

Christian-Oleson avatar Sep 19 '22 14:09 Christian-Oleson

I wonder if you could fork and adapt CsvQuery to work within DevToys.
Alternately, we could reference the SQLite nuget package and build on that (having SQLite in the DevToys ecosystem may also be useful for future tools)

jamescurran avatar Sep 20 '22 15:09 jamescurran

I second this!

bvtvusn avatar Feb 21 '24 12:02 bvtvusn