Last active
November 12, 2021 22:15
-
-
Save kinow/afee6282c97edf090ee1b1d79b20453f to your computer and use it in GitHub Desktop.
neo4j
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Pkg | |
Pkg.activate(".") | |
Pkg.instantiate() | |
using Neo4jBolt | |
using Neo4jBolt | |
driver = Neo4jBoltDriver("bolt://localhost:7687", auth=("neo4j", "s3cr3t")) | |
for i in range(0, length=1000) | |
session(driver) do sess | |
result = run(sess, "UNWIND(RANGE(1, 10)) AS z RETURN z") | |
for record in result | |
println(record["z"]) | |
end | |
end | |
end | |
using Neo4jBolt | |
driver = Neo4jBoltDriver("bolt://localhost:7687", auth=("neo4j", "s3cr3t")) | |
session(driver) do sess | |
begin_transaction(sess) do tx | |
for i in range(0, length=1000) | |
result = run(sess, "UNWIND(RANGE(1, 10)) AS z RETURN z") | |
for record in result | |
println(record["z"]) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment