Skip to content

Commit e6af09a

Browse files
authored
Add language injections for official Python driver (#82)
1 parent 536b4a6 commit e6af09a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

graph-database-plugin/src/main/resources/pythonInjections.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,30 @@
1313
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("run", 0, "py2neo.cypher.core.CypherResource"))]]></place>
1414
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("stream", 0, "py2neo.cypher.core.CypherResource"))]]></place>
1515
</injection>
16+
17+
<injection language="Cypher" injector-id="python">
18+
<display-name>Neo4j - neo4j Driver.class (neo4j.Driver)</display-name>
19+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("execute_query", 0, "neo4j._sync.driver.Driver"))]]></place>
20+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("execute_query", 0, "neo4j._async.driver.AsyncDriver"))]]></place>
21+
</injection>
22+
23+
<injection language="Cypher" injector-id="python">
24+
<display-name>Neo4j - neo4j Driver.Session.class (neo4j.Session)</display-name>
25+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("run", 0, "neo4j.work.simple.Session"))]]></place>
26+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("run", 0, "neo4j._sync.work.session.Session"))]]></place>
27+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("run", 0, "neo4j._async.work.session.AsyncSession"))]]></place>
28+
</injection>
29+
30+
<injection language="Cypher" injector-id="python">
31+
<display-name>Neo4j - neo4j Driver.Session.class (neo4j.Transaction)</display-name>
32+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("run", 0, "neo4j.work.transaction.Transaction"))]]></place>
33+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("run", 0, "neo4j._sync.work.transaction.TransactionBase"))]]></place>
34+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("run", 0, "neo4j._async.work.transaction.AsyncTransactionBase"))]]></place>
35+
</injection>
36+
37+
<injection language="Cypher" injector-id="python">
38+
<display-name>Neo4j - neo4j Query.class (neo4j.Query)</display-name>
39+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("Query", 0, "neo4j.work.simple.Query"))]]></place>
40+
<place><![CDATA[pyLiteralExpression().and(pyMethodArgument("Query", 0, "neo4j._work.query.Query"))]]></place>
41+
</injection>
1642
</component>

0 commit comments

Comments
 (0)