|
|
@ -2,6 +2,8 @@ import _ from './env.js';
|
|
|
|
import { createClient as createClickhouseClient } from '@clickhouse/client';
|
|
|
|
import { createClient as createClickhouseClient } from '@clickhouse/client';
|
|
|
|
import type { DataFormat } from '@clickhouse/client';
|
|
|
|
import type { DataFormat } from '@clickhouse/client';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// prevent from tree-shaking:
|
|
|
|
|
|
|
|
console.log(_);
|
|
|
|
export const clickhouse = createClickhouseClient({
|
|
|
|
export const clickhouse = createClickhouseClient({
|
|
|
|
host: process.env.CLICKHOUSE_HOST || "http://localhost:8123",
|
|
|
|
host: process.env.CLICKHOUSE_HOST || "http://localhost:8123",
|
|
|
|
username:'avraham',
|
|
|
|
username:'avraham',
|
|
|
|