NAME

Neo4j::Driver::ServerInfo - Provides Neo4j server address and version

VERSION

version 0.22

SYNOPSIS

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.";

DESCRIPTION

Provides some basic information of the server where the result is obtained from.

METHODS

Neo4j::Driver::ServerInfo implements the following methods.

address

$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).

version

$version_string = $session->server->version;

Returns the product name and version number. Takes the form of a server agent string (for example: Neo4j/3.5.17).

EXPERIMENTAL FEATURES

Neo4j::Driver::ServerInfo implements the following experimental features. These are subject to unannounced modification or removal in future versions. Expect your code to break if you depend upon these features.

protocol

$protocol_string = $session->server->protocol;

Returns the protocol name and version number announced by the server. Similar to an agent string, this value is formed by the protocol name followed by a slash and the version number, usually two digits separated by a dot (for example: Bolt/1.0 or HTTP/1.1).

If the protocol version is unknown, just the name is returned.

SEE ALSO

AUTHOR

Arne Johannessen <ajnn@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016-2021 by Arne Johannessen.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)