Skip to content

Please add an api to check if collection exists. #146

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

Closed
rajeshdalai opened this issue Sep 5, 2017 · 4 comments
Closed

Please add an api to check if collection exists. #146

rajeshdalai opened this issue Sep 5, 2017 · 4 comments
Assignees
Milestone

Comments

@rajeshdalai
Copy link

No description provided.

@mvollmary mvollmary added this to the 4.2.5 milestone Sep 5, 2017
@mvollmary mvollmary self-assigned this Sep 5, 2017
mvollmary pushed a commit that referenced this issue Sep 5, 2017
@mvollmary
Copy link

@rajeshdalai thanks for your feedback. I added a method exists() in ArangoCollection. You can already test it with version `4.2.5-SNAPSHOT.

@rajeshdalai
Copy link
Author

rajeshdalai commented Sep 14, 2017

Is there any efficient method to do this instead of iterating through the list of all collection names?

@mvollmary
Copy link

@rajeshdalai we could call ArangoCollection.getInfo() which throws an expection if the collection does not exists and return exists = false in that case.

@mvollmary
Copy link

I released version 4.2.5

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