Comments (9)
Awesome, thank you! I’ll post here a notification when I have the code synced with the latest db_connection
from bolt_sips.
@nazarsh - db_connection v1.1.3
is a maintenance release, the code from db_connection's master branch is different, and bolt_sips
is using the master version. Right now, my master branch is a little behind the db_connection, especially after the removal of the external pool support from db_c.. and there are new callback I need to add, probably this weekend. But no, unfortunately I can't publish a new hex yet, sorry. Thank you for keeping an eye on this 👍
from bolt_sips.
Hi @clintgibler - thank you for your kind feedback. The db_connection is already integrated and available in the master, you can use it right away. However, the db_connection we're using is also in development, and we cannot publish de driver to Hex.pm until the db_connection will also be published. We will publish the stable
version as soon as db_connection is ready. Meanwhile the focus is on following the db_connection master branch, and on adding the bolt+routing
support, but the latter is a different topic. HTH - Florin
from bolt_sips.
@florinpatrascu Thanks for the quick response! Ah ok, that makes sense, thanks for the clarification.
I'm going to be playing with bolt_sips
a bit over the next few weeks, so you may hear from me again :)
By the way, you may want to add a note in the README that one should use Elixir 1.6+ with this library. I was following the MoviesElixirPhoenix example using Elixir 1.5, and when I tried to do the following:
iex> {:ok, pid} = Bolt.Sips.start_link(url: "localhost")
I received the following error:
** (Mix) Could not start application movies_elixir_phoenix:
MoviesElixirPhoenix.start(:normal, []) returned an error: shutdown: failed to start child: Bolt.Sips
** (EXIT) an exception was raised:
** (ArgumentError) supervisors expect the child to be a module, a {module, arg}
tuple or a map with the child specification, got:
{:bolt_sips_pool, {:poolboy, :start_link, [[name: {:local, :bolt_sips_pool},
worker_module: Bolt.Sips.Connection, size: 10, max_overflow: 5, strategy: :fifo],
[socket: :gen_tcp, retry_linear_backoff: [delay: 150, factor: 2, tries: 3],
with_etls: false, ssl: false, timeout: 15000, hostname: 'localhost', port: 7687,
pool_size: 10, max_overflow: 5]]}, :permanent, 5000, :worker, [:poolboy]}
(elixir) lib/supervisor.ex:609: Supervisor.init_child/1
(elixir) lib/enum.ex:1255: Enum."-map/2-lists^map/1-0-"/2
(elixir) lib/enum.ex:1255: Enum."-map/2-lists^map/1-0-"/2
(elixir) lib/supervisor.ex:581: Supervisor.init/2
(stdlib) supervisor.erl:294: :supervisor.init/1
(stdlib) gen_server.erl:328: :gen_server.init_it/6
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3
Changing to Elixir 1.6 solved the issue.
Feel free to close this issue, thanks again for your help!
from bolt_sips.
Ahh, right. Good catch! I’ll open an issue on the movies demo, and will close this one after that. Thanks again!
from bolt_sips.
No problem, thanks for your help!
from bolt_sips.
Hi @florinpatrascu - it looks like db_connection
is published and is a v1.1.3
. Does that mean you can publish v0.5
?
Otherwise I was getting
> In deps/bolt_sips/mix.exs:
{:db_connection, [env: :prod, git: "https://github.com/elixir-ecto/db_connection.git", manager: :mix]}
> In deps/ecto/mix.exs:
{:db_connection, "~> 1.1", [env: :prod, hex: "db_connection", repo: "hexpm", optional: true]}
until I changed the db_connection
to 1.1
as you previously had it.
Looking forward to using the lib and thanks for it!
from bolt_sips.
Thanks @florinpatrascu ! I am happy to help test any of the changes you'd make since I am pretty much setting up from scratch.
from bolt_sips.
https://hex.pm/packages/bolt_sips/1.0.0-rc2
from bolt_sips.
Related Issues (20)
- Config field for `timeout` not reflected in query timeouts HOT 12
- Just need some clarity about Bolt.Sips.conn
- Connection difficulty -- Bolt.Sips.Internals.Error Port #Port<0.n> is closed HOT 7
- Connection loses after a while: ** (Bolt.Sips.Exception) Port {:sslsocket, {:gen_tcp, #Port<0.25>, :tls_connection, :undefined}, [#PID<0.2789.0>, #PID<0.2786.0>]} is closed HOT 5
- Is routing mode enabled with neo4j+s protocol? HOT 6
- Prepared statements for queries when not possible to use parameters HOT 3
- Looking for new maintainers HOT 10
- Neo4j version 4 support HOT 5
- Going forward HOT 5
- Consistent bad connection state after malformed query: "... You need to\n`ACK_FAILURE` or `RESET` ..." HOT 7
- Road to neo4j 4 and streaming HOT 5
- Bolt.Sips.Protocol disconnected: ** (DBConnection.ConnectionError) HOT 13
- Unable to connect when using authentication HOT 14
- No write operations are allowed directly on this database. Writes must pass through the leader. The role of this server is: FOLLOWER HOT 3
- Hiding credentials in `Bolt.Sips.info`? HOT 3
- Request: guidance on parameterized queries HOT 4
- Response.profile is empty with a query with "PROFILE"
- (Bolt.Sips.Exception) unable to encode value: -128 HOT 1
- Outgoing SSL connection hangs, cannot be dropped and re-established HOT 2
- Feature request: auto reconnect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bolt_sips.