ArangoDB2
view release on metacpan or search on metacpan
lib/ArangoDB2.pm view on Meta::CPAN
# database
#
# ArangoDB2::Database object which provides access to methods
# in the /_api/database group
sub database
{
my($self, $name) = @_;
# default database for arango is _system
$name ||= "_system";
# only create one instance per ArangoDB2 per database, each ArangoDB2
# keeps its own instances since they may have different credentials
return $self->databases->{$name} ||= ArangoDB2::Database->new($self, $name);
}
# databases
#
# Index of active ArangoDB2::Database objects by name
sub databases { $_[0]->{databases} ||= {} }
# endpoint
#
( run in 0.234 second using v1.01-cache-2.11-cpan-4d50c553e7e )