neo4j-core 5.0.4 → 5.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j-embedded/embedded_session.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 057092ce090c6050a166ba15ca5b7c9d72169c19
|
4
|
+
data.tar.gz: cc80a056a8d85c3364809478c1ea17e8ce67b779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f52fd4c7186f33d7d2a8d0153d95b8650fe1e781ff42f69df82d96919e6c16f89158f669730fb91a9584c4776caee186c65881d9d32a208a61a07f2b1fc624f
|
7
|
+
data.tar.gz: 0820493234c04d3ca57950fb53d88bffce3e00f0a2b1a2b95405e9a748e6ce9e03bf90c109eab50e7cd8b69ebf7799ec2c69634db21d8b741682dcaa9b91906a
|
data/lib/neo4j-core/version.rb
CHANGED
@@ -137,9 +137,11 @@ module Neo4j
|
|
137
137
|
# Remember that you should close the resource iterator.
|
138
138
|
# @param [String] q the cypher query as a String
|
139
139
|
# @return (see #query)
|
140
|
-
def _query(
|
141
|
-
|
142
|
-
|
140
|
+
def _query(query, params = {}, options = {})
|
141
|
+
ActiveSupport::Notifications.instrument('neo4j.cypher_query', context: options[:context] || 'CYPHER', cypher: query, params: params) do
|
142
|
+
@engine ||= Java::OrgNeo4jCypherJavacompat::ExecutionEngine.new(@graph_db)
|
143
|
+
@engine.execute(query, Neo4j::Core::HashWithIndifferentAccess.new(params))
|
144
|
+
end
|
143
145
|
rescue StandardError => e
|
144
146
|
raise Neo4j::Session::CypherError.new(e.message, e.class, 'cypher error')
|
145
147
|
end
|