diff --git a/clickhouse.ts b/clickhouse.ts index bbfd30e..806c59a 100644 --- a/clickhouse.ts +++ b/clickhouse.ts @@ -5,10 +5,12 @@ import { Env } from "@humanwhocodes/env"; dotenv.config(); const env = new Env(); +const CLICKHOUSE_URL = env.require("CLICKHOUSE_URL"); const CLICKHOUSE_USERNAME = env.require("CLICKHOUSE_USERNAME"); const CLICKHOUSE_PASSWORD = env.require("CLICKHOUSE_PASSWORD"); export const client = createClient({ + url: CLICKHOUSE_URL, username: CLICKHOUSE_USERNAME, password: CLICKHOUSE_PASSWORD, clickhouse_settings: { @@ -19,7 +21,7 @@ export const client = createClient({ }, }); -client.insert({ - table: "option_quotes", - values: [], -}); +// client.insert({ +// table: "option_quotes", +// values: [], +// });