Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exit-status option? #116

Open
abathur opened this issue Jul 20, 2019 · 0 comments
Open

exit-status option? #116

abathur opened this issue Jul 20, 2019 · 0 comments

Comments

@abathur
Copy link

abathur commented Jul 20, 2019

Not urgent, but I was writing a query to check a CSV for duplicate rows and realized it might be nice to have a flag for returning an exit status. In my specific case an option to return a status for an empty result set would be fine.

A more-flexible implementation might be an option to create the table with a pre-supplied schema before trying to load the rows. In that case, I could add a schema that prohibits the duplicate rows, and (I imagine) the integrity errors would trigger to return an exit status as it already does for malformed queries.

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

No branches or pull requests

1 participant