mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 15:24:55 +00:00
22 lines
688 B
TypeScript
22 lines
688 B
TypeScript
import {
|
|
ClickhouseDatabase,
|
|
ClickhouseHost,
|
|
ClickhousePassword,
|
|
ClickhousePort,
|
|
ClickhouseUsername,
|
|
} from '../EnvironmentConfig';
|
|
import { NodeClickHouseClientConfigOptions } from '@clickhouse/client/dist/client';
|
|
|
|
export type ClickHouseClientConfigOptions = NodeClickHouseClientConfigOptions;
|
|
|
|
export const dataSourceOptions: ClickHouseClientConfigOptions = {
|
|
host: `http://${ClickhouseHost.toString()}:${ClickhousePort.toNumber()}`,
|
|
username: ClickhouseUsername,
|
|
password: ClickhousePassword,
|
|
database: ClickhouseDatabase,
|
|
application: 'oneuptime',
|
|
};
|
|
|
|
export const testDataSourceOptions: ClickHouseClientConfigOptions =
|
|
dataSourceOptions;
|