Download the PHP package stefanak-michal/memgraph-bolt-wrapper without Composer
On this page you can find all versions of the php package stefanak-michal/memgraph-bolt-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stefanak-michal/memgraph-bolt-wrapper
More information about stefanak-michal/memgraph-bolt-wrapper
Files in stefanak-michal/memgraph-bolt-wrapper
Package memgraph-bolt-wrapper
Short Description Wrapper for Memgraph over PHP Bolt library to simplify usage.
License MIT
Homepage https://github.com/stefanak-michal/memgraph-bolt-wrapper
Informations about the package memgraph-bolt-wrapper
Memgraph Bolt wrapper
This library contains wrapper class to cover basic functionality with Bolt library.
Usage
You can also use methods like queryFirstField
and queryFirstColumn
.
If you want to learn more about available query parameters check tests.
Database server
Default connection is executed on 127.0.0.1:7687. You can change target server with static properties:
Transactions
Transaction methods are:
Log handler
You can set callable function into Memgraph::$logHandler
which is called everytime query is executed. Method will receive executed query with additional statistics.
Check class property annotation for more information.
Error handler
Standard behaviour on error is trigger_error with E_USER_ERROR. If you want to handle Exception by yourself you can set callable function into Memgraph::$errorHandler
.
Statistics
Wrapper offers special method Memgraph::statistic()
. This method returns specific information from last executed query.
Check method annotation for more information.