diff --git a/client/src/app/_models/settings.ts b/client/src/app/_models/settings.ts index b5364f3c1..49b098301 100644 --- a/client/src/app/_models/settings.ts +++ b/client/src/app/_models/settings.ts @@ -64,6 +64,9 @@ export class DaqStore { type = DaqStoreType.SQlite; varsion?: string; url?: string; + host = '127.0.0.1'; + tableName = 'meters'; + configurationString = 'http::addr=localhost:9000;'; organization?: string; credentials?: StoreCredentials; bucket?: string; @@ -74,6 +77,9 @@ export class DaqStore { if (daqstore) { this.type = daqstore.type; this.url = daqstore.url; + this.host = daqstore.host; + this.tableName = daqstore.tableName || 'meters'; + this.configurationString = daqstore.configurationString; this.organization = daqstore.organization; this.credentials = daqstore.credentials; this.bucket = daqstore.bucket; @@ -84,6 +90,7 @@ export class DaqStore { isEquals(store: DaqStore) { if (this.type === store.type && this.bucket === store.bucket && this.url === store.url && + this.host === store.host && this.tableName === store.tableName && this.configurationString === store.configurationString && this.organization === store.organization && this.database === store.database && (this.credentials && StoreCredentials.isEquals(this.credentials, store.credentials)) && this.retention === store.retention) { return true; @@ -115,6 +122,7 @@ export enum DaqStoreType { influxDB = 'influxDB', influxDB18 = 'influxDB 1.8', TDengine = 'TDengine' , + questDB = 'questDB', } export enum influxDBVersionType { diff --git a/client/src/app/editor/app-settings/app-settings.component.html b/client/src/app/editor/app-settings/app-settings.component.html index 82e5231cf..78a036ed9 100644 --- a/client/src/app/editor/app-settings/app-settings.component.html +++ b/client/src/app/editor/app-settings/app-settings.component.html @@ -203,6 +203,34 @@