Neo4j::Driver::ServerInfo - Provides Neo4j server address and version
version 0.26
use Neo4j::Driver; $session = Neo4j::Driver->new->basic_auth(...)->session; $host_port = $session->server->address; $version_string = $session->server->version; say "Contacting $version_string at $host_port.";
Provides some basic information of the server where the result is obtained from.
Neo4j::Driver::ServerInfo implements the following methods.
$host_port = $session->server->address;
Returns the host name and port number of the server. Takes the form of an URL authority string (for example: localhost:7474).
localhost:7474
$agent_string = $session->server->agent;
Returns the product name and version number. Takes the form of a server agent string (for example: Neo4j/3.5.17).
Neo4j/3.5.17
$bolt_version = $session->server->protocol_version;
Returns the Bolt protocol version with which the remote server communicates. Takes the form of a string "$major.$minor" where the major and minor version numbers both are integers.
"$major.$minor"
When the HTTP protocol is used instead of Bolt, this method returns an undefined value.
If the Bolt protocol is used, but the version number is unknown, an empty string is returned. This situation shouldn't occur unless you use Neo4j::Bolt version 0.20 or older.
$agent_string = $session->server->version;
Alias for agent().
agent()
Use of version() is discouraged since version 0.26. This method may be deprecated and removed in future.
version()
Neo4j::Driver
Neo4j::Driver::Session, Neo4j::Driver::ResultSummary
Equivalent documentation for the official Neo4j drivers: ServerInfo (Java), IServerInfo (.NET), ServerInfo (Python)
Arne Johannessen <ajnn@cpan.org>
This software is Copyright (c) 2016-2021 by Arne Johannessen.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Neo4j::Driver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Neo4j::Driver
CPAN shell
perl -MCPAN -e shell install Neo4j::Driver
For more information on module installation, please visit the detailed CPAN module installation guide.