InfluxPHP/tests/bootstrap.php

11 lines
215 B
PHP
Raw Permalink Normal View History

2013-11-12 17:36:14 +00:00
<?php
require __DIR__ . "/../vendor/autoload.php";
$client = new \crodas\InfluxPHP\Client;
foreach ($client->getDatabases() as $db) {
if (preg_match("/^test_/", $db->getName())) {
$db->drop();
}
}