Skip to contents

Run an expression in a transaction with rollback on error

Usage

with_grafeo_transaction(db, code, isolation = "snapshot")

Arguments

db

A grafeo_db() handle.

code

An expression to evaluate in the transaction.

isolation

Transaction isolation level.

Value

The value of code, after a successful commit.