Neo4j::Bolt::NeoValue - Container to hold Bolt-encoded values
use Neo4j::Bolt::NeoValue; $neo_int = Neo4j::Bolt::NeoValue->of( 42 ); $i = $neo_int->_as_perl; $neo_node = Neo4j::Bolt::NeoValue->of( bless { id => 1, labels => ['thing','chose'], properties => { texture => 'crunchy', consistency => 'gooey', }, }, 'Neo4j::Bolt::Node' ); if ($neo_node->_neotype eq 'Node') { print "Yep, that's a node all right." } %node = %{ Neo4j::Bolt::NeoValue->is($neo_node)->as_simple }; ($h,$j) = Neo4j::Bolt::NeoValue->are($neo_node, $neo_int);
Neo4j::Bolt::NeoValue is an interface to convert Perl values to Bolt protocol byte structures via libneo4j-client. It's useful for testing the package, but you may find it useful in other ways.
Class method. Creates a NeoValue from a Perl scalar, arrayref, or hashref.
Returns a Perl scalar, arrayref, or hashref representing the underlying Bolt data stored in the object.
Returns a string indicating the type of object that libneo4j-client thinks the Bolt data represents.
Class method. Syntactic sugar; runs "_as_perl()" on the arguments.
Mark A. Jensen CPAN: MAJENSEN majensen -at- cpan -dot- org
This software is Copyright (c) 2019-2020 by Mark A. Jensen.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Neo4j::Bolt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Neo4j::Bolt
CPAN shell
perl -MCPAN -e shell install Neo4j::Bolt
For more information on module installation, please visit the detailed CPAN module installation guide.