summaryrefslogtreecommitdiff
path: root/lib/silmataivas/repo.ex
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2025-07-14 19:34:59 +0300
committerDawid Rycerz <dawid@rycerz.xyz>2025-07-14 19:34:59 +0300
commit50ce8cb96b2b218751c2fc2a6b19372f51846acc (patch)
treee2c634d2ce856062d527667d47815a05a53361c8 /lib/silmataivas/repo.ex
parent0ab2e5ba2b0631b28b5b1405559237b3913c878f (diff)
feat: rewrite in rust
Diffstat (limited to 'lib/silmataivas/repo.ex')
-rw-r--r--lib/silmataivas/repo.ex20
1 files changed, 0 insertions, 20 deletions
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