Closed jmatsushita closed 7 years ago
@jmatsushita which of the following would you like to see implemented?
store.query().del()
store.del(store.query().toArray())
?I feel option n. 2 is cleaner and almost identical to the .remove()
method from the RdfStore
class, so I would be inclined to go with that. Actually, option number 2. should already work. I need to write tests for it.
I edited this comment a bunch of times as writing it made me look at the API from a different perspective.
Ah yes, I was thinking 1 because it looks nicer but I can live with 2 especially if its close to the RDFJS API!
@jmatsushita we've incorporated your suggestions within a bigger refactor of the whole API as we were not 100% happy about it and wanted to reach a more stable version of it before starting to use node-quadstore internally. You can now do either of the following:
store.query().del((err) => {})
store.delStream(store.query().getStream(), (err) => {})
Closing this one, bugs should go into dedicated issues.
From #32