defmodule MyApp.Plugs.TenantResolver do import Plug.Conn import UniEcto.Plugin, only: [set_tenant_prefix: 1]

mix deps.get

The combination of and Ecto offers the best of both worlds: