Skip to content

feat(to): add table option#3572

Merged
jqnatividad merged 3 commits into
masterfrom
3568-to-table-option
Mar 4, 2026
Merged

feat(to): add table option#3572
jqnatividad merged 3 commits into
masterfrom
3568-to-table-option

Conversation

@jqnatividad

Copy link
Copy Markdown
Collaborator

resolves #3568

jqnatividad and others added 3 commits March 3, 2026 22:09
Closes #3568. Allows users to specify a custom table name when converting
CSV to postgres or sqlite, overriding the default name derived from the
input filename (which defaults to "stdin" when reading from stdin).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Check `arg_input.len() != 1` instead of `> 1` so empty input is
  rejected rather than silently ignored
- Cap table name length at 63 characters (PostgreSQL identifier limit)
- Preserve original file extension when copying to temp dir instead of
  always using .csv, so delimiter sniffing by extension still works
  for .tsv/.ssv files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…action

- Change comment from "63 bytes" to "63 characters" to match the error
  message (functionally equivalent since validation restricts to ASCII)
- Simplify file extension extraction using map_or instead of
  unwrap_or_default + to_string_lossy + if-else block

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jqnatividad jqnatividad merged commit 5befe68 into master Mar 4, 2026
16 of 17 checks passed
@jqnatividad jqnatividad deleted the 3568-to-table-option branch March 4, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request] allow qsv to sqlite from stdin to specifiy target table name in addition to schema

1 participant