Starts a session-scoped transaction and returns a handle. The handle buffers statements and flushes them on commit().
Arguments
| Argument | Description |
|---|---|
session | An optional session id. |
Handle methods
The returned handle exposes:
query(query, bindings_json)to buffer a statement.create(thing, content_json)andselect(thing)convenience wrappers.commit()to run the buffered statements atomically.cancel()to discard them.