Extract Database Modules (for Phoenix App.) into Their Own Library?

Just $ mix new my_lib. You’ll need at least ecto as a dep, possibly ecto_sql.