File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
demo/src/main/java/org/example Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 1616
1717package org .example ;
1818
19- import com .arangodb .ArangoDB ;
20- import com .arangodb .ArangoDatabase ;
2119import com .arangodb .tinkerpop .gremlin .structure .ArangoDBGraph ;
2220import com .arangodb .tinkerpop .gremlin .utils .ArangoDBConfigurationBuilder ;
2321import org .apache .commons .configuration2 .Configuration ;
@@ -28,26 +26,13 @@ public class Main {
2826
2927 public static void main (String [] args ) {
3028
31- //region cleanup data from previous runs
32- ArangoDB adb = new ArangoDB .Builder ()
33- .host ("127.0.0.1" , 8529 )
34- .user ("root" )
35- .password ("test" )
36- .build ();
37- ArangoDatabase db = adb .db (DB_NAME );
38- if (db .exists ()) {
39- db .drop ();
40- }
41- db .create ();
42- adb .shutdown ();
43- //endregion
44-
4529 // create Tinkerpop Graph backed by ArangoDB
4630 Configuration conf = new ArangoDBConfigurationBuilder ()
4731 .hosts ("127.0.0.1:8529" )
4832 .user ("root" )
4933 .password ("test" )
5034 .database (DB_NAME )
35+ .enableDataDefinition (true )
5136 .build ();
5237 ArangoDBGraph g = ArangoDBGraph .open (conf );
5338
You can’t perform that action at this time.
0 commit comments