News for hackers. Stuff that matters.
Re:Q – Run SQL Directly on CSV or TSV Files by fdik on Wednesday November 05, 2014 @11:53AM (#8562729)
On Windoze, ADO lets you use SQL directly on any data source for many years now, including CSV, TSV, Exchange Microsoft, and many more.

Here's a sample how this can be done: http://fdik.org/ado.zip

Such database middleware is missing on many other platforms. Could be an option to think about it.

Re:Q – Run SQL Directly on CSV or TSV Files by CHY872 on Wednesday November 05, 2014 @12:34PM (#8562983)
Re:Q – Run SQL Directly on CSV or TSV Files by ClashTheBunny on Wednesday November 05, 2014 @11:46AM (#8562689)
If you want to just drop CSV files into MySQL, go for it with using the CSV file backing: http://dev.mysql.com/doc/refman/5.0/en/csv-storage-engine.ht...

As the comments say, create the table with a CSV storage backing and then delete the file and symlink any file to the same location. You are now querying your quicken export or your excel file.

Re:Q – Run SQL Directly on CSV or TSV Files by codeulike on Wednesday November 05, 2014 @11:30AM (#8562585)
On windows, Logparser 2.2 is a fast implementation of a similar idea.

Does Q handle typical aggravated CSV symptoms such as commas in speechmark delimited strings, speechmarks in speechmark delimited strings, strings that contain carriage returns, etc?

Re:Q – Run SQL Directly on CSV or TSV Files by easytiger on Wednesday November 05, 2014 @11:22AM (#8562523)
is this deliberately named to confuse people with the kdb q language?

http://code.kx.com/wiki/JB:QforMortals2/contents

Re:Q – Run SQL Directly on CSV or TSV Files by papercrane on Wednesday November 05, 2014 @11:28AM (#8562565)
I doubt it was deliberate. Q isn't exactly a well-known language outside of the financial sector.
Re:Q – Run SQL Directly on CSV or TSV Files by sucramb on Wednesday November 05, 2014 @11:34AM (#8562612)
From the q file on github:

# Name : q (With respect to The Q Continuum)

Re:Q – Run SQL Directly on CSV or TSV Files by urlwolf on Wednesday November 05, 2014 @12:58PM (#8563130)
csvtools have had a tool to do this for a while. Not directly though, it goes through sqlite.