influxdb-java
influxdb-java copied to clipboard
Method createDatabase is deprecated
So i need to use the method createDatabase() which is deprecated but i cannot find another alternative solution to creating a database, any suggestions?
Help please!
I have the same question, any solutions?
the same issue? any alternative?
Try creating the database using a query
this.influxDB.query(new Query("CREATE DATABASE databasename",""));
/**
* Create a new Database.
*
* @param name
* the name of the new database.
* @deprecated (since 2.9, removed in 3.0) Use <tt>org.influxdb.InfluxDB.query(Query)</tt> to execute a parameterized
* <strong>CREATE DATABASE</strong> query.
*/
@Deprecated
public void createDatabase(final String name);