AnyEvent-InfluxDB
view release on metacpan or search on metacpan
xt/influxdb.t view on Meta::CPAN
);
my @db_names = $cv->recv;
Test::More::note "@db_names";
is_deeply( [ sort @db_names ], [qw( _internal foo mydb )], "databases listed");
}
{
note "=== create_database ===";
$cv = AE::cv;
$db->create_database(
database => "mydb",
if_not_exists => 1,
on_success => sub { $cv->send("test ok") },
on_error => sub {
$cv->croak("Failed to create database: @_");
}
);
ok($cv->recv, "database already exists, but that's ok");
}
{
note "=== create_retention_policy ===";
$cv = AE::cv;
( run in 0.619 second using v1.01-cache-2.11-cpan-cc502c75498 )