Skip to content

Commit

Permalink
Refactor Clickhouse configuration imports for improved clarity and ty…
Browse files Browse the repository at this point in the history
…pe usage
  • Loading branch information
simlarsen committed Nov 18, 2024
1 parent e2da9b5 commit 2f738f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/Server/Infrastructure/ClickhouseConfig.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { NodeClickHouseClientConfigOptions } from "@clickhouse/client/dist/config";
import {
ClickHouseIsHostHttps,
ClickhouseDatabase,
Expand All @@ -10,7 +11,6 @@ import {
ClickhouseUsername,
ShouldClickhouseSslEnable,
} from "../EnvironmentConfig";
import { NodeClickHouseClientConfigOptions } from "@clickhouse/client/dist/client";

export type ClickHouseClientConfigOptions = NodeClickHouseClientConfigOptions;

Expand Down
3 changes: 1 addition & 2 deletions Common/Server/Infrastructure/ClickhouseDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import {
import { ClickHouseClient, PingResult, createClient } from "@clickhouse/client";
import DatabaseNotConnectedException from "Common/Types/Exception/DatabaseNotConnectedException";
import Sleep from "Common/Types/Sleep";
import Stream from "stream";

export type ClickhouseClient = ClickHouseClient<Stream.Readable>;
export type ClickhouseClient = ClickHouseClient;

export default class ClickhouseDatabase {
private dataSource!: ClickhouseClient | null;
Expand Down

0 comments on commit 2f738f8

Please sign in to comment.