neo4j-core 7.2.3 → 7.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/neo4j-core/version.rb +1 -1
- data/lib/neo4j/core/cypher_session/adaptors/bolt.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b83504d86548fea746417d86450207f9aa601c8
|
4
|
+
data.tar.gz: 172d904140a15eb5f54cc7870411ca16acb550e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4c59fc37164dc616338f7c88c843a9a2d4f77b811efcec57496ba55210fd610b1bd4905766f1c4a1a82fa4f7da4b0799498124d8bee20579537dcd6debff838
|
7
|
+
data.tar.gz: 7f79c48c199d4a2688ea3e4f567c6320df02bdbcffbac270e5c426197f4b0b4ff4fb04f7ba4037f7d62a8af8a10453b73b9cb9b8f7bfb2ea23b630bf4b8392b5
|
data/README.md
CHANGED
@@ -7,12 +7,16 @@ It can be used standalone without the neo4j gem.
|
|
7
7
|
|
8
8
|
### Executing Cypher queries
|
9
9
|
|
10
|
-
To make a basic connection to Neo4j to execute Cypher queries, first choose an adaptor. Adaptors for HTTP and Embedded mode (jRuby only) are available
|
10
|
+
To make a basic connection to Neo4j to execute Cypher queries, first choose an adaptor. Adaptors for HTTP, Bolt, and Embedded mode (jRuby only) are available. You can create an adaptor like:
|
11
11
|
|
12
12
|
http_adaptor = Neo4j::Core::CypherSession::Adaptors::HTTP.new('http://neo4j:pass@localhost:7474')
|
13
13
|
|
14
14
|
# or
|
15
15
|
|
16
|
+
bolt_adaptor = Neo4j::Core::CypherSession::Adaptors::Bolt.new('http://neo4j:pass@localhost:7474', timeout: 10)
|
17
|
+
|
18
|
+
# or
|
19
|
+
|
16
20
|
neo4j_adaptor = Neo4j::Core::CypherSession::Adaptors::Embedded.new('/file/path/to/graph.db')
|
17
21
|
|
18
22
|
Once you have an adaptor you can create a session like so:
|
@@ -56,7 +60,6 @@ When doing batched queries, there is also a shortcut for getting a new `Neo4j::C
|
|
56
60
|
### 3.0+ Documentation:
|
57
61
|
|
58
62
|
* http://neo4jrb.readthedocs.org/en/stable/
|
59
|
-
* https://github.com/neo4jrb/neo4j-core/wiki
|
60
63
|
|
61
64
|
### 2.x Documentation
|
62
65
|
|
data/lib/neo4j-core/version.rb
CHANGED
@@ -185,7 +185,7 @@ module Neo4j
|
|
185
185
|
@socket.send(message, 0)
|
186
186
|
end
|
187
187
|
|
188
|
-
def recvmsg(size, timeout =
|
188
|
+
def recvmsg(size, timeout = timeout_option)
|
189
189
|
Timeout.timeout(timeout) do
|
190
190
|
@socket.recv(size).tap do |result|
|
191
191
|
log_message :S, result
|
@@ -228,6 +228,10 @@ module Neo4j
|
|
228
228
|
[].tap { |r| while arg = unpacker.unpack_value!; r << arg; end }
|
229
229
|
end
|
230
230
|
|
231
|
+
def timeout_option
|
232
|
+
@options.fetch(:timeout) { 10 }
|
233
|
+
end
|
234
|
+
|
231
235
|
# Represents messages sent to or received from the server
|
232
236
|
class Message
|
233
237
|
TYPE_CODES = {
|
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.2.
|
4
|
+
version: 7.2.4
|
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: 2017-
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -325,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
325
325
|
version: '0'
|
326
326
|
requirements: []
|
327
327
|
rubyforge_project:
|
328
|
-
rubygems_version: 2.6.
|
328
|
+
rubygems_version: 2.6.13
|
329
329
|
signing_key:
|
330
330
|
specification_version: 4
|
331
331
|
summary: A basic library to work with the graph database Neo4j.
|