def _GetConnection():
 __InitConnection()
 return _thread_local.connection_stack[(-1)]

def _GetConnection ( ) : __InitConnection ( ) return _thread_local . connection_stack [ ( - 1 ) ]
internal method to retrieve a datastore connection local to the thread .