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

Added ability to make constraints optional #400

Merged
merged 1 commit into from Dec 15, 2016

Conversation

Projects
None yet
2 participants
@dusktreader
Contributor

dusktreader commented Dec 1, 2016

Adresses issue #399

If a constraint is optional (has a key,value of optional=True), then
it will only be applied to the table when the table has a field
present to which the constraint applies. Thus, if a constraint is
added for the field 'foo' and that constraint is designated as
optional, then any table checked by the constraint will only have the
constraint applied if the table has a field named 'foo'

Added ability to make constraints optional
  If a constraint is optional (has a key,value of optional=True), then
  it will only be applied to the table when the table has a field
  present to which the constraint applies. Thus, if a constraint is
  added for the field 'foo' and that constraint is designated as
  optional, then any table checked by the constraint will only have the
  constraint applied if the table has a field named 'foo'
@alimanfoo

This comment has been minimized.

Collaborator

alimanfoo commented Dec 1, 2016

@dusktreader

This comment has been minimized.

Contributor

dusktreader commented Dec 12, 2016

@alimanfoo have you had a chance to review this yet?

@alimanfoo

This comment has been minimized.

Collaborator

alimanfoo commented Dec 13, 2016

@alimanfoo alimanfoo merged commit 3928e19 into petl-developers:master Dec 15, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@alimanfoo

This comment has been minimized.

Collaborator

alimanfoo commented Dec 15, 2016

Looks great to me, thank you!

@alimanfoo alimanfoo added this to the v1.2 milestone Dec 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment