コード例 #1
0
ファイル: write.py プロジェクト: bartaelterman/snippets
 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
ファイル: write.py プロジェクト: EricEllett/py2neo
 def __init__(self, *entities):
     CypherJob.__init__(self, *_create_query(Path(*entities), unique=True))
コード例 #4
0
ファイル: write.py プロジェクト: EricEllett/py2neo
 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)))