RunQuery executes a statement either on the running transaction or on the temporal read-only transaction. It returns row iterator and read-only transaction if the statement was executed on the read-only transaction.
(ctx context.Context, stmt spanner.Statement)
| 240 | // RunQuery executes a statement either on the running transaction or on the temporal read-only transaction. |
| 241 | // It returns row iterator and read-only transaction if the statement was executed on the read-only transaction. |
| 242 | func (s *Session) RunQuery(ctx context.Context, stmt spanner.Statement) (*spanner.RowIterator, *spanner.ReadOnlyTransaction) { |
| 243 | opts := spanner.QueryOptions{ |
| 244 | Priority: s.currentPriority(), |
| 245 | } |
| 246 | return s.runQueryWithOptions(ctx, stmt, opts) |
| 247 | } |
| 248 | |
| 249 | // RunAnalyzeQuery analyzes a statement either on the running transaction or on the temporal read-only transaction. |
| 250 | func (s *Session) RunAnalyzeQuery(ctx context.Context, stmt spanner.Statement) (*pb.QueryPlan, *pb.ResultSetMetadata, error) { |