From 50ce8cb96b2b218751c2fc2a6b19372f51846acc Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 14 Jul 2025 19:34:59 +0300 Subject: feat: rewrite in rust --- lib/silmataivas/repo.ex | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 lib/silmataivas/repo.ex (limited to 'lib/silmataivas/repo.ex') diff --git a/lib/silmataivas/repo.ex b/lib/silmataivas/repo.ex deleted file mode 100644 index d1bbcca..0000000 --- a/lib/silmataivas/repo.ex +++ /dev/null @@ -1,20 +0,0 @@ -defmodule Silmataivas.Repo do - use Ecto.Repo, - otp_app: :silmataivas, - adapter: Ecto.Adapters.SQLite3 - - @doc """ - Dynamic adapter configuration based on application environment. - - This will be automatically called by Ecto during startup. - """ - def init(_type, config) do - # Check for adapter in config, fall back to Ecto.Adapters.SQLite3 - adapter = - config[:adapter] || - Application.get_env(:silmataivas, Silmataivas.Repo, [])[:adapter] || - Ecto.Adapters.SQLite3 - - {:ok, Keyword.put(config, :adapter, adapter)} - end -end -- cgit v1.2.3