Skip to content

Instantly share code, notes, and snippets.

@kinow
Last active November 12, 2021 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinow/afee6282c97edf090ee1b1d79b20453f to your computer and use it in GitHub Desktop.
Save kinow/afee6282c97edf090ee1b1d79b20453f to your computer and use it in GitHub Desktop.
neo4j
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