package query

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message AggregateStats

query.proto:798

AggregateStats contains information about the health of a group of tablets for a Target. It is used to propagate stats from a vtgate to another, or from the Gateway layer of a vtgate to the routing layer.

message BeginExecuteBatchRequest

query.proto:641

BeginExecuteBatchRequest is the payload to BeginExecuteBatch

Used as request type in: queryservice.Query.BeginExecuteBatch

message BeginExecuteBatchResponse

query.proto:651

BeginExecuteBatchResponse is the returned value from BeginExecuteBatch

Used as response type in: queryservice.Query.BeginExecuteBatch

message BeginExecuteRequest

query.proto:616

BeginExecuteRequest is the payload to BeginExecute

Used as request type in: queryservice.Query.BeginExecute

message BeginExecuteResponse

query.proto:627

BeginExecuteResponse is the returned value from BeginExecute

Used as response type in: queryservice.Query.BeginExecute

message BeginRequest

query.proto:481

BeginRequest is the payload to Begin

Used as request type in: queryservice.Query.Begin

message BeginResponse

query.proto:489

BeginResponse is the returned value from Begin

Used as response type in: queryservice.Query.Begin

message BindVariable

query.proto:218

BindVariable represents a single bind variable in a Query.

Used in: BoundQuery, vtgate.Session

message BoundQuery

query.proto:226

BoundQuery is a query with its bind variables

Used in: BeginExecuteBatchRequest, BeginExecuteRequest, ExecuteBatchRequest, ExecuteRequest, ReserveBeginExecuteRequest, ReserveExecuteRequest, StreamExecuteRequest, vtgate.ExecuteBatchRequest, vtgate.ExecuteRequest, vtgate.StreamExecuteRequest

message CommitPreparedRequest

query.proto:533

CommitPreparedRequest is the payload to CommitPrepared

Used as request type in: queryservice.Query.CommitPrepared

message CommitPreparedResponse

query.proto:541

CommitPreparedResponse is the returned value from CommitPrepared

Used as response type in: queryservice.Query.CommitPrepared

(message has no fields)

message CommitRequest

query.proto:495

CommitRequest is the payload to Commit

Used as request type in: queryservice.Query.Commit

message CommitResponse

query.proto:503

CommitResponse is the returned value from Commit

Used as response type in: queryservice.Query.Commit

message ConcludeTransactionRequest

query.proto:592

ConcludeTransactionRequest is the payload to ConcludeTransaction

Used as request type in: queryservice.Query.ConcludeTransaction

message ConcludeTransactionResponse

query.proto:600

ConcludeTransactionResponse is the returned value from ConcludeTransaction

Used as response type in: queryservice.Query.ConcludeTransaction

(message has no fields)

message CreateTransactionRequest

query.proto:556

CreateTransactionRequest is the payload to CreateTransaction

Used as request type in: queryservice.Query.CreateTransaction

message CreateTransactionResponse

query.proto:565

CreateTransactionResponse is the returned value from CreateTransaction

Used as response type in: queryservice.Query.CreateTransaction

(message has no fields)

message EventToken

query.proto:58

EventToken is a structure that describes a point in time in a replication stream on one shard. The most recent known replication position can be retrieved from vttablet when executing a query. It is also sent with the replication streams from the binlog service.

Used in: binlogdata.BinlogTransaction, StreamEvent

message ExecuteBatchRequest

query.proto:450

ExecuteBatchRequest is the payload to ExecuteBatch

Used as request type in: queryservice.Query.ExecuteBatch

message ExecuteBatchResponse

query.proto:461

ExecuteBatchResponse is the returned value from ExecuteBatch

Used as response type in: queryservice.Query.ExecuteBatch

message ExecuteOptions

query.proto:236

ExecuteOptions is passed around for all Execute calls.

Used in: BeginExecuteBatchRequest, BeginExecuteRequest, BeginRequest, ExecuteBatchRequest, ExecuteRequest, ReserveBeginExecuteRequest, ReserveExecuteRequest, StreamExecuteRequest, vtgate.ExecuteBatchRequest, vtgate.ExecuteRequest, vtgate.Session, vtgate.StreamExecuteRequest

enum ExecuteOptions.IncludedFields

query.proto:243

Used in: ExecuteOptions

enum ExecuteOptions.TransactionIsolation

query.proto:279

Used in: ExecuteOptions

enum ExecuteOptions.Workload

query.proto:259

Used in: ExecuteOptions

message ExecuteRequest

query.proto:423

ExecuteRequest is the payload to Execute

Used as request type in: queryservice.Query.Execute

message ExecuteResponse

query.proto:434

ExecuteResponse is the returned value from Execute

Used as response type in: queryservice.Query.Execute

message Field

query.proto:303

Field describes a single column returned by a query

Used in: binlogdata.FieldEvent, binlogdata.MinimalTable, binlogdata.VStreamResultsResponse, binlogdata.VStreamRowsResponse, QueryResult, StreamEvent.Statement, tabletmanagerdata.TableDefinition

enum Flag

query.proto:98

Flag allows us to qualify types by their common properties.

message MessageAckRequest

query.proto:679

MessageAckRequest is the request payload for MessageAck.

Used as request type in: queryservice.Query.MessageAck

message MessageAckResponse

query.proto:689

MessageAckResponse is the response for MessageAck.

Used as response type in: queryservice.Query.MessageAck

message MessageStreamRequest

query.proto:665

MessageStreamRequest is the request payload for MessageStream.

Used as request type in: queryservice.Query.MessageStream

message MessageStreamResponse

query.proto:674

MessageStreamResponse is a response for MessageStream.

Used as response type in: queryservice.Query.MessageStream

enum MySqlFlag

query.proto:72

Flags sent from the MySQL C API

message NativeRow

query.proto:360

NativeRow is for Native mysql protocol

Used in: QueryResult

message PrepareRequest

query.proto:521

PrepareRequest is the payload to Prepare

Used as request type in: queryservice.Query.Prepare

message PrepareResponse

query.proto:530

PrepareResponse is the returned value from Prepare

Used as response type in: queryservice.Query.Prepare

(message has no fields)

message QueryResult

query.proto:373

QueryResult is returned by Execute and ExecuteStream. As returned by Execute, len(fields) is always equal to len(row) (for each row in rows). As returned by StreamExecute, the first QueryResult has the fields set, and subsequent QueryResult have rows set. And as Execute, len(QueryResult[0].fields) is always equal to len(row) (for each row in rows for each QueryResult in QueryResult[1:]).

Used in: binlogdata.TableLastPK, binlogdata.VStreamRowsRequest, BeginExecuteBatchResponse, BeginExecuteResponse, ExecuteBatchResponse, ExecuteResponse, MessageAckResponse, MessageStreamResponse, ReserveBeginExecuteResponse, ReserveExecuteResponse, ResultWithError, StreamExecuteResponse, tabletmanagerdata.ExecuteFetchAsAllPrivsResponse, tabletmanagerdata.ExecuteFetchAsAppResponse, tabletmanagerdata.ExecuteFetchAsDbaResponse, tabletmanagerdata.VReplicationExecResponse, vtgate.ExecuteResponse, vtgate.StreamExecuteResponse

message QueryWarning

query.proto:386

QueryWarning is used to convey out of band query execution warnings by storing in the vtgate.Session

Used in: vtgate.Session

message ReadTransactionRequest

query.proto:603

ReadTransactionRequest is the payload to ReadTransaction

Used as request type in: queryservice.Query.ReadTransaction

message ReadTransactionResponse

query.proto:611

ReadTransactionResponse is the returned value from ReadTransaction

Used as response type in: queryservice.Query.ReadTransaction

message RealtimeStats

query.proto:759

RealtimeStats contains information about the tablet status. It is only valid for a single tablet.

Used in: StreamHealthResponse

message ReleaseRequest

query.proto:741

ReleaseRequest is the payload to Release

Used as request type in: queryservice.Query.Release

message ReleaseResponse

query.proto:750

ReleaseResponse is the returned value from Release

Used as response type in: queryservice.Query.Release

(message has no fields)

message ReserveBeginExecuteRequest

query.proto:718

ReserveBeginExecuteRequest is the payload to ReserveBeginExecute

Used as request type in: queryservice.Query.ReserveBeginExecute

message ReserveBeginExecuteResponse

query.proto:728

ReserveBeginExecuteResponse is the returned value from ReserveBeginExecute

Used as response type in: queryservice.Query.ReserveBeginExecute

message ReserveExecuteRequest

query.proto:697

ReserveExecuteRequest is the payload to ReserveExecute

Used as request type in: queryservice.Query.ReserveExecute

message ReserveExecuteResponse

query.proto:708

ReserveExecuteResponse is the returned value from ReserveExecute

Used as response type in: queryservice.Query.ReserveExecute

message ResultWithError

query.proto:441

ResultWithError represents a query response in the form of result or error but not both. TODO: To be used in ExecuteBatchResponse and BeginExecuteBatchResponse.

Used in: vtgate.ExecuteBatchResponse

message RollbackPreparedRequest

query.proto:544

RollbackPreparedRequest is the payload to RollbackPrepared

Used as request type in: queryservice.Query.RollbackPrepared

message RollbackPreparedResponse

query.proto:553

RollbackPreparedResponse is the returned value from RollbackPrepared

Used as response type in: queryservice.Query.RollbackPrepared

(message has no fields)

message RollbackRequest

query.proto:508

RollbackRequest is the payload to Rollback

Used as request type in: queryservice.Query.Rollback

message RollbackResponse

query.proto:516

RollbackResponse is the returned value from Rollback

Used as response type in: queryservice.Query.Rollback

message Row

query.proto:349

Row is a database row.

Used in: binlogdata.RowChange, binlogdata.VStreamResultsResponse, binlogdata.VStreamRowsResponse, QueryResult, StreamEvent.Statement

message SetRollbackRequest

query.proto:580

SetRollbackRequest is the payload to SetRollback

Used as request type in: queryservice.Query.SetRollback

message SetRollbackResponse

query.proto:589

SetRollbackResponse is the returned value from SetRollback

Used as response type in: queryservice.Query.SetRollback

(message has no fields)

message StartCommitRequest

query.proto:568

StartCommitRequest is the payload to StartCommit

Used as request type in: queryservice.Query.StartCommit

message StartCommitResponse

query.proto:577

StartCommitResponse is the returned value from StartCommit

Used as response type in: queryservice.Query.StartCommit

(message has no fields)

message StreamEvent

query.proto:394

StreamEvent describes a set of transformations that happened as a single transactional unit on a server. It is streamed back by the Update Stream calls.

message StreamEvent.Statement

query.proto:396

One individual Statement in a transaction.

Used in: StreamEvent

enum StreamEvent.Statement.Category

query.proto:398

The category of one statement.

Used in: Statement

message StreamExecuteRequest

query.proto:466

StreamExecuteRequest is the payload to StreamExecute

Used as request type in: queryservice.Query.StreamExecute

message StreamExecuteResponse

query.proto:476

StreamExecuteResponse is the returned value from StreamExecute

Used as response type in: queryservice.Query.StreamExecute

message StreamHealthRequest

query.proto:754

StreamHealthRequest is the payload for StreamHealth

Used as request type in: queryservice.Query.StreamHealth

(message has no fields)

message StreamHealthResponse

query.proto:821

StreamHealthResponse is streamed by StreamHealth on a regular basis. It is expected to be used between a vtgate and vttablet: - target describes the tablet. - realtime_stats is set. - aggregate_stats is not set (deprecated)

Used as response type in: queryservice.Query.StreamHealth

message Target

query.proto:32

Target describes what the client expects the tablet is. If the tablet does not match, an error is returned.

Used in: binlogdata.VStreamRequest, binlogdata.VStreamResultsRequest, binlogdata.VStreamRowsRequest, BeginExecuteBatchRequest, BeginExecuteRequest, BeginRequest, CommitPreparedRequest, CommitRequest, ConcludeTransactionRequest, CreateTransactionRequest, ExecuteBatchRequest, ExecuteRequest, MessageAckRequest, MessageStreamRequest, PrepareRequest, ReadTransactionRequest, ReleaseRequest, ReserveBeginExecuteRequest, ReserveExecuteRequest, RollbackPreparedRequest, RollbackRequest, SetRollbackRequest, StartCommitRequest, StreamExecuteRequest, StreamHealthResponse, TransactionMetadata, vtgate.Session.ShardSession

message TransactionMetadata

query.proto:885

TransactionMetadata contains the metadata for a distributed transaction.

Used in: ReadTransactionResponse

enum TransactionState

query.proto:877

TransactionState represents the state of a distributed transaction.

Used in: TransactionMetadata

enum Type

query.proto:110

Type defines the various supported data types in bind vars and query results.

Used in: BindVariable, Field, Value, vschema.Column

message VTGateCallerID

query.proto:49

VTGateCallerID is sent by VTGate to VTTablet to describe the caller. If possible, this information is secure. For instance, if using unique certificates that guarantee that VTGate->VTTablet traffic cannot be spoofed, then VTTablet can trust this information, and VTTablet will use it for tablet ACLs, for instance. Because of this security guarantee, this is different than the CallerID structure, which is not secure at all, because it is provided by the Vitess client.

Used in: binlogdata.VStreamRequest, binlogdata.VStreamResultsRequest, binlogdata.VStreamRowsRequest, BeginExecuteBatchRequest, BeginExecuteRequest, BeginRequest, CommitPreparedRequest, CommitRequest, ConcludeTransactionRequest, CreateTransactionRequest, ExecuteBatchRequest, ExecuteRequest, MessageAckRequest, MessageStreamRequest, PrepareRequest, ReadTransactionRequest, ReleaseRequest, ReserveBeginExecuteRequest, ReserveExecuteRequest, RollbackPreparedRequest, RollbackRequest, SetRollbackRequest, StartCommitRequest, StreamExecuteRequest

message Value

query.proto:212

Value represents a typed value.

Used in: BindVariable, MessageAckRequest