def _get_preprocessor_loader(plugin_name):
    # NOTE(stpierre): This technically doesn't work, because
    # ResourceType subclasses aren't plugins (yet)
    def transform(cls, *args, **kwargs):
        plug = ResourceType.get(plugin_name)
        return plug.transform(*args, **kwargs)

    return type("PluginLoader_%s" % plugin_name,
                (object,),
                {"transform": classmethod(transform)})
Retrieves any constraints or keys (unique, pk, fk, check, index) across one or more columns.
dataset/ETHPy150Open openstack/rally/rally/task/types.py/_get_preprocessor_loader--crossover with--dataset/ETHPy150Open django/django/django/db/backends/sqlite3/introspection.py/DatabaseIntrospection.get_constraints