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

Deleting a set #11

Open
rogerpueyo opened this issue Feb 27, 2018 · 2 comments
Open

Deleting a set #11

rogerpueyo opened this issue Feb 27, 2018 · 2 comments

Comments

@rogerpueyo
Copy link

The Beatless were, back in the '60s, amazing:

curl localhost:3000/set/add/state-of-the-art/beatless/johnny
ok
$ curl localhost:3000/set/add/state-of-the-art/beatless/paulus
ok
$ curl localhost:3000/set/add/state-of-the-art/beatless/georgia
ok
$ curl localhost:3000/set/add/state-of-the-art/beatless/bringo
ok
$ curl localhost:3000/set/read/state-of-the-art/beatless
["johnny","paulus","georgia","bringo"]

At some point they decided to split, but their work remains in our hearts:

curl localhost:3000/set/add/oldies-but-goldies/60s/beatless
ok

Since they are not part of the state of the art, can The Beatless be removed from the "state-of-the-art" bucket?

@joaomlneto
Copy link
Member

I'm not sure if this is supported by AntidoteDB itself.

You can remove objects that are inside a map; but I don't think you can remove objects/keys from a bucket.
I believe this was planned for future work, but I'm not sure of the status.

Antidote supports a reset operation as an alternative which reverts the objects to their zero-values, but this is not directly accessible through the Antidote TypeScript Client which is how the REST server communicates with Antidote.
I can emulate it if needed (probably with 2 roundtrips), but... :-)

Here is an example of deleting keys in a map using the Antidote Java Client. That's the closest I think that exists.

@joaomlneto
Copy link
Member

AntidoteDB/antidote#325

@joaomlneto joaomlneto removed their assignment Sep 11, 2018
@joaomlneto joaomlneto removed this from the 1.0.0 milestone May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants