fn read_only_txn(set_clause: Option<&str>, body: &str) -> StringExpand description
Wraps body in a BEGIN READ ONLY; <set_clause>; <body>; COMMIT; frame so
set_clause is scoped to this read and does not leak into the session.
Without a set_clause the read runs on the session’s default cluster.
NOTE: the newline before ; COMMIT; stops a trailing -- comment in body
from swallowing the COMMIT.