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

Parse KEY statements within CREATE TABLE statements #219

Merged
merged 5 commits into from
Jan 5, 2024

Conversation

cfhowes
Copy link
Contributor

@cfhowes cfhowes commented Jan 3, 2024

I have DDL with KEY statements as part of the CREATE TABLE statement. This is a seemingly valid way to indicate an index in SQL. I created a test case with a sample of the SQL I am working with, and the desired listing of an index.

I do not know the parser grammar all that well - it's possible that while the code works and passes the test cases that my implementation is not technically correct. Please give me pointers and I'll fix it up.

@cfhowes
Copy link
Contributor Author

cfhowes commented Jan 3, 2024

Looks like (after re-reading the contributing guidelines) that I also will need to update README.md and CHANGELOG.txt. I'll do this if I receive feedback that I'm on the right track here.

@dmaresma
Copy link
Contributor

dmaresma commented Jan 4, 2024

Hi, only update the CHANGELOG, the bash script (build.sh) 'll update the README.md, please can I ask you to run the flake8 .\simple_ddl_parser\ and fix the lint .
Thanks for your contribution.

@cfhowes
Copy link
Contributor Author

cfhowes commented Jan 5, 2024

Thanks! Apologies for missing the flake8 check initially. Should be updated now.

@xnuinside
Copy link
Owner

@cfhowes merge conflict with main branch - need to resolve it. Please, get changes from main branch and re-run tests on your local machine to re-generate parsertab.py with your changes

Copy link
Owner

@xnuinside xnuinside left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cfhowes thanks for your PR :) awesome! I will release version with changes little bit later today

@xnuinside xnuinside merged commit e60c7ee into xnuinside:main Jan 5, 2024
8 checks passed
@cfhowes cfhowes deleted the fix_key_parsing branch January 5, 2024 18:56
@xnuinside
Copy link
Owner

@cfhowes released in version 0.31.3 https://pypi.org/project/simple-ddl-parser/

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.

3 participants