dinedal / textql

Execute SQL against structured text like CSV or TSV
MIT License
9.05k stars 300 forks source link

Remove sqlite "import will not accept stdin" from readme, it does #133

Closed SvanteRichter closed 2 years ago

SvanteRichter commented 3 years ago

sqlite will happily accept stdin if you tell it .import /dev/stdin {tablename}. For example this works just fine:

gzip -dc icons.csv.gz | sqlite3 ':memory:' -csv '.import /dev/stdin data' '.output /dev/stdout' '.headers on' "SELECT name, keywords from data where name = 'chart-area'" | gzip - > icons2.csv.gz