'Bind operations for a mapper to a Connectable.
mapper
A mapper instance or mapped class
bind
Any Connectable: a ``Engine`` or ``Connection``.
All subsequent operations involving this mapper will use the given
`bind`.'

def bind_mapper(self, mapper, bind):

    if isinstance(mapper, type):
        mapper = class_mapper(mapper)
    self.__binds[mapper.base_mapper] = bind
    for t in mapper._all_tables:
        self.__binds[t] = bind
