All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.paulgoldbaum.influxdbclient.DatabaseManagement.scala Maven / Gradle / Ivy

The newest version!
package com.paulgoldbaum.influxdbclient

protected[influxdbclient] trait DatabaseManagement { self: Database =>

  def create() =
    exec("CREATE DATABASE \"" + databaseName + "\"")

  def drop() =
    exec("DROP DATABASE \"" + databaseName + "\"")

  def exists() =
    showDatabases().map(_.contains(databaseName))

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy