After #509 is in, We need to decouple Transaction from Connection and allow Transaction to inherit from Batch.
Things to be done
Also relevant: #447 (Transaction and Batch should not have a dataset_id until they have objects to work with)
For reference, RPC methods are:
- Lookup
- RunQuery
- BeginTransaction
- Commit
- Rollback
- AllocateIds
After #509 is in,We need to decoupleTransactionfromConnectionand allowTransactionto inherit fromBatch.Things to be done
Transactionto inherit fromBatch(Derive 'Transaction' from 'Batch'. #516)Key.get()with top-leveldatastore.get()(Rename get_entities() to get(). #520, Allow get() to take a single key (in addition to a list) #521, Remove Key.get() and Entity.reload() #522)Entity.save()with top-leveldatastore.put()(#514: adddatastore.putAPI, remove `Entity.save' #548)Key.delete()witg top-leveldatastore.delete()(Remove Key.get() and Entity.reload() #522)save_entity()anddelete_entities()fromConnection(#514: rip outConnectioncruft #550)Connection.mutation(). (#514: rip outConnectioncruft #550)Connection.transaction()(#514: rip outConnectioncruft #550)Also relevant: #447 (
TransactionandBatchshould not have adataset_iduntil they have objects to work with)For reference, RPC methods are: