fix(core): update
This commit is contained in:
28
ts/index.ts
28
ts/index.ts
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user