aseigo

aseigo

Explor Elixir E6: Multitenant Apps with Ecto and Triplex

I am finally back with another episode of Exploring Elixir. Sorry for the long wait! My August was split between vacation and starting a new adventure at work, so EE got punted for the month. Back to weekly episodes now though …

In episode 6, we look at using Ecto and Triplex to create multitenant applications. Even for those who have used these tools before, there may be a couple tips in there for you yet, such as how to get the prefix to use from inside a Triplex migration ..

Hope you enjoy, as always!

Most Liked

kelvinst

kelvinst

Triplex author here! Really glad to see you enjoyed it to the point of making a video using it!

Your video is really awesome! It has a really nice overview for who wonders what does it do.

I was working on an article/tutorial of how to use it (@BarelyFunctional asked for it), but got no time to finish it yet! I promise I’ll work on it soon…

About the use of prefixes on migrations, that’s a nice catch. I actually had this problem but forgot to document my solution. Just a little thing you probably missed: there is a function that gets the prefix of the running migration for you - Ecto.Migration.prefix/0. It does exactly what you do, but without that much work! :wink:

Thanks @aseigo for all your work!

kelvinst

kelvinst

Added! Thanks for the suggestion!

petersonfs

petersonfs

@kelvinst get a look :slight_smile:

Where Next?

Popular in Screencasts Top

dgamidov
So cool! @pragdave New (short) screencast about making pipelines more functional with anonymous functions. Put This in Your Pipe(line)
New
Corys
I got a new video up on doing multi tenancy in phoenix 1.3 using Apartmentex. Lemme know if any questions. :grinning: http://www.schmi...
New
ElixirCasts
I made an episode that shows how you can use the great Number package to convert numbers to different formats like currency, percent, and...
New
ElixirCasts
Hello everyone, these are the episodes that are part the Alchemist’s Edition, which is the paid subscription that helps support ElixirCas...
New
CinderellaMan
Hello everyone :waving_hand: Officially this is the most intense/demanding video that I ever released :slight_smile: The video sums up ...
New
mplatts
Elixir & Phoenix Testing 101 Hi guys, I’d like to get into creating more educational videos focuses on building web apps with Phoenix...
New
calebjosue
I’ve made a video on how to install Erlang (26.2.1) and Elixir (1.16.1) on GNU/Linux Debian 12 (Bookworm). Thanks!
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 40042 209
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New

We're in Beta

About us Mission Statement