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

Returning a count from addN (#833) #834

Open
wants to merge 2 commits into
base: master
from

Conversation

@mwatts15
Copy link
Contributor

@mwatts15 mwatts15 commented Jun 18, 2018

No description provided.

@RDFLib RDFLib deleted a comment from coveralls Oct 27, 2018
import warnings

from hashlib import md5

This comment has been minimized.

@joernhees

joernhees Oct 28, 2018
Member

please keep commits concise, don't change random other things...

This comment has been minimized.

@mwatts15

mwatts15 Oct 30, 2018
Author Contributor

Fair enough. They are unused though.

)
if triples_stored is None:
return -1
return triples_stored

This comment has been minimized.

@joernhees

joernhees Oct 28, 2018
Member

hmm, this won't really work without also at least updating the store interface in store.py

also i'd prefer a simple return in front of the dispatch to store... i don't see how -1 is better than simply returning None

This comment has been minimized.

@mwatts15

mwatts15 Oct 30, 2018
Author Contributor

You're correct. I don't actually recall why I went with -1.
The intention is to make it optional. I have added a flag member variable to indicate whether addN returns a count on a store I maintain, but I didn't see a reason to make it official interface.

@nicholascar
Copy link
Member

@nicholascar nicholascar commented Mar 18, 2020

Open/Close Travis

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.

None yet

4 participants
You can’t perform that action at this time.