I want to check if an archive is already present in ArangoDB-PHP.
$ collectionHandler = new collectionHandler ($ ARANGO); $ UserCollection = new archive (); $ UserCollection- & gt; SetName ('_profile');
Because I get the following error:
Server error: 1207: Can not create archive: Can not create duplicate name archive: Duplicate name
How can I check that the archive already exists with ArangoDB-PHP?
i should try / use the cache statement
try $ $ CollectionHandler = New CollectionHandler ($ ARANGO); $ UserCollection = new archive (); $ UserCollection- & gt; SetName ('_profile'); $ CollectionHandler- & gt; Create ($ userCollection); } Hold (server option $ E) {// do something}
Comments
Post a Comment