TextQL: Execute SQL Against CSV or TSV
41–50 of 95 posts
Re: TextQL: Execute SQL Against CSV or TSV
#42Re: TextQL: Execute SQL Against CSV or TSV
#43Its key difference with TextQL and similar alternatives is it works on streams instead of importing everything in a SQLite then querying it. It seems strange to read a whole file in memory then perform a `SELECT` query on it when you could just run that query while reading the file. That means a much lower memory footprint and faster execution, but on the other hand you can only use the subset of SQL that’s implemented.
Re: TextQL: Execute SQL Against CSV or TSV
#44This is cool. How does it work? I'd guess cleaning the data, and copying to SQL Lite?
Re: TextQL: Execute SQL Against CSV or TSV
#45I use R for this.
Can you show an example of how to use R to read tabular data on stdin (e.g. in a UNIX pipe line) and perform SQL queries?
https://github.com/jeroenjanssens/data-science-at-the-comman...
I was not able to commit its options to long term memory, so I've built a bash script that contains a pipe of commands, including Rio.
Re: TextQL: Execute SQL Against CSV or TSV
#46If you work with CSV a lot, then also check out xsv, "a command line program for indexing, slicing, analyzing, splitting and joining CSV files", from Andrew Gallant (burntsushi of Go and Rust fame): https://github.com/BurntSushi/xsv
Another great tool to wrangle csv file is miller http://johnkerl.org/miller/doc/
Re: TextQL: Execute SQL Against CSV or TSV
#47we should be aiming to kill SQL as a language