@staticmethod
    def insert_allocator(index, allocator):
        ram = ResourceAllocationManager._get_instance()
        with ResourceAllocationManager._lock:
            name = allocator.name
            for alloc in ram._allocators:
                if alloc.name == name:
                    raise RuntimeError('allocator named %r already exists' % name)
            ram._allocators.insert(index, allocator)
Run before any SQL to let database-specific config be sent as a command,
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/resource.py/ResourceAllocationManager.insert_allocator--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/South-1.0.2/south/db/generic.py/DatabaseOperations.connection_init