File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ Initialization and document saving
6666
6767 conn = Connection()
6868 conn.createDatabase(name = " test_db" )
69- db = self . conn[" test_db" ] # all databases are loaded automatically into the connection and are accessible in this fashion
69+ db = conn[" test_db" ] # all databases are loaded automatically into the connection and are accessible in this fashion
7070 collection = db.createCollection(name = " users" ) # all collections are also loaded automatically
7171 # collection.delete() # self explanatory
7272
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ def __init__(self):
3636 if self .db .hasGraph ('social' ):
3737 raise Exception ("The social graph was already provisioned! remove it first" )
3838
39- self .female = self .db .createCollection ("female" )
40- self .male = self .db .createCollection ("male" )
39+ self .female = self .db .createCollection ('Collection' , "female" )
40+ self .male = self .db .createCollection ('Collection' , "male" )
4141
42- self .relation = self .db .createCollection ("relation" )
42+ self .relation = self .db .createCollection ('Edges' , "relation" )
4343
4444 g = self .db .createGraph ("social" )
4545
You can’t perform that action at this time.
0 commit comments