ex_admin icon indicating copy to clipboard operation
ex_admin copied to clipboard

Multi-Repo Support

Open OvermindDL1 opened this issue 8 years ago • 5 comments

Any chance for Multi-Repo support (perhaps a drop-down box that selects a repo via something like /admin/repo to /admin/ldaprepo or so? I have an Ecto Repo for Postgre, an Ecto Repo for LDAP (as well as direct access via erlang's library so if I had to write it in to ex_admin directly somehow if you have a pluggable area for that, that would work), and I might have to add in a nosql store Repo later as well...

OvermindDL1 avatar Jun 07 '16 14:06 OvermindDL1

I’ll have to think about this. Multiple SQL repos should not be too difficult. They could be defined in the resource file. Does LDAP repo work today? I’ve never tried it. Nor have I tried no-sql repos either.

On Jun 7, 2016, at 10:52 AM, OvermindDL1 [email protected] wrote:

Any chance for Multi-Repo support (perhaps a drop-down box that selects a repo via something like /admin/repo to /admin/ldaprepo or so? I have an Ecto Repo for Postgre, and Ecto Repo for LDAP (as well as direct access via erlang's library so if I had to write it in to ex_admin directly somehow if you have a pluggable area for that, that would work), and I might have to add in a nosql store Repo later as well...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/smpallen99/ex_admin/issues/138, or mute the thread https://github.com/notifications/unsubscribe/AA2YpaBNu7QH2XwDKEa47x1vSMq3jP0Uks5qJYXEgaJpZM4IwAue.

smpallen99 avatar Jun 07 '16 16:06 smpallen99

There is an ecto_ldap adapter for ecto 1, I am currently in the process of rewriting it to ecto 2 (with some additional overhauls). LDAP is exposed very much like a KV store, like mongo or so, however it has better lookup options that is more SQL'ish without the joins and such.

OvermindDL1 avatar Jun 08 '16 01:06 OvermindDL1

+1 for multi-repo support. I'm currently experimenting with building an umbrella project with 2 SQL Repos (each in a separate OTP app) and being able to manage both from ExAdmin would be a nice addition.

wojtekmach avatar Aug 07 '16 13:08 wojtekmach

is there a wip about this?, I'd like to contribute

mrkaspa avatar Dec 04 '16 23:12 mrkaspa

I too would like to contribute to this.

I'm presuming the recent-ish updates to Ecto might make this a bit easier.

tosbourn avatar Jul 26 '17 10:07 tosbourn