Class SnapshotCheckout (3.46.0)

SnapshotCheckout(database, **kw)

Context manager for using a snapshot from a database.

Inside the context manager, checks out a session from the database, creates a snapshot from it, making the snapshot available.

Caller must not use the snapshot to perform API requests outside the scope of the context manager.


kw dict

Passed through to Snapshot constructor.

database Database

database to use




Begin with block.


__exit__(exc_type, exc_val, exc_tb)

End with block.