diff --git a/README.md b/README.md index d640412..a75e940 100644 --- a/README.md +++ b/README.md @@ -88,11 +88,6 @@ Interact with an InfluxDBv1 server using the `InfluxDBv1Session` class. **Note t from pydase_service_base.database import InfluxDBv1Session with InfluxDBv1Session() as influx_client: - # Creating a database - influx_client.create_database( - dbname='my_new_database' - ) - # Writing data to a database data = [ { diff --git a/pydase_service_base/database/influxdbv1_session.py b/pydase_service_base/database/influxdbv1_session.py index 17b35a7..d7248e8 100644 --- a/pydase_service_base/database/influxdbv1_session.py +++ b/pydase_service_base/database/influxdbv1_session.py @@ -155,20 +155,3 @@ class InfluxDBv1Session: batch_size=batch_size, consistency=consistency, ) - - def create_database( - self, - dbname: str, - ) -> None: - """Create a new database in the InfluxDB instance. This function wraps the - create_database from `influxdb` in a try-catch block and logs potential errors. - - Args: - dbname: - The name of the database to create. - """ - - try: - self._client.create_database(dbname=dbname) - except Exception as e: - logger.error(e)