We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a976539 commit 1bd55b0Copy full SHA for 1bd55b0
README.md
@@ -349,6 +349,26 @@ self.db.execute_batch([
349
])
350
```
351
352
+## Transactions
353
+```python
354
+# Execute a transaction
355
+action = """
356
+ function () {
357
+ var db = require('internal').db;
358
+ db.col01.save({ _key: 'doc01'});
359
+ db.col02.save({ _key: 'doc02'});
360
+ return 'success!';
361
+ }
362
+"""
363
+res = self.arango.execute_transaction(
364
+ action=action,
365
+ read_collections=["col01","col02"],
366
+ write_collections=["col01", "col02"],
367
+ wait_for_sync=True,
368
+ lock_timeout=10000
369
+)
370
+```
371
+
372
## Running System Tests (requires ArangoDB on localhost)
373
```bash
374
nosetests
0 commit comments