bricaud / graphexp

Interactive visualization of the Gremlin graph database with D3.js
Apache License 2.0
784 stars 216 forks source link

Utility function for flushing local db #94

Closed agroebe closed 4 years ago

agroebe commented 4 years ago

This PR provides a utility button for flushing all existing vertices/edges in the db (housed within the already-existing "Edit Graph" panel).

I've been working on a project that runs Gremlin in a Docker container, so in development/testing scenarios I would restart docker-compose to flush the local db which would get annoying when continuously making changes to model objects that would be written to the db. As an alternative we also have a utility script that shells into the running container, connects to the Gremlin server, and then flushes the db.

Something like this could come in handy for these development scenarios I described above, so I thought I would go ahead and PR it.

bricaud commented 4 years ago

Thanks @agroebe . I am merging it. It only works for Gremlin 3.x, I will add a comment about that.