A simple tool to export a code property graph to a neo4j database.
The application requires Java 11 or higher.
Build using Gradle
./gradlew installDist
./build/install/cpg-vis-neo4j/bin/cpg-vis-neo4j [--host=<host>] [--port=<port>]
[--user=<neo4jUsername>] [--password=<neo4jPassword>]
[--includes-file=<includesFile>] [--save-depth=<depth>]
<files>...
<files>... The paths to analyze. If module support is
enabled, the paths will be looked at if they
contain modules
--host=<host> Set the host of the neo4j Database (default:
localhost).
--load-includes Enable TranslationConfiguration option loadIncludes
--includes-file=<includesFile>
Load includes from file
--password=<neo4jPassword>
Neo4j password (default: password
--port=<port> Set the port of the neo4j Database (default: 7687).
--save-depth=<depth> Performance optimisation: Limit recursion depth
form neo4j OGM when leaving the AST. -1
(default) means no limit is used.
--user=<neo4jUsername> Neo4j user name (default: neo4j)
You can provide a list of paths of arbitrary length that can contain both file paths and directory paths.
-
While importing sufficiently large projects with the parameter
--save-depth=-1
ajava.lang.StackOverflowError
may occur.- This error could be solved by increasing the stack size with the JavaVM option:
-Xss4m
- This error could be solved by increasing the stack size with the JavaVM option:
-
While pushing a constant value larger than 2^63 - 1 a
java.lang.IllegalArgumentException
occurs.