Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added helper func to check if err is PK too long error #492

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wahabmk
Copy link

@wahabmk wahabmk commented Apr 15, 2021

Signed-off-by: Wahab Ali wahabalimk@gmail.com

Reason for the change
Ease of use for users consuming go-rethink API.

Description
This PR adds a helper function that checks if error returned by RethinkDB is a Primary Key too long error. RethinkDB has a unique limitation on length of PK, so I think having this helper useful for consumers of go-rethink API, especially if they are new to RethinkDB.

Code examples
N/A

Checklist

References
N/A

Signed-off-by: Wahab Ali <wahabalimk@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant