commit
b2f882c473
@ -92,7 +92,7 @@ Nested transactions are supported too::
|
|||||||
db = dataset.connect()
|
db = dataset.connect()
|
||||||
with db as tx1:
|
with db as tx1:
|
||||||
tx1['user'].insert(dict(name='John Doe', age=46, country='China'))
|
tx1['user'].insert(dict(name='John Doe', age=46, country='China'))
|
||||||
with db sa tx2:
|
with db as tx2:
|
||||||
tx2['user'].insert(dict(name='Jane Doe', age=37, country='France', gender='female'))
|
tx2['user'].insert(dict(name='Jane Doe', age=37, country='France', gender='female'))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user