neo4j-ruby-driver 6.0.1.alpha.0-java → 6.0.3.alpha.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/jruby/neo4j/driver/ext/exception_mapper.rb +1 -1
- data/jruby/neo4j/driver/ext/internal/abstract_query_runner.rb +18 -0
- data/jruby/neo4j/driver/ext/internal_transaction.rb +1 -6
- data/jruby/neo4j/driver/version.rb +1 -1
- data/jruby/neo4j/driver.rb +2 -2
- data/lib/neo4j/driver/exceptions/neo4j_exception.rb +6 -6
- metadata +15 -12
- data/jruby/neo4j/driver/ext/delegating_transaction_context.rb +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b150718dde06f62283bdde11edaca77f17a31cd9d5988229c7f9f11d0579f5fb
|
|
4
|
+
data.tar.gz: 685a04443a4a9c8e8c90a3524a650166a6d63976d92e2e6418cd2807e2a531ef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c988f11be9f369490e07f0de554590059f6b61f782abf9e16d48c16237e9298b88a5f7776d632bab79a6e0138f973cf11e2058a8d611e099ff59349d15668bb1
|
|
7
|
+
data.tar.gz: 5ebe999f029edd2b4a20953b39176c1d3a6fd1c6fcf739c95084dabb7499b2e37f3fcd832a780d1dc8b2485a070ad18f6e72a0be62e2cfed62182b847c44dc9c
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Neo4j
|
|
4
|
+
module Driver
|
|
5
|
+
module Ext
|
|
6
|
+
module Internal
|
|
7
|
+
module AbstractQueryRunner
|
|
8
|
+
include ExceptionCheckable
|
|
9
|
+
include RunOverride
|
|
10
|
+
|
|
11
|
+
def run(statement, **parameters)
|
|
12
|
+
check { super(to_statement(statement, parameters)) }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -4,12 +4,7 @@ module Neo4j
|
|
|
4
4
|
module Driver
|
|
5
5
|
module Ext
|
|
6
6
|
module InternalTransaction
|
|
7
|
-
include
|
|
8
|
-
include RunOverride
|
|
9
|
-
|
|
10
|
-
def run(statement, **parameters)
|
|
11
|
-
check { super(to_statement(statement, parameters)) }
|
|
12
|
-
end
|
|
7
|
+
include Internal::AbstractQueryRunner
|
|
13
8
|
|
|
14
9
|
def commit
|
|
15
10
|
check { super }
|
data/jruby/neo4j/driver.rb
CHANGED
|
@@ -13,7 +13,7 @@ module Neo4j
|
|
|
13
13
|
EagerResult = Java::OrgNeo4jDriverInternal::EagerResultValue
|
|
14
14
|
Record = Java::OrgNeo4jDriverInternal::InternalRecord
|
|
15
15
|
Result = Java::OrgNeo4jDriverInternal::InternalResult
|
|
16
|
-
Transaction = Java::OrgNeo4jDriverInternal::
|
|
16
|
+
Transaction = Java::OrgNeo4jDriverInternal::DelegatingTransactionContext
|
|
17
17
|
|
|
18
18
|
module Internal
|
|
19
19
|
java_import org.neo4j.driver.internal.shaded.bolt.connection.DatabaseName
|
|
@@ -51,7 +51,7 @@ Java::OrgNeo4jDriverInternal::InternalRelationship.prepend Neo4j::Driver::Ext::I
|
|
|
51
51
|
Java::OrgNeo4jDriverInternal::InternalResult.prepend Neo4j::Driver::Ext::InternalResult
|
|
52
52
|
Java::OrgNeo4jDriverInternal::InternalSession.prepend Neo4j::Driver::Ext::InternalSession
|
|
53
53
|
Java::OrgNeo4jDriverInternal::InternalTransaction.prepend Neo4j::Driver::Ext::InternalTransaction
|
|
54
|
-
Java::OrgNeo4jDriverInternal::DelegatingTransactionContext.prepend Neo4j::Driver::Ext::
|
|
54
|
+
Java::OrgNeo4jDriverInternal::DelegatingTransactionContext.prepend Neo4j::Driver::Ext::Internal::AbstractQueryRunner
|
|
55
55
|
Java::OrgNeo4jDriverInternalAsync::InternalAsyncSession.prepend Neo4j::Driver::Ext::Internal::Async::InternalAsyncSession
|
|
56
56
|
Java::OrgNeo4jDriverInternalShadedBoltConnectionRoutedImplCluster::RoutingTableRegistryImpl.include Neo4j::Driver::Ext::Internal::Cluster::RoutingTableRegistryImpl
|
|
57
57
|
# Java::OrgNeo4jDriverInternalCursor::DisposableAsyncResultCursor.prepend Neo4j::Driver::Ext::Internal::Cursor::DisposableAsyncResultCursor
|
|
@@ -7,14 +7,14 @@ module Neo4j
|
|
|
7
7
|
attr_reader :code, :suppressed
|
|
8
8
|
|
|
9
9
|
def initialize(*args)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@
|
|
13
|
-
|
|
10
|
+
args, exceptions = args.partition { |arg| arg.is_a?(String) }
|
|
11
|
+
super(args.pop)
|
|
12
|
+
@code = args.pop
|
|
13
|
+
add_suppressed(*exceptions)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
def add_suppressed(
|
|
17
|
-
(@suppressed ||= [])
|
|
16
|
+
def add_suppressed(*exceptions)
|
|
17
|
+
(@suppressed ||= []).concat(exceptions) if exceptions.any?
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: neo4j-ruby-driver
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.0.
|
|
4
|
+
version: 6.0.3.alpha.0
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Heinrich Klobuczek
|
|
@@ -211,21 +211,24 @@ dependencies:
|
|
|
211
211
|
requirements:
|
|
212
212
|
- - ">="
|
|
213
213
|
- !ruby/object:Gem::Version
|
|
214
|
-
version: '
|
|
214
|
+
version: '6.0'
|
|
215
215
|
- - "<"
|
|
216
216
|
- !ruby/object:Gem::Version
|
|
217
|
-
version: '
|
|
217
|
+
version: '8'
|
|
218
218
|
type: :development
|
|
219
219
|
prerelease: false
|
|
220
220
|
version_requirements: !ruby/object:Gem::Requirement
|
|
221
221
|
requirements:
|
|
222
222
|
- - ">="
|
|
223
223
|
- !ruby/object:Gem::Version
|
|
224
|
-
version: '
|
|
224
|
+
version: '6.0'
|
|
225
225
|
- - "<"
|
|
226
226
|
- !ruby/object:Gem::Version
|
|
227
|
-
version: '
|
|
228
|
-
description:
|
|
227
|
+
version: '8'
|
|
228
|
+
description: |2
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
==== To Install:
|
|
229
232
|
email:
|
|
230
233
|
- heinrich@mail.com
|
|
231
234
|
executables: []
|
|
@@ -240,10 +243,10 @@ files:
|
|
|
240
243
|
- jruby/neo4j/driver/ext/async_converter.rb
|
|
241
244
|
- jruby/neo4j/driver/ext/auth_tokens.rb
|
|
242
245
|
- jruby/neo4j/driver/ext/config_converter.rb
|
|
243
|
-
- jruby/neo4j/driver/ext/delegating_transaction_context.rb
|
|
244
246
|
- jruby/neo4j/driver/ext/exception_checkable.rb
|
|
245
247
|
- jruby/neo4j/driver/ext/exception_mapper.rb
|
|
246
248
|
- jruby/neo4j/driver/ext/graph_database.rb
|
|
249
|
+
- jruby/neo4j/driver/ext/internal/abstract_query_runner.rb
|
|
247
250
|
- jruby/neo4j/driver/ext/internal/async/internal_async_session.rb
|
|
248
251
|
- jruby/neo4j/driver/ext/internal/cluster/routing_table_registry_impl.rb
|
|
249
252
|
- jruby/neo4j/driver/ext/internal/cursor/disposable_async_result_cursor.rb
|
|
@@ -326,16 +329,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
326
329
|
requirements:
|
|
327
330
|
- - ">="
|
|
328
331
|
- !ruby/object:Gem::Version
|
|
329
|
-
version: '3.
|
|
332
|
+
version: '3.4'
|
|
330
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
331
334
|
requirements:
|
|
332
335
|
- - ">="
|
|
333
336
|
- !ruby/object:Gem::Version
|
|
334
337
|
version: '0'
|
|
335
338
|
requirements:
|
|
336
|
-
- jar org.neo4j.driver, neo4j-java-driver-all, 6.0.
|
|
337
|
-
- jar org.neo4j.driver, neo4j-java-driver-observation-metrics, 6.0.
|
|
338
|
-
rubygems_version: 3.
|
|
339
|
+
- jar org.neo4j.driver, neo4j-java-driver-all, 6.0.3
|
|
340
|
+
- jar org.neo4j.driver, neo4j-java-driver-observation-metrics, 6.0.3
|
|
341
|
+
rubygems_version: 3.7.2
|
|
339
342
|
specification_version: 4
|
|
340
|
-
summary:
|
|
343
|
+
summary: "==== To Install:"
|
|
341
344
|
test_files: []
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Neo4j
|
|
4
|
-
module Driver
|
|
5
|
-
module Ext
|
|
6
|
-
module DelegatingTransactionContext
|
|
7
|
-
include ExceptionCheckable
|
|
8
|
-
include RunOverride
|
|
9
|
-
|
|
10
|
-
def run(statement, **parameters)
|
|
11
|
-
check { super(to_statement(statement, parameters)) }
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|