neo4j-core 7.0.0.alpha.4 → 7.0.0.alpha.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rake +17 -0
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j/core/cypher_session/adaptors.rb +6 -0
- data/lib/neo4j/core/label.rb +0 -14
- metadata +8 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1728bfcfd545073b67f14d45c48e0ca3ac9eaade
|
4
|
+
data.tar.gz: 27ed5dfacf8de9141a8c8876b0475b169b155a52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1269aa5d0acb981a2585fb2fa7a5fc3cafc4e6c707f94b59442193475be916c71f69b8ecf5e377d3819086c3c9c3065d20db20acb9a73db541e1ded7869fb4e0
|
7
|
+
data.tar.gz: c050e94743d65a7abf92eafb1919947e54dfa8606047ec1ac12a5b596efa57a8f6d2940646b01c1191493baf68c0b99b1acf9a9d9b7eff019a667a738ab9e6d5
|
data/bin/rake
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
#
|
4
|
+
# This file was generated by Bundler.
|
5
|
+
#
|
6
|
+
# The application 'rake' is installed as part of a gem, and
|
7
|
+
# this file is here to facilitate running it.
|
8
|
+
#
|
9
|
+
|
10
|
+
require 'pathname'
|
11
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',
|
12
|
+
Pathname.new(__FILE__).realpath)
|
13
|
+
|
14
|
+
require 'rubygems'
|
15
|
+
require 'bundler/setup'
|
16
|
+
|
17
|
+
load Gem.bin_path('rake', 'rake')
|
data/lib/neo4j-core/version.rb
CHANGED
@@ -31,6 +31,10 @@ ERROR
|
|
31
31
|
case code
|
32
32
|
when /(ConstraintValidationFailed|ConstraintViolation)/
|
33
33
|
SchemaErrors::ConstraintValidationFailedError
|
34
|
+
when /IndexAlreadyExists/
|
35
|
+
SchemaErrors::IndexAlreadyExistsError
|
36
|
+
when /ConstraintAlreadyExists/ # ?????
|
37
|
+
SchemaErrors::ConstraintAlreadyExistsError
|
34
38
|
else
|
35
39
|
CypherError
|
36
40
|
end
|
@@ -38,6 +42,8 @@ ERROR
|
|
38
42
|
end
|
39
43
|
module SchemaErrors
|
40
44
|
class ConstraintValidationFailedError < CypherError; end
|
45
|
+
class ConstraintAlreadyExistsError < CypherError; end
|
46
|
+
class IndexAlreadyExistsError < CypherError; end
|
41
47
|
end
|
42
48
|
class ConnectionFailedError < StandardError; end
|
43
49
|
|
data/lib/neo4j/core/label.rb
CHANGED
@@ -155,22 +155,8 @@ module Neo4j
|
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
158
|
-
# Schema queries can run separately from other queries, but they should
|
159
|
-
# be mutually exclusive to each other or we get locking errors
|
160
|
-
# SCHEMA_QUERY_SEMAPHORE = Mutex.new
|
161
|
-
|
162
|
-
# If there is a transaction going on, this could block
|
163
|
-
# So we run in a thread and it will go through at the next opportunity
|
164
158
|
def schema_query(cypher)
|
165
|
-
# Thread.new do
|
166
|
-
# SCHEMA_QUERY_SEMAPHORE.synchronize do
|
167
|
-
|
168
159
|
@session.transaction { |tx| tx.query(cypher, {}) }
|
169
|
-
rescue Exception => e # rubocop:disable Lint/RescueException
|
170
|
-
puts 'ERROR during schema query:', e.message, e.backtrace
|
171
|
-
|
172
|
-
# end
|
173
|
-
# end.tap { |thread| schema_threads << thread }
|
174
160
|
end
|
175
161
|
|
176
162
|
def validate_index_options!(options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo4j-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.0.alpha.
|
4
|
+
version: 7.0.0.alpha.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andreas Ronge, Chris Grigg, Brian Underwood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08
|
11
|
+
date: 2016-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -220,8 +220,10 @@ dependencies:
|
|
220
220
|
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: '0'
|
223
|
-
description:
|
224
|
-
Neo4j
|
223
|
+
description: 'Neo4j-core provides classes and methods to work with the graph database
|
224
|
+
Neo4j.
|
225
|
+
|
226
|
+
'
|
225
227
|
email: andreas.ronge@gmail.com, chris@subvertallmedia.com, brian@brian-underwood.codes
|
226
228
|
executables: []
|
227
229
|
extensions: []
|
@@ -230,6 +232,7 @@ extra_rdoc_files:
|
|
230
232
|
files:
|
231
233
|
- Gemfile
|
232
234
|
- README.md
|
235
|
+
- bin/rake
|
233
236
|
- lib/ext/kernel.rb
|
234
237
|
- lib/neo4j-core.rb
|
235
238
|
- lib/neo4j-core/active_entity.rb
|
@@ -322,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
325
|
version: 1.3.1
|
323
326
|
requirements: []
|
324
327
|
rubyforge_project:
|
325
|
-
rubygems_version: 2.
|
328
|
+
rubygems_version: 2.5.1
|
326
329
|
signing_key:
|
327
330
|
specification_version: 4
|
328
331
|
summary: A basic library to work with the graph database Neo4j.
|