MCPcopy Create free account
hub / github.com/cloudspannerecosystem/spanner-cli / InReadOnlyTransaction

Method InReadOnlyTransaction

session.go:118–120  ·  view source on GitHub ↗

InReadOnlyTransaction returns true if the session is running read-only transaction.

()

Source from the content-addressed store, hash-verified

116
117// InReadOnlyTransaction returns true if the session is running read-only transaction.
118func (s *Session) InReadOnlyTransaction() bool {
119 return s.tc != nil && s.tc.roTxn != nil
120}
121
122// BeginReadWriteTransaction starts read-write transaction.
123func (s *Session) BeginReadWriteTransaction(ctx context.Context, isolation_level pb.TransactionOptions_IsolationLevel, priority pb.RequestOptions_Priority, tag string) error {

Callers 11

runQueryWithOptionsMethod · 0.95
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80
ExecuteMethod · 0.80
getInterpolatedPromptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected