diff options
Diffstat (limited to 'lib/boltex.ex')
-rw-r--r-- | lib/boltex.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/boltex.ex b/lib/boltex.ex index 9de7d3b..af1a770 100644 --- a/lib/boltex.ex +++ b/lib/boltex.ex @@ -1,13 +1,13 @@ defmodule Boltex do alias Boltex.Bolt - def test(host, port, query) do + def test(host, port, query, params \\ %{}) do {:ok, p} = :gen_tcp.connect host, port, [active: false, mode: :binary, packet: :raw] :ok = Bolt.handshake :gen_tcp, p - :ok = Bolt.init :gen_tcp, p + :ok = Bolt.init :gen_tcp, p, params - Enum.map Bolt.run_statement(:gen_tcp, p, query), &IO.inspect/1 + IO.inspect Bolt.run_statement(:gen_tcp, p, query, params) end end |