Drivers

read transaction

A transaction that only reads, and so can be routed to any member of a cluster.

Example

A function that only reads, run by execute_read.

python
with driver.session() as session:
    def get_answer(tx, answer):
        result = tx.run("RETURN $answer AS answer", answer=answer)
 
        return result.consume()
 
    # Call the transaction function
    summary = session.execute_read(get_answer, answer=42)

Lessons that use this term

The lesson and course links below open in a new tab.

No published lesson uses this term yet.

All glossary terms