https://github.com/michael-simons/neo4j-importer-jdbc
https://github.com/michael-simons/neo4j-importer-jdbc
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/michael-simons/neo4j-importer-jdbc
- Owner: michael-simons
- License: apache-2.0
- Created: 2023-11-09T15:05:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-25T15:07:19.000Z (over 1 year ago)
- Last Synced: 2025-03-25T16:24:04.260Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 244 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# A naive JDBC importer for Neo4j
* Uses the model files from the web UI (Importer UI)
* Pretends the files in there are tables in the source database
* Imports everything as configured in the model, no support for excluded ids atm
## How to run
This uses the test data itself, for your relational database replace the DuckDB driver with something for your relational database.
Bring up a Neo4j first, i.e. via Docker
```bash
docker run --publish=7474:7474 --publish=7687:7687 \
-e 'NEO4J_AUTH=neo4j/verysecret' \
-e 'NEO4J_ACCEPT_LICENSE_AGREEMENT=yes' \
-d neo4j:5.12-enterprise
```
```
./mvnw -DskipTests clean package
CLASSPATH_PREFIX=~/.m2/repository/org/duckdb/duckdb_jdbc/0.9.1/duckdb_jdbc-0.9.1.jar \
target/assembly/bin/jdbc-importer-app \
--source jdbc:duckdb:`pwd`/src/test/resources/states/test.db \
--address neo4j://localhost:7687 \
--username neo4j \
--password verysecret \
./src/test/resources/states/model.json
```
Credits:
* Northwind dataset used from https://github.com/pthom/northwind_psql