From b6e3d121b39961cfd421b548ac0f4e715b40b3d5 Mon Sep 17 00:00:00 2001 From: tmartin8080 Date: Thu, 22 Dec 2022 09:52:40 -0500 Subject: [PATCH] Ensure started --- lib/clickhouse_ecto/storage.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/clickhouse_ecto/storage.ex b/lib/clickhouse_ecto/storage.ex index 92f5ab7..ac666ab 100644 --- a/lib/clickhouse_ecto/storage.ex +++ b/lib/clickhouse_ecto/storage.ex @@ -57,6 +57,9 @@ defmodule ClickhouseEcto.Storage do end defp run_query(sql, opts) do + {:ok, _} = Application.ensure_all_started(:ecto_sql) + {:ok, _} = Application.ensure_all_started(:clickhousex) + opts = opts |> Keyword.drop([:name, :log, :pool, :pool_size])