quadstorejs / quadstore

A LevelDB-backed graph database for JS runtimes (Node.js, Deno, browsers, ...) supporting SPARQL queries and the RDF/JS interface.
https://github.com/quadstorejs/quadstore
MIT License
203 stars 14 forks source link

Add delExisting and putNew #33

Closed jmatsushita closed 5 years ago

jmatsushita commented 7 years ago

From ##32

Also it might be useful to have a delExisting method like in LD-PATCH and possibly a putNew (like addNew) method?

jacoscaz commented 7 years ago

To clarify:

Another way to do this could be through a dedicated opts like opts.throwIf(Not)Exist.

jmatsushita commented 7 years ago

Yes that's what I meant. Dedicated opts would indeed work too!

jacoscaz commented 7 years ago

What about stream? Would this need to support streams (via .on('error', (DuplicateQuadError err) => {}))?

jacoscaz commented 6 years ago

@jmatsushita are you still interested in this feature?

jacoscaz commented 5 years ago

Cleaning up old issues, will reopen a new one if needed.