dsnparse icon indicating copy to clipboard operation
dsnparse copied to clipboard

Flesh out the parse_class?

Open Jaymon opened this issue 2 years ago • 1 comments

Both morp and prom have similar Connection classes. Would it be worth fleshing out the base class with the base functionality here and then letting prom and morp extend it?

Jaymon avatar Feb 07 '23 19:02 Jaymon

I do some variation of this in morp, prom, and caches:

        d = {
            "caches.interface.Redis": set(["redis"]),
        }

        kv = v.lower()
        for interface_name, vals in d.items():
            if kv in vals:
                ret = interface_name
                break

It would be great to make this natively supported

Jaymon avatar Jul 08 '23 17:07 Jaymon