execute
Runs action on the session for the current context.
Inside a transaction on this thread that is the transaction's session, and the work joins it. Outside one, a session is obtained for this call and given back when it returns - so two calls in a row are two transactions of the server's own making, exactly as two auto-commit statements are.
Return
Whatever action produced.
Parameters
action
The work to run against the session.