MCPcopy Index your code
hub / github.com/cloudspannerecosystem/spanner-cli / InReadWriteTransaction

Method InReadWriteTransaction

session.go:113–115  ·  view source on GitHub ↗

InReadWriteTransaction returns true if the session is running read-write transaction.

()

Source from the content-addressed store, hash-verified

111
112// InReadWriteTransaction returns true if the session is running read-write transaction.
113func (s *Session) InReadWriteTransaction() bool {
114 return s.tc != nil && s.tc.rwTxn != nil
115}
116
117// InReadOnlyTransaction returns true if the session is running read-only transaction.
118func (s *Session) InReadOnlyTransaction() bool {

Callers 15

runQueryWithOptionsMethod · 0.95
RunUpdateMethod · 0.95
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected