Skip to content

Commit

Permalink
Remove deprecated ifNotExists parameter in DatabaseManagement.create
Browse files Browse the repository at this point in the history
Fixes #8
  • Loading branch information
paulgoldbaum committed Feb 28, 2016
1 parent 7e8db1d commit ea2988d
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@ package com.paulgoldbaum.influxdbclient

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

def create(ifNotExists: Boolean = false) = {
val queryString = new StringBuilder()
queryString ++= "CREATE DATABASE "
if (ifNotExists)
queryString ++= "IF NOT EXISTS "
queryString ++= "\"" + databaseName + "\""
query(queryString.mkString)
}
def create() =
query("CREATE DATABASE \"" + databaseName + "\"")

def drop() =
query("DROP DATABASE \"" + databaseName + "\"")
Expand Down

0 comments on commit ea2988d

Please sign in to comment.