-
Notifications
You must be signed in to change notification settings - Fork 49
/
.iex.exs
40 lines (35 loc) · 1.19 KB
/
.iex.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
try do
Code.eval_file(".iex.exs", "~")
rescue
Code.LoadError -> :rescued
end
alias Bolt.Sips.{Utils, Protocol, Router, ConnectionSupervisor, Response}
alias Bolt.Sips
Application.put_env(:tzdata, :autoupdate, :disabled)
# default port considered to be: 7687
test_config = [
# url: 'localhost',
url: "bolt://localhost",
basic_auth: [username: "neo4j", password: "test"],
pool_size: 5,
max_overflow: 1,
# retry the request, in case of error - in the example below the retry will
# linearly increase the delay from 150ms following a Fibonacci pattern,
# cap the delay at 15 seconds (the value defined by the default `:timeout`
# parameter) and giving up after 3 attempts
retry_linear_backoff: [delay: 150, factor: 2, tries: 3],
read: [pool_size: 5, pool_overflow: 0],
write: [pool_size: 1, pool_overflow: 0]
]
Mix.shell().info([
:green,
"""
Optional, if needed for development (Sips is the alias for Bolt.Sips):
{:ok, _neo} = Sips.start_link(url: "bolt://neo4j:test@localhost")
conn = Sips.conn()
Examples:
Sips.query!(conn, "UNWIND range(1, 10) AS n RETURN n")
Sips.query!(conn, "RETURN 1 as n")
--- ✄ -------------------------------------------------
"""
])