sagastume / boltx Goto Github PK
View Code? Open in Web Editor NEWNeo4j driver for Elixir
License: Apache License 2.0
Neo4j driver for Elixir
License: Apache License 2.0
I am getting this error while querying using Boltx. The same query works if I try it on the Neo4j Browser.
** (DBConnection.ConnectionError) bad return value: {:error, %{code: :failure, message: %MatchError{term: << 101, 91, 100, 102, 81, 101, 107, 111, 109, 111, 42, ...>>}}}
(db_connection 2.6.0) lib/db_connection.ex:1366: DBConnection.handle_common_result/3
(db_connection 2.6.0) lib/db_connection.ex:1607: DBConnection.run/6
(db_connection 2.6.0) lib/db_connection.ex:743: DBConnection.parsed_prepare_execute/5
(db_connection 2.6.0) lib/db_connection.ex:735: DBConnection.prepare_execute/4
(boltx 0.0.5) lib/boltx.ex:149: Boltx.do_query/4
Can you please check this?
I got the following error while running the query.
Boltx.query(Boltx, "MATCH(n) RETURN n")
After debugging more, I found out if the query has MATCH
command in it, then it throws error.
** (DBConnection.ConnectionError) bad return value: {:error, %{code: :failure, message: %FunctionClauseError{module: Boltx.PackStream.Unpacker, function: :unpack, arity: 1, kind: nil, args: nil, clauses: nil}}}
(db_connection 2.4.3) lib/db_connection.ex:1267: DBConnection.handle_common_result/3
(db_connection 2.4.3) lib/db_connection.ex:1508: DBConnection.run/6
(db_connection 2.4.3) lib/db_connection.ex:644: DBConnection.parsed_prepare_execute/5
(db_connection 2.4.3) lib/db_connection.ex:636: DBConnection.prepare_execute/4
(boltx 0.0.4) lib/boltx.ex:149: Boltx.do_query/4
Can you please help me?
Great work here! Thank you for adding support for Neo4j v5!
I've created this library Ex4j recently to add support for better abstractions on Neo4j instead of writing strings manually to retrieve data (it reminds 1990's) as well as being able to wrap the response in a struct similar to ecto.
I intend to replace bolt.sips
with your driver that seems better and support the newer versions.
I've added Boltx to my Supervision tree.
Config:
config :boltx, Bolt,
uri: System.get_env("NEO4J_HOST") || "bolt://localhost:7687",
auth: [username: "neo4j", password: System.get_env("NEO4J_PASSWORD") || "password"],
user_agent: "boltxTest/1",
pool_size: 15,
max_overflow: 3,
prefix: :default
application.ex
%{
id: Boltx,
start: {Boltx, :start_link, Application.get_env(:boltx, Bolt)}
}
While starting the server, I got the following error.
** (Mix) Could not start application accounts_service: AccountsService.Application.start(:normal, []) returned an error: shutdown: failed to start child: Boltx
** (EXIT) an exception was raised:
** (UndefinedFunctionError) function Boltx.start_link/6 is undefined or private
(boltx 0.0.3) Boltx.start_link({:uri, "bolt://localhost:7687"}, {:auth, [username: "neo4j", password: "password"]}, {:user_agent, "boltxTest/1"}, {:pool_size, 15}, {:max_overflow, 3}, {:prefix, :default})
(stdlib 3.17.2) supervisor.erl:414: :supervisor.do_start_child_i/3
(stdlib 3.17.2) supervisor.erl:400: :supervisor.do_start_child/2
(stdlib 3.17.2) supervisor.erl:384: anonymous fn/3 in :supervisor.start_children/2
(stdlib 3.17.2) supervisor.erl:1250: :supervisor.children_map/4
(stdlib 3.17.2) supervisor.erl:350: :supervisor.init_children/2
(stdlib 3.17.2) gen_server.erl:423: :gen_server.init_it/2
(stdlib 3.17.2) gen_server.erl:390: :gen_server.init_it/6
(stdlib 3.17.2) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Can you please check this, and suggest a better way to add Boltx to the application supervisor?
First of all, thank you for your great work on boltx.
In my organization EnBW we are working on a project where we use Elixir and Neo4j. This week we switched to boltx.
We have been thinking about how we can support the development of boltx (e.g. contributing or co-maintaining). Do you have any thoughts on this?
Kind regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.