Net::MarkLogic::XDBC is a Perl module with XDBC connectivity for MarkLogic CIS servers.
SYNOPSIS
use Net::MarkLogic::XDBC
$xdbc = Net::MarkLogic::XDBC->new( "user:pass@localhost:9000" );
$xdbc = Net::MarkLogic::XDBC->new(host => $host,
port => $port,
username => $user,
password => $pass, );
$result = $agent->query($xquery);
print $result->content;
@items = $result->items;
print $item->content;
METHODS
new()
$xdbc = Net::MarkLogic::XDBC->new( "user:pass@localhost:9000" );
$xdbc = Net::MarkLogic::XDBC->new( host => $hostname,
port => $port,
username => $user,
password => $pass, );
Connect using a connection string or named host, port, username, and password parameters.
query()
$result = $xdbc->query($xquery);
Execute XQUERY code on XDBC server.
query_from_template()
$result = $xdbc->query_from_template($template, $args);
Generate XQUERY code from a template toolkit template and arguments, then execute on XDBC server.
This might be overkill, but it's definitely a feature you're not going to find in the Java API.
Product's homepage
Requirements:
· Perl