neo4j-php / Bolt

PHP library to provide connectivity to graph database over TCP socket with Bolt specification
https://packagist.org/packages/stefanak-michal/bolt
MIT License
73 stars 10 forks source link

Protocol messages as traits #94

Closed stefanak-michal closed 2 years ago

stefanak-michal commented 2 years ago

This is a suggestion on how to change bolt protocol messages functions in protocol versions. Some bolt protocol changes are not backward compatible and also I would like to introduce type hints for message fields (method arguments).

With this change backward calls for init/pullAll/discardAll won't work. If protocol version doesn't contain this message, it shouldn't work. It was a feature of this library, not Bolt.