Triplex - a complete solution to multi-tenancy with PG schemas

Hi @kelvinst
First of all, thanks for sharing! I am rather new to Elixir and Phoenix and I am currently working on a project where I would need multi tenancy. It seems like your work fits perfectly to my use-case but when implementing it, I was wondering if there is any possibility so I don’t have to pass the tenant to each Repo function from the controller. I am already using your Subdomain plug, so is there any possibility to directly use the subdomain that is extracted by your plugin as a prefix? Or is this even possible already?

1 Like