From d30eab30e089564579b39f99e75fb5631538f34a Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sat, 18 May 2024 23:17:42 +0200 Subject: [PATCH] Add missing `default_database` attribute to datasource adapters --- tsperf/adapter/influxdb.py | 1 + tsperf/adapter/postgresql.py | 1 + tsperf/adapter/timescaledb.py | 1 + 3 files changed, 3 insertions(+) diff --git a/tsperf/adapter/influxdb.py b/tsperf/adapter/influxdb.py index 94a467b..d1a521e 100644 --- a/tsperf/adapter/influxdb.py +++ b/tsperf/adapter/influxdb.py @@ -36,6 +36,7 @@ class InfluxDbAdapter(AbstractDatabaseInterface): default_address = "http://localhost:8086/" + default_database = "tsperf" def __init__( self, diff --git a/tsperf/adapter/postgresql.py b/tsperf/adapter/postgresql.py index dad1846..ba69a11 100644 --- a/tsperf/adapter/postgresql.py +++ b/tsperf/adapter/postgresql.py @@ -36,6 +36,7 @@ class PostgreSQLAdapter(AbstractDatabaseInterface, DatabaseInterfaceMixin): default_address = "localhost:5432" default_username = "postgres" + default_database = "tsperf" default_query = "SELECT 1;" def __init__( diff --git a/tsperf/adapter/timescaledb.py b/tsperf/adapter/timescaledb.py index 9c233c3..b2f91c8 100644 --- a/tsperf/adapter/timescaledb.py +++ b/tsperf/adapter/timescaledb.py @@ -39,6 +39,7 @@ class TimescaleDbAdapter(AbstractDatabaseInterface, DatabaseInterfaceMixin): default_address = "localhost:5432" default_username = "postgres" + default_database = "tsperf" default_query = "SELECT 1;" def __init__(