-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Official Neo4j Driver Sessions (remove py2neo) #1205
Conversation
… become available
Github Tests failing. Investigating now. |
For reference, py2neo's queries: // merge event
UNWIND $data AS r
MERGE (_:SCAN {id:r['id']})
SET _ += r
SET _:SCAN
RETURN id(_)
// {'data': [{'id': 'SCAN:2a510ba2490ca8e50c2a681a64068e785275fdd0', 'data': 'grievous_ross (SCAN:2a510ba2490ca8e50c2a681a64068e785275fdd0)', 'scope_distance': 0, 'scan': 'SCAN:2a510ba2490ca8e50c2a681a64068e785275fdd0', 'source': 'SCAN:2a510ba2490ca8e50c2a681a64068e785275fdd0', 'tags': ['in-scope'], 'module_sequence': 'TARGET'}]})
// merge relationship
UNWIND $data AS r
MATCH (a) WHERE id(a) = r[0]
MATCH (b) WHERE id(b) = r[2]
MERGE (a)-[_:TARGET]->(b)
SET _ += r[1]
RETURN id(_)
// {'data': [[7, {'timestamp': datetime.datetime(2024, 3, 21, 20, 49, 8, 68850)}, 7]]}) |
Sweet. Thanks! It is in-line with what I have. It seems that py2neo and I looked at the same Neo4j Documentation.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1205 +/- ##
=====================================
- Coverage 92% 92% -0%
=====================================
Files 312 313 +1
Lines 19825 19907 +82
=====================================
+ Hits 18215 18280 +65
- Misses 1610 1627 +17 ☔ View full report in Codecov by Sentry. |
Description:
Ticket/Issue
To Review:
-om neo4j
) on a website that multiple modules would emit onbbot -t blacklanternsecurity.com -f subdomain-enum -rf passive -om neo4j
Notes:
/db/neo4j.py:__init__
to force the deletion of all previous records stored in the neo4j database before commiting new nodes & relationships to neo4j.