Open Jaymon opened 8 years ago
We should be able to pass in serializable=True to the transaction method to cause the begin to do:
serializable=True
BEGIN ISOLATION LEVEL SERIALIZABLE;
Also, it would be cool to add a .lock() method to query that would cause it to add the FOR UPDATE at the end:
.lock()
FOR UPDATE
SELECT balance FROM accounts WHERE user_id = 1 FOR UPDATE;
via
We should be able to pass in
serializable=True
to the transaction method to cause the begin to do:Also, it would be cool to add a
.lock()
method to query that would cause it to add theFOR UPDATE
at the end:via