Skip to content

Instantly share code, notes, and snippets.

@elliotchance
Created December 4, 2019 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elliotchance/b19ec8fa3d9f8345e6595e195e20aa90 to your computer and use it in GitHub Desktop.
Save elliotchance/b19ec8fa3d9f8345e6595e195e20aa90 to your computer and use it in GitHub Desktop.
class ReadUncommittedTransaction(Transaction):
def record_is_locked(self, record):
return record['expired_xid'] != 0
def record_is_visible(self, record):
return record['expired_xid'] == 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment