def _SetConnection(connection):
  _thread_local.connection = connection

  os.environ[_ENV_KEY] = '1'
Sets the datastore connection local to the thread.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/datastore.py/_SetConnection