Report how many changes were done in the interface

This commit is contained in:
Bart Broere committed 2026-11-04 19:50:19 +01:00
1 parent dc978fd0fd
commit 8258bdc2a3
6 files changed
+140 -23

No files matched your search

+3 -3
View File
@@ -28,9 +28,9 @@ plans small:
transaction-local counters, streaming (06) needs a transaction to keep a server-side
cursor open, and `PROFILE` (01) needs a savepoint. All three want `Session.run` to
wrap auto-commit queries in `BEGIN ... COMMIT` instead of relying on the
connection's autocommit mode. Plan 06 only did this for read queries, which run
in a cursor's transaction; queries that can write still use autocommit, so 02 still
has to add it for them.
connection's autocommit mode. This is done: reads run in a cursor's transaction
(06), and queries that can write in one around the statistics (02). `Session._script`
runs such a transaction in one round trip.
3. **Unit tests.** The only test is the end-to-end `tests/smoke_test.py`. Most of
this work is text rewriting in `cypher.py`, which is cheap to unit test without a
database. Add `tests/test_cypher.py` (pytest) alongside the first plan that