Skip to content

Commit e8dc358

Browse files
committed
New protocol module
1 parent c96087d commit e8dc358

File tree

2 files changed

+659
-0
lines changed

2 files changed

+659
-0
lines changed

neo4j/io/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ def open(cls, address, *, auth=None, timeout=None, **config):
124124
if config.protocol_version == (3, 0):
125125
from neo4j.io._bolt3 import Bolt3
126126
connection = Bolt3(address, s, auth=auth, **config)
127+
elif config.protocol_version == (4, 0):
128+
from neo4j.io._bolt4x0 import Bolt4x0
129+
connection = Bolt4x0(address, s, auth=auth, **config)
127130
else:
128131
log.debug("[#%04X] S: <CLOSE>", s.getpeername()[1])
129132
s.shutdown(SHUT_RDWR)

0 commit comments

Comments
 (0)