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

feat(spanner/spannertest): support Not Null constraint #3491

Merged
merged 6 commits into from Jan 5, 2021

Conversation

@sryoya
Copy link
Contributor

@sryoya sryoya commented Dec 25, 2020

About

Fixes #3490

Note

  • This PR doesn't include a test for the newly-added logics because it seems there are no test for unhappy paths in the related functions. Let me know if I need to cover them by test.
  • The "alterColumn" function also should have some checks using Not Null, but, I've not done that in this PR. Assuming how the library users use this library, I suppose the check in writing a record is more prioritized.
@skuruppu skuruppu requested review from dsymonds and removed request for skuruppu Dec 31, 2020
Copy link
Contributor

@dsymonds dsymonds left a comment

Looks good for the most part. A couple of extra bits that should be done in this same change.

No need to worry about a test; I assume you've exercised this with your own code already?

Loading

spanner/spannertest/db.go Outdated Show resolved Hide resolved
Loading
spanner/spannertest/db.go Show resolved Hide resolved
Loading
spanner/spannertest/db.go Outdated Show resolved Hide resolved
Loading
@sryoya
Copy link
Contributor Author

@sryoya sryoya commented Jan 4, 2021

Thank you for the review!

I assume you've exercised this with your own code already?

Sure, I confirmed that inserting null into Not Null column was declined.

Loading

@sryoya sryoya requested review from dsymonds and removed request for Jan 4, 2021
@dsymonds dsymonds merged commit c36aa07 into googleapis:master Jan 5, 2021
3 checks passed
Loading
@sryoya sryoya deleted the add_not_null_constraints branch Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants