Skip to content

Introduce support for bolt >5.4 #251

@stefanak-michal

Description

@stefanak-michal

Hi.

I would like to ask if bolt versions support can be increased in this project. There was some minor changes which I'm not familiar if they have effect or influence in this project. Maybe handling FAILURE which changed in 5.7.

Modification would be easy if there aren't related things in the code. It's just a change of line in ProtocolFactory ->setProtocolVersions('5.8.8', 4.4); and following check of class instance. That check can be also simplified. build method always returns instance of AProtocol, otherwise it throws Exception. AProtocol contains method getVersion which you can use and call version_compare https://www.php.net/version_compare

Here is a bolt protocol changelog:

Version 5.8
Introduce connection hint ssr.enabled

Introduce advertised_address as response metadata of LOGON

SUCCESS message of begin transaction messages (BEGIN or RUN) contains resolved home database as db.

Version 5.7
FAILURE message was changed to have gql_status, description, diagnostic_record and cause. code was renamed to neo4j_code.

Version 5.6
SUCCESS messages that contain a notifications field were changed to have a field statuses instead.

SUCCESS on PULL

SUCCESS on DISCARD

Copied from https://www.neo4j.com/docs/bolt/current/bolt/message/#messages-summary-58

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions