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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a37e37a07f6054aaeac7358caded883bcfd4bb5f
4
- data.tar.gz: e7ca9a6f7dbbe383e84d9f70f886dd8e7acc21a7
3
+ metadata.gz: 057092ce090c6050a166ba15ca5b7c9d72169c19
4
+ data.tar.gz: cc80a056a8d85c3364809478c1ea17e8ce67b779
5
5
  SHA512:
6
- metadata.gz: 8f78d21ff52527fa33e748840bb4f223dde573453ebf5e7929b891d4481a31d254c362129f028c83787a2c81c7ff98022d38f15ab369a4fec51ed41a8bb48f65
7
- data.tar.gz: 6ad3a8a9fab3e2f6b06c20995fedccdd97c1fd0af63d9eda7fd59dfcc01914193618a9890d534785fb54be2773ccb1b044523b931b1d93aab458d59585c59002
6
+ metadata.gz: 0f52fd4c7186f33d7d2a8d0153d95b8650fe1e781ff42f69df82d96919e6c16f89158f669730fb91a9584c4776caee186c65881d9d32a208a61a07f2b1fc624f
7
+ data.tar.gz: 0820493234c04d3ca57950fb53d88bffce3e00f0a2b1a2b95405e9a748e6ce9e03bf90c109eab50e7cd8b69ebf7799ec2c69634db21d8b741682dcaa9b91906a
@@ -1,5 +1,5 @@
1
1
  module Neo4j
2
2
  module Core
3
- VERSION = '5.0.4'
3
+ VERSION = '5.0.5'
4
4
  end
5
5
  end
@@ -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(q, params = {}, options = {})
141
- @engine ||= Java::OrgNeo4jCypherJavacompat::ExecutionEngine.new(@graph_db)
142
- @engine.execute(q, Neo4j::Core::HashWithIndifferentAccess.new(params))
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.4
4
+ version: 5.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Chris Grigg, Brian Underwood