def in_transaction():
  from . import tasklets
  return tasklets.get_context().in_transaction()
Return whether a transaction is currently active.
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py/in_transaction