Repository navigation
Releases
Releases · polypheny/Polypheny-PHP-Driver
v1.2.0
Structured errors with Prism 2.4
ServerException::getSqlState()andgetServerErrorCode()expose optional error details from Polypheny. The server can report SQLSTATEs for SQL, Cypher, and other query languages.getMessage()still returns the original server message. Missing fields returnnull, and an explicit server error code of0is preserved. Message-only responses from compatible older servers continue to work.- The driver advertises Prism 2.4 and uses the official Prism 2.4 bindings, including support for the structured errors introduced by Polypheny-DB #586.
Install with composer require "polypheny/php-driver:^1.2" on 64-bit PHP 8.2 or later.
v1.1.0
Cypher and Prism 2.3
- Read graph-only results as streams of
NodeandEdgeobjects. Mixed projections retain column order and support typedNode,Edge,PathandGraphcells alongside scalar values. - Read flat graph frames from compatible earlier Prism servers. Mixed graph and scalar results require a server that supports Prism 2.3 graph values.
- A failed fetch discards the affected cursor result and propagates the original error. The cursor can execute a new statement if the connection is still usable.
Install with composer require "polypheny/php-driver:^1.1" on 64-bit PHP 8.2 or later.
v1.0.0
First stable release
- Connects to Polypheny over plain TCP or Unix sockets using the Prism 2.2 client definitions.
- Supports transactions, positional and named parameters, batched execution, and paginated relational and document results.
- Exposes namespace and entity metadata, including document collection fields and MongoDB indexes on servers that provide them.
Requires 64-bit PHP 8.2 or later and a compatible Prism 2.x server.