Skip to content

Releases

v1.2.0

Choose a tag to compare

@vogti vogti released this 23 Nov 07:02

Structured errors with Prism 2.4

  • ServerException::getSqlState() and getServerErrorCode() 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 return null, and an explicit server error code of 0 is 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.

PHP driver documentation · Full changelog

v1.1.0

Choose a tag to compare

@vogti vogti released this 21 Nov 15:27

Cypher and Prism 2.3

  • Read graph-only results as streams of Node and Edge objects. Mixed projections retain column order and support typed Node, Edge, Path and Graph cells 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.

PHP driver documentation · Full changelog

v1.0.0

Choose a tag to compare

@vogti vogti released this 15 Nov 17:32

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.