neo4j-java-driver 1.7.4-java → 4.2.0.beta.1-java

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
  SHA256:
3
- metadata.gz: 0a39ad35198a8958f2857bfcfb6040ffffeee0338fee2105ff2ca4e4f98f162b
4
- data.tar.gz: 5f617ac0e6a69992f8febe4ec4ed115383c8088b4732bf33c3607aa9994d8c96
3
+ metadata.gz: 199e69cb97be63f0b1e4e7abc8f180a80cf7d1de5d6929d03d72edb54c496ba7
4
+ data.tar.gz: a9dc598ff2ff6722a06327bcadeadbcfcdb316441fe9a0e23f376468f50b22ff
5
5
  SHA512:
6
- metadata.gz: 59aa3597d96b34851293e27c49dee3d9d52d5a604112f35274f1dc5477fa87f1c5c27977d36e345ec413d195b1b4b128c6fa12c248d90c234bc88d9a9176f8bb
7
- data.tar.gz: de8450ea68258da74d9e17274a12f2d7f83129fbd06a8e9eb497847cd487aa3a5ae3a1a8af4a4d10733bf1565b4cb645bee6caf28692bbce9269a05867e0ce12
6
+ metadata.gz: 5ceea589b041d3b90c0ef8a137bd171896b0d53f91fef31ffc6bff137a0a7fc9db6392b6870b5f2ece9ee1dd45a9882c339b23e0c0ac8a48325e4caa4e509761
7
+ data.tar.gz: e88fc71a1866a0a2aae1352830663ed2ac3eb056b02deae5d629212ea8dc45397d455a24b774249cf6e23d70370b58dd3083c29fce5bd310dfa86e32f8be194b
@@ -7,18 +7,18 @@ require 'neo4j-java-driver_jars'
7
7
 
8
8
  module Neo4j
9
9
  module Driver
10
- include_package 'org.neo4j.driver.v1'
10
+ include_package 'org.neo4j.driver'
11
11
 
12
12
  Record = Java::OrgNeo4jDriverInternal::InternalRecord
13
- StatementResult = Java::OrgNeo4jDriverInternal::InternalStatementResult
14
- Transaction = Java::OrgNeo4jDriverInternal::ExplicitTransaction
13
+ Result = Java::OrgNeo4jDriverInternal::InternalResult
14
+ Transaction = Java::OrgNeo4jDriverInternal::InternalTransaction
15
15
 
16
16
  module Net
17
- include_package 'org.neo4j.driver.v1.net'
17
+ include_package 'org.neo4j.driver.net'
18
18
  end
19
19
 
20
20
  module Summary
21
- include_package 'org.neo4j.driver.v1.summary'
21
+ include_package 'org.neo4j.driver.summary'
22
22
  end
23
23
 
24
24
  module Types
@@ -28,7 +28,7 @@ module Neo4j
28
28
  Relationship = Java::OrgNeo4jDriverInternal::InternalRelationship
29
29
  end
30
30
 
31
- # Workaround for missing zeitwerk support in jruby-9.2.8.0
31
+ # Workaround for missing zeitwerk support as of jruby-9.2.13.0
32
32
  module Ext
33
33
  module Internal
34
34
  module Summary
@@ -41,6 +41,11 @@ end
41
41
 
42
42
  Loader.load
43
43
 
44
+ Java::OrgNeo4jDriver::AuthTokens.singleton_class.prepend Neo4j::Driver::Ext::AuthTokens
45
+ Java::OrgNeo4jDriver::Bookmark.singleton_class.prepend Neo4j::Driver::Ext::Bookmark::ClassMethods
46
+ Java::OrgNeo4jDriver::GraphDatabase.singleton_class.prepend Neo4j::Driver::Ext::GraphDatabase
47
+ Java::OrgNeo4jDriver::Query.prepend Neo4j::Driver::Ext::Query
48
+ Java::OrgNeo4jDriverInternal::InternalBookmark.include Neo4j::Driver::Ext::Bookmark::InstanceMethods
44
49
  Java::OrgNeo4jDriverInternal::InternalDriver.prepend Neo4j::Driver::Ext::InternalDriver
45
50
  Java::OrgNeo4jDriverInternal::InternalEntity.include Neo4j::Driver::Ext::InternalEntity
46
51
  Java::OrgNeo4jDriverInternal::InternalNode.prepend Neo4j::Driver::Ext::InternalNode
@@ -48,12 +53,9 @@ Java::OrgNeo4jDriverInternal::InternalPath.include Neo4j::Driver::Ext::StartEndN
48
53
  Java::OrgNeo4jDriverInternal::InternalPath::SelfContainedSegment.include Neo4j::Driver::Ext::StartEndNaming
49
54
  Java::OrgNeo4jDriverInternal::InternalRecord.prepend Neo4j::Driver::Ext::InternalRecord
50
55
  Java::OrgNeo4jDriverInternal::InternalRelationship.prepend Neo4j::Driver::Ext::InternalRelationship
51
- Java::OrgNeo4jDriverInternal::InternalStatementResult.prepend Neo4j::Driver::Ext::InternalStatementResult
52
- Java::OrgNeo4jDriverInternal::ExplicitTransaction.prepend Neo4j::Driver::Ext::ExplicitTransaction
53
- Java::OrgNeo4jDriverInternal::NetworkSession.prepend Neo4j::Driver::Ext::NetworkSession
56
+ Java::OrgNeo4jDriverInternal::InternalResult.prepend Neo4j::Driver::Ext::InternalResult
57
+ Java::OrgNeo4jDriverInternal::InternalSession.prepend Neo4j::Driver::Ext::InternalSession
58
+ Java::OrgNeo4jDriverInternal::InternalTransaction.prepend Neo4j::Driver::Ext::InternalTransaction
54
59
  Java::OrgNeo4jDriverInternalSummary::InternalResultSummary.prepend Neo4j::Driver::Ext::Internal::Summary::InternalResultSummary
55
60
  Java::OrgNeo4jDriverInternalValue::ValueAdapter.include Neo4j::Driver::Ext::RubyConverter
56
- Java::OrgNeo4jDriverV1::AuthTokens.singleton_class.prepend Neo4j::Driver::Ext::AuthTokens
57
- Java::OrgNeo4jDriverV1::GraphDatabase.singleton_class.prepend Neo4j::Driver::Ext::GraphDatabase
58
- Java::OrgNeo4jDriverV1::Statement.prepend Neo4j::Driver::Ext::Statement
59
- Java::OrgNeo4jDriverV1Exceptions::Neo4jException.include Neo4j::Driver::Ext::ExceptionMapper
61
+ Java::OrgNeo4jDriverExceptions::Neo4jException.include Neo4j::Driver::Ext::ExceptionMapper
@@ -4,7 +4,7 @@ module Neo4j
4
4
  module Driver
5
5
  module Ext
6
6
  module AuthTokens
7
- def basic(username, password)
7
+ def basic(username, password, realm = nil)
8
8
  Neo4j::Driver::Internal::Validator.require_non_nil_credentials!(username, password)
9
9
  super
10
10
  end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Neo4j
4
+ module Driver
5
+ module Ext
6
+ module Bookmark
7
+ module ClassMethods
8
+ def from(values)
9
+ super(java.util.HashSet.new(values))
10
+ end
11
+ end
12
+
13
+ module InstanceMethods
14
+ extend ActiveSupport::Concern
15
+ included do
16
+ delegate :to_set, to: :values
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -8,8 +8,8 @@ module Neo4j
8
8
 
9
9
  private
10
10
 
11
- def to_java_config(builder_class, hash)
12
- hash&.reduce(builder_class.builder) { |object, key_value| object.send(*config_method(*key_value)) }&.build
11
+ def to_java_config(builder_class, **hash)
12
+ hash.compact.reduce(builder_class.builder) { |object, key_value| object.send(*config_method(*key_value)) }.build
13
13
  end
14
14
 
15
15
  def config_method(key, value)
@@ -30,6 +30,8 @@ module Neo4j
30
30
  when 'resolver'
31
31
  proc = value
32
32
  value = ->(address) { java.util.HashSet.new(proc.call(address)) }
33
+ when 'bookmarks'
34
+ return [method, *value]
33
35
  else
34
36
  value = to_neo(value, skip_unknown: true)
35
37
  end
@@ -6,11 +6,11 @@ module Neo4j
6
6
  module ExceptionCheckable
7
7
  def check
8
8
  yield
9
- rescue Java::OrgNeo4jDriverV1Exceptions::Neo4jException => e
9
+ rescue Java::OrgNeo4jDriverExceptions::Neo4jException => e
10
10
  e.reraise
11
- rescue Java::OrgNeo4jDriverV1Exceptions::NoSuchRecordException => e
11
+ rescue Java::OrgNeo4jDriverExceptions::NoSuchRecordException => e
12
12
  raise Neo4j::Driver::Exceptions::NoSuchRecordException, e.message
13
- rescue Java::OrgNeo4jDriverV1Exceptions::UntrustedServerException => e
13
+ rescue Java::OrgNeo4jDriverExceptions::UntrustedServerException => e
14
14
  raise Neo4j::Driver::Exceptions::UntrustedServerException, e.message
15
15
  rescue Java::JavaLang::IllegalStateException => e
16
16
  raise Neo4j::Driver::Exceptions::IllegalStateException, e.message
@@ -21,7 +21,7 @@ module Neo4j
21
21
  def reverse_check
22
22
  yield
23
23
  rescue Neo4j::Driver::Exceptions::ServiceUnavailableException => e
24
- raise(throwable(e.cause) || org.neo4j.driver.v1.exceptions.ServiceUnavailableException.new(e.message))
24
+ raise(throwable(e.cause) || Java::OrgNeo4jDriverExceptions::ServiceUnavailableException.new(e.message))
25
25
  rescue Neo4j::Driver::Exceptions::Neo4jException,
26
26
  Neo4j::Driver::Exceptions::NoSuchRecordException,
27
27
  Neo4j::Driver::Exceptions::UntrustedServerException,
@@ -1,14 +1,15 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- java_import org.neo4j.driver.v1.exceptions.AuthenticationException
4
- java_import org.neo4j.driver.v1.exceptions.ClientException
5
- java_import org.neo4j.driver.v1.exceptions.DatabaseException
6
- java_import org.neo4j.driver.v1.exceptions.ProtocolException
7
- java_import org.neo4j.driver.v1.exceptions.SecurityException
8
- java_import org.neo4j.driver.v1.exceptions.ServiceUnavailableException
9
- java_import org.neo4j.driver.v1.exceptions.SessionExpiredException
10
- java_import org.neo4j.driver.v1.exceptions.TransientException
11
- java_import org.neo4j.driver.v1.exceptions.UntrustedServerException
3
+ java_import org.neo4j.driver.exceptions.AuthenticationException
4
+ java_import org.neo4j.driver.exceptions.ClientException
5
+ java_import org.neo4j.driver.exceptions.DatabaseException
6
+ java_import org.neo4j.driver.exceptions.ProtocolException
7
+ java_import org.neo4j.driver.exceptions.ResultConsumedException
8
+ java_import org.neo4j.driver.exceptions.SecurityException
9
+ java_import org.neo4j.driver.exceptions.ServiceUnavailableException
10
+ java_import org.neo4j.driver.exceptions.SessionExpiredException
11
+ java_import org.neo4j.driver.exceptions.TransientException
12
+ java_import org.neo4j.driver.exceptions.UntrustedServerException
12
13
 
13
14
  module Neo4j
14
15
  module Driver
@@ -32,6 +33,8 @@ module Neo4j
32
33
  case exception
33
34
  when AuthenticationException
34
35
  Neo4j::Driver::Exceptions::AuthenticationException
36
+ when ResultConsumedException
37
+ Neo4j::Driver::Exceptions::ResultConsumedException
35
38
  when ClientException
36
39
  Neo4j::Driver::Exceptions::ClientException
37
40
  when DatabaseException
@@ -10,14 +10,14 @@ module Neo4j
10
10
 
11
11
  auto_closable :driver, :routing_driver
12
12
 
13
- def driver(uri, auth_token = Neo4j::Driver::AuthTokens.none, config = nil)
13
+ def driver(uri, auth_token = Neo4j::Driver::AuthTokens.none, **config)
14
14
  check do
15
- java_method(:driver, [java.lang.String, org.neo4j.driver.v1.AuthToken, org.neo4j.driver.v1.Config])
15
+ java_method(:driver, [java.lang.String, org.neo4j.driver.AuthToken, org.neo4j.driver.Config])
16
16
  .call(uri.to_s, auth_token, to_java_config(Neo4j::Driver::Config, config))
17
17
  end
18
18
  end
19
19
 
20
- def routing_driver(routing_uris, auth_token, config)
20
+ def routing_driver(routing_uris, auth_token, **config)
21
21
  check do
22
22
  super(routing_uris.map { |uri| java.net.URI.create(uri.to_s) }, auth_token,
23
23
  to_java_config(Neo4j::Driver::Config, config))
@@ -5,12 +5,18 @@ module Neo4j
5
5
  module Ext
6
6
  module InternalDriver
7
7
  extend AutoClosable
8
+ include ConfigConverter
9
+ include ExceptionCheckable
8
10
 
9
11
  auto_closable :session
10
12
 
11
- def session(*args)
12
- java_method(:session, [org.neo4j.driver.v1.AccessMode, java.lang.Iterable])
13
- .call(*Neo4j::Driver::Internal::RubySignature.session(args))
13
+ def session(**session_config)
14
+ java_method(:session, [org.neo4j.driver.SessionConfig])
15
+ .call(to_java_config(Neo4j::Driver::SessionConfig, session_config))
16
+ end
17
+
18
+ def verify_connectivity
19
+ check { super }
14
20
  end
15
21
  end
16
22
  end
@@ -3,12 +3,12 @@
3
3
  module Neo4j
4
4
  module Driver
5
5
  module Ext
6
- module InternalStatementResult
6
+ module InternalResult
7
7
  include Enumerable
8
8
  include ExceptionCheckable
9
9
  include InternalKeys
10
10
 
11
- %i[has_next? next single consume summary peek].each do |method|
11
+ %i[has_next? next single consume peek].each do |method|
12
12
  define_method(method) do |*args, &block|
13
13
  check { super(*args, &block) }
14
14
  end
@@ -3,7 +3,7 @@
3
3
  module Neo4j
4
4
  module Driver
5
5
  module Ext
6
- module NetworkSession
6
+ module InternalSession
7
7
  extend AutoClosable
8
8
  include ConfigConverter
9
9
  include ExceptionCheckable
@@ -26,7 +26,7 @@ module Neo4j
26
26
 
27
27
  def run(statement, parameters = {}, config = {})
28
28
  check do
29
- java_method(:run, [org.neo4j.driver.v1.Statement, org.neo4j.driver.v1.TransactionConfig])
29
+ java_method(:run, [org.neo4j.driver.Query, org.neo4j.driver.TransactionConfig])
30
30
  .call(to_statement(statement, parameters), to_java_config(Neo4j::Driver::TransactionConfig, config))
31
31
  end
32
32
  end
@@ -3,13 +3,21 @@
3
3
  module Neo4j
4
4
  module Driver
5
5
  module Ext
6
- module ExplicitTransaction
6
+ module InternalTransaction
7
7
  include ExceptionCheckable
8
8
  include RunOverride
9
9
 
10
10
  def run(statement, parameters = {})
11
11
  check { super(to_statement(statement, parameters)) }
12
12
  end
13
+
14
+ def commit
15
+ check { super }
16
+ end
17
+
18
+ # def rollback
19
+ # check { super }
20
+ # end
13
21
  end
14
22
  end
15
23
  end
@@ -4,8 +4,8 @@ module Neo4j
4
4
  module Driver
5
5
  module Ext
6
6
  class Logger
7
- include org.neo4j.driver.v1.Logger
8
- include org.neo4j.driver.v1.Logging
7
+ include org.neo4j.driver.Logger
8
+ include org.neo4j.driver.Logging
9
9
 
10
10
  delegate :debug?, to: :@active_support_logger
11
11
 
@@ -5,7 +5,7 @@ module Neo4j
5
5
  module Ext
6
6
  module MapConverter
7
7
  def to_h
8
- java_method(:asMap, [org.neo4j.driver.v1.util.Function]).call(&:itself).to_hash
8
+ java_method(:asMap, [java.util.function.Function]).call(&:itself).to_hash
9
9
  .transform_values!(&:as_ruby_object).symbolize_keys!
10
10
  end
11
11
  end
@@ -21,7 +21,7 @@ module Neo4j
21
21
  *Driver::Internal::DurationNormalizer.normalize(object)
22
22
  )
23
23
  when Types::Point
24
- Java::OrgNeo4jDriverV1::Values.point(object.srid, *object.coordinates)
24
+ Java::OrgNeo4jDriver::Values.point(object.srid, *object.coordinates)
25
25
  when Types::OffsetTime
26
26
  Java::JavaTime::OffsetTime.of(object.hour, object.min, object.sec,
27
27
  object.nsec, Java::JavaTime::ZoneOffset.of_total_seconds(object.utc_offset))
@@ -3,7 +3,7 @@
3
3
  module Neo4j
4
4
  module Driver
5
5
  module Ext
6
- module Statement
6
+ module Query
7
7
  def parameters
8
8
  super.as_ruby_object
9
9
  end
@@ -14,7 +14,7 @@ module Neo4j
14
14
 
15
15
  def to_statement(text, parameters)
16
16
  Neo4j::Driver::Internal::Validator.require_hash_parameters!(parameters)
17
- Neo4j::Driver::Statement.new(text, to_neo(parameters || {}))
17
+ Neo4j::Driver::Query.new(text, to_neo(parameters || {}))
18
18
  end
19
19
  end
20
20
  end
data/lib/loader.rb CHANGED
@@ -8,7 +8,7 @@ class Loader
8
8
  loader.tag = 'neo4j-ruby-driver'
9
9
  loader.push_dir(File.expand_path(__dir__))
10
10
  loader.push_dir(File.dirname(File.dirname(caller_locations(1..1).first.path)))
11
- loader.ignore(File.expand_path('neo4j-java-driver_jars.rb', __dir__))
11
+ loader.ignore(File.expand_path('neo4j-*-driver_jars.rb', __dir__))
12
12
  loader.ignore(File.expand_path('neo4j_ruby_driver.rb', __dir__))
13
13
  loader.ignore(File.expand_path('org', __dir__))
14
14
  loader.inflector = Zeitwerk::GemInflector.new(File.expand_path('neo4j/driver', __dir__))
@@ -12,8 +12,8 @@ module Neo4j
12
12
  def with_block_definer(methods)
13
13
  Module.new do
14
14
  methods.each do |method|
15
- define_method(method) do |*args, &block|
16
- closable = super(*args)
15
+ define_method(method) do |*args, **kwargs, &block|
16
+ closable = super(*args, **kwargs)
17
17
  if block
18
18
  begin
19
19
  block.arity.zero? ? closable.instance_eval(&block) : block.call(closable)
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Neo4j
4
+ module Driver
5
+ module Exceptions
6
+ class ResultConsumedException < ClientException
7
+ end
8
+ end
9
+ end
10
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Neo4j
4
4
  module Driver
5
- VERSION = '1.7.4'
5
+ VERSION = '4.2.0.beta.1'
6
6
  end
7
7
  end
@@ -13,6 +13,7 @@ if RUBY_PLATFORM.match?(/java/)
13
13
  end
14
14
  # End workaround
15
15
 
16
+ require 'active_support/concern'
16
17
  require 'active_support/core_ext/hash/indifferent_access'
17
18
  require 'active_support/core_ext/numeric/time'
18
19
  require 'active_support/duration'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j-java-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.4
4
+ version: 4.2.0.beta.1
5
5
  platform: java
6
6
  authors:
7
7
  - Heinrich Klobuczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-06 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -211,10 +211,10 @@ files:
211
211
  - README.md
212
212
  - jruby/neo4j/driver.rb
213
213
  - jruby/neo4j/driver/ext/auth_tokens.rb
214
+ - jruby/neo4j/driver/ext/bookmark.rb
214
215
  - jruby/neo4j/driver/ext/config_converter.rb
215
216
  - jruby/neo4j/driver/ext/exception_checkable.rb
216
217
  - jruby/neo4j/driver/ext/exception_mapper.rb
217
- - jruby/neo4j/driver/ext/explicit_transaction.rb
218
218
  - jruby/neo4j/driver/ext/graph_database.rb
219
219
  - jruby/neo4j/driver/ext/internal/summary/internal_result_summary.rb
220
220
  - jruby/neo4j/driver/ext/internal_driver.rb
@@ -223,15 +223,16 @@ files:
223
223
  - jruby/neo4j/driver/ext/internal_node.rb
224
224
  - jruby/neo4j/driver/ext/internal_record.rb
225
225
  - jruby/neo4j/driver/ext/internal_relationship.rb
226
- - jruby/neo4j/driver/ext/internal_statement_result.rb
226
+ - jruby/neo4j/driver/ext/internal_result.rb
227
+ - jruby/neo4j/driver/ext/internal_session.rb
228
+ - jruby/neo4j/driver/ext/internal_transaction.rb
227
229
  - jruby/neo4j/driver/ext/logger.rb
228
230
  - jruby/neo4j/driver/ext/map_converter.rb
229
231
  - jruby/neo4j/driver/ext/neo_converter.rb
230
- - jruby/neo4j/driver/ext/network_session.rb
232
+ - jruby/neo4j/driver/ext/query.rb
231
233
  - jruby/neo4j/driver/ext/ruby_converter.rb
232
234
  - jruby/neo4j/driver/ext/run_override.rb
233
235
  - jruby/neo4j/driver/ext/start_end_naming.rb
234
- - jruby/neo4j/driver/ext/statement.rb
235
236
  - lib/loader.rb
236
237
  - lib/neo4j/driver/auto_closable.rb
237
238
  - lib/neo4j/driver/exceptions/authentication_exception.rb
@@ -241,13 +242,13 @@ files:
241
242
  - lib/neo4j/driver/exceptions/neo4j_exception.rb
242
243
  - lib/neo4j/driver/exceptions/no_such_record_exception.rb
243
244
  - lib/neo4j/driver/exceptions/protocol_exception.rb
245
+ - lib/neo4j/driver/exceptions/result_consumed_exception.rb
244
246
  - lib/neo4j/driver/exceptions/security_exception.rb
245
247
  - lib/neo4j/driver/exceptions/service_unavailable_exception.rb
246
248
  - lib/neo4j/driver/exceptions/session_expired_exception.rb
247
249
  - lib/neo4j/driver/exceptions/transient_exception.rb
248
250
  - lib/neo4j/driver/exceptions/untrusted_server_exception.rb
249
251
  - lib/neo4j/driver/internal/duration_normalizer.rb
250
- - lib/neo4j/driver/internal/ruby_signature.rb
251
252
  - lib/neo4j/driver/internal/validator.rb
252
253
  - lib/neo4j/driver/types/bytes.rb
253
254
  - lib/neo4j/driver/types/local_date_time.rb
@@ -276,11 +277,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
276
277
  version: '2.5'
277
278
  required_rubygems_version: !ruby/object:Gem::Requirement
278
279
  requirements:
279
- - - ">="
280
+ - - ">"
280
281
  - !ruby/object:Gem::Version
281
- version: '0'
282
+ version: 1.3.1
282
283
  requirements:
283
- - jar org.neo4j.driver, neo4j-java-driver, 1.7.5
284
+ - jar org.neo4j.driver, neo4j-java-driver, 4.2.1
284
285
  rubygems_version: 3.0.6
285
286
  signing_key:
286
287
  specification_version: 4
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Neo4j
4
- module Driver
5
- module Internal
6
- module RubySignature
7
- class << self
8
- def session(args)
9
- [
10
- args.empty? || args.first.is_a?(String) ? Neo4j::Driver::AccessMode::WRITE : args.shift, # mode
11
- args # bookmarks
12
- ]
13
- end
14
- end
15
- end
16
- end
17
- end
18
- end