Skip to content

Add support for more Postgres Create Table options #336

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

Merged
merged 1 commit into from
Sep 16, 2016

Conversation

wrobstory
Copy link

Hi JSqlParser maintainers!

I needed to be able to support more Postgres Create Table syntax options. Specifically, these cases:

CREATE TABLE foo (col1 integer CHECK (col1 > 100));
CREATE TABLE foo (col1 integer REFERENCES bar.col1);
CREATE TABLE foo (col1 integer CONSTRAINT no_null NOT NULL);
CREATE TABLE foo (col1 integer) WITH (fillfactor=70);
CREATE TABLE foo (col1 integer, EXCLUDE WHERE (col1 > 100));

This PR adds support + tests for these cases.

Thanks again for the great library!

@coveralls
Copy link

coveralls commented Sep 9, 2016

Coverage Status

Coverage increased (+0.01%) to 84.136% when pulling 04c56f2 on wrobstory:pg-create-table into fefe4ac on JSQLParser:master.

@wumpz wumpz merged commit 8777a8e into JSQLParser:master Sep 16, 2016
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