fix(core): update

This commit is contained in:
2022-03-02 16:35:20 +01:00
parent b8d929f4de
commit ab4ed2602f
7 changed files with 371 additions and 342 deletions

View File

@@ -1,26 +1,2 @@
import * as plugins from './smartclickhouse.plugins';
export interface IClickhouseConstructorOptions {
url: string;
port?: number;
}
export class ClickhouseDb {
public options: IClickhouseConstructorOptions;
public clickhouseClient: plugins.clickhouse.ClickHouse;
constructor(optionsArg: IClickhouseConstructorOptions) {
this.options = optionsArg;
}
/**
* starts the connection to the Clickhouse db
*/
public start() {
this.clickhouseClient = new plugins.clickhouse.ClickHouse({
...this.options,
basicAuth: null,
format: 'json'
});
}
}
export * from './smartclickhouse.classes.smartclickhouse';
export * from './smartclickhouse.classes.timedatatable';