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

feature request : CREATE TABLE IF NOT EXISTS #77

Closed
kpym opened this issue Jun 20, 2022 · 2 comments
Closed

feature request : CREATE TABLE IF NOT EXISTS #77

kpym opened this issue Jun 20, 2022 · 2 comments

Comments

@kpym
Copy link

kpym commented Jun 20, 2022

I wanted to replace sqlite with csvq in a tool where sqlite is overkill and it is better to keep pure go.
This tool used CREATE TABLE IF NOT EXISTS. I know I can check for the existence of the file before calling CREATE TABLE but it will be easier if we stick to SQL and besides CREATE TABLE IF NOT EXISTS can also send an error if the existing file has a different format than the requested one.

mithrandie added a commit that referenced this issue Jun 25, 2022
- Add the IF NOT EXISTS clause to the syntax of the CREATE TABLE statement. ([GitHub #77](#77))
@mithrandie
Copy link
Owner

This feature has been included in version 1.17.4.

@kpym
Copy link
Author

kpym commented Jun 25, 2022

Thanks @mithrandie 🙏
I am impressed by your responsiveness.

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

2 participants