InfluxDB\Client::listDatabases PHP 메소드

listDatabases() 공개 메소드

List all the databases
public listDatabases ( )
    public function listDatabases()
    {
        $result = $this->query(null, 'SHOW DATABASES')->getPoints();
        return $this->pointsToArray($result);
    }

Usage Example

예제 #1
0
 /**
  * @return bool
  */
 public function exists()
 {
     $databases = $this->client->listDatabases();
     return in_array($this->name, $databases);
 }