Skip to content

Commit

Permalink
sqlp: refer to qsv rename _all_generic command to process CSVs wi…
Browse files Browse the repository at this point in the history
…th no headers

also add link to where OutputMode was shamelessly copied from
[skip ci]
  • Loading branch information
jqnatividad committed Jun 8, 2023
1 parent 45cdab4 commit 95378f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cmd/sqlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ sqlp arguments:
be used.
If the input are snappy compressed file(s), it will be
decompressed automatically.
Column headers are required. Use 'qsv rename _all_generic --no-headers'
to add generic column names (_col_N) to a CSV with no headers.
sql The SQL query to run. Each input file will be available as a table
named after the file name (without the extension), or as "_t_N"
where N is the 1-based index.
Expand Down Expand Up @@ -95,6 +98,8 @@ enum OutputMode {
Arrow,
}

// shamelessly copied from
// https://github.com/pola-rs/polars/blob/main/polars-cli/src/main.rs
impl OutputMode {
fn execute_query(
&self,
Expand Down

0 comments on commit 95378f8

Please sign in to comment.