示例#1
0
 def __init__(self, *entities):
     # Fudge to allow graph to be passed in so Cypher syntax
     # detection can occur. Can be removed when only 2.0+ is
     # supported.
     if isinstance(entities[0], Graph):
         self.graph, entities = entities[0], entities[1:]
     CypherJob.__init__(self, *_create_query(self.graph, Path(*entities)))
示例#2
0
 def __init__(self, *entities):
     # Fudge to allow graph to be passed in so Cypher syntax
     # detection can occur. Can be removed when only 2.0+ is
     # supported.
     if isinstance(entities[0], Graph):
         self.graph, entities = entities[0], entities[1:]
     CypherJob.__init__(self, *_create_query(self.graph, Path(*entities)))
示例#3
0
 def __init__(self, *entities):
     CypherJob.__init__(self, *_create_query(Path(*entities), unique=True))
示例#4
0
 def __init__(self, *entities):
     CypherJob.__init__(self, *_create_query(Path(*entities)))
示例#5
0
文件: write.py 项目: zrg1993/py2neo
 def __init__(self, *entities):
     CypherJob.__init__(self, *_create_query(Path(*entities), unique=True))
示例#6
0
文件: write.py 项目: zrg1993/py2neo
 def __init__(self, *entities):
     CypherJob.__init__(self, *_create_query(Path(*entities)))