package query

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

message AggregateStats

query.proto:946

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 BeginExecuteRequest

query.proto:675

BeginExecuteRequest is the payload to BeginExecute

Used as request type in: queryservice.Query.BeginExecute

message BeginExecuteResponse

query.proto:686

BeginExecuteResponse is the returned value from BeginExecute

Used as response type in: queryservice.Query.BeginExecute

message BeginRequest

query.proto:536

BeginRequest is the payload to Begin

Used as request type in: queryservice.Query.Begin

message BeginResponse

query.proto:544

BeginResponse is the returned value from Begin

Used as response type in: queryservice.Query.Begin

message BeginStreamExecuteRequest

query.proto:703

BeginStreamExecuteRequest is the payload to BeginStreamExecute

Used as request type in: queryservice.Query.BeginStreamExecute

message BeginStreamExecuteResponse

query.proto:714

BeginStreamExecuteResponse is the returned value from BeginStreamExecute

Used as response type in: queryservice.Query.BeginStreamExecute

message BindVariable

query.proto:235

BindVariable represents a single bind variable in a Query.

Used in: BoundQuery, vtgate.Session

message BoundQuery

query.proto:243

BoundQuery is a query with its bind variables

Used in: BeginExecuteRequest, BeginStreamExecuteRequest, ExecuteRequest, ReserveBeginExecuteRequest, ReserveBeginStreamExecuteRequest, ReserveExecuteRequest, ReserveStreamExecuteRequest, StreamExecuteRequest, vtgate.ExecuteBatchRequest, vtgate.ExecuteRequest, vtgate.PrepareRequest, vtgate.StreamExecuteRequest

message CommitPreparedRequest

query.proto:592

CommitPreparedRequest is the payload to CommitPrepared

Used as request type in: queryservice.Query.CommitPrepared

message CommitPreparedResponse

query.proto:600

CommitPreparedResponse is the returned value from CommitPrepared

Used as response type in: queryservice.Query.CommitPrepared

(message has no fields)

message CommitRequest

query.proto:553

CommitRequest is the payload to Commit

Used as request type in: queryservice.Query.Commit

message CommitResponse

query.proto:561

CommitResponse is the returned value from Commit

Used as response type in: queryservice.Query.Commit

message CommonQueryRequest

query.proto:1117

Used as request type in: queryservice.Query.CommonQuery

message CommonQueryResponse

query.proto:1123

Used as response type in: queryservice.Query.CommonQuery

message ConcludeTransactionRequest

query.proto:651

ConcludeTransactionRequest is the payload to ConcludeTransaction

Used as request type in: queryservice.Query.ConcludeTransaction

message ConcludeTransactionResponse

query.proto:659

ConcludeTransactionResponse is the returned value from ConcludeTransaction

Used as response type in: queryservice.Query.ConcludeTransaction

(message has no fields)

message CreateTransactionRequest

query.proto:615

CreateTransactionRequest is the payload to CreateTransaction

Used as request type in: queryservice.Query.CreateTransaction

message CreateTransactionResponse

query.proto:624

CreateTransactionResponse is the returned value from CreateTransaction

Used as response type in: queryservice.Query.CreateTransaction

(message has no fields)

message DropSchemaRequest

query.proto:1073

Used as request type in: queryservice.Query.DropSchema

message DropSchemaResponse

query.proto:1078

Used as response type in: queryservice.Query.DropSchema

(message has no fields)

message EventToken

query.proto:66

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 ExecuteOptions

query.proto:253

ExecuteOptions is passed around for all Execute calls.

Used in: BeginExecuteRequest, BeginRequest, BeginStreamExecuteRequest, ExecuteRequest, ReserveBeginExecuteRequest, ReserveBeginStreamExecuteRequest, ReserveExecuteRequest, ReserveStreamExecuteRequest, StreamExecuteRequest, vtgate.Session

enum ExecuteOptions.Consolidator

query.proto:337

Used in: ExecuteOptions

enum ExecuteOptions.IncludedFields

query.proto:260

Used in: ExecuteOptions

enum ExecuteOptions.LoadBalancePolicy

query.proto:361

Used in: ExecuteOptions

enum ExecuteOptions.PlannerVersion

query.proto:318

Used in: ExecuteOptions

enum ExecuteOptions.TransactionAccessMode

query.proto:346

Used in: ExecuteOptions

enum ExecuteOptions.TransactionIsolation

query.proto:296

Used in: ExecuteOptions

enum ExecuteOptions.Workload

query.proto:276

Used in: ExecuteOptions

message ExecuteRequest

query.proto:493

ExecuteRequest is the payload to Execute

Used as request type in: queryservice.Query.Execute, queryservice.Query.ExecuteInternal

message ExecuteResponse

query.proto:504

ExecuteResponse is the returned value from Execute

Used as response type in: queryservice.Query.Execute, queryservice.Query.ExecuteInternal

message Field

query.proto:391

Field describes a single column returned by a query

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

enum Flag

query.proto:106

Flag allows us to qualify types by their common properties.

message GetSchemaRequest

query.proto:1051

GetSchemaRequest is the payload to GetSchema

Used as request type in: queryservice.Query.GetSchema

message GetSchemaResponse

query.proto:1058

GetSchemaResponse is the returned value from GetSchema

Used as response type in: queryservice.Query.GetSchema

message MessageAckRequest

query.proto:745

MessageAckRequest is the request payload for MessageAck.

Used as request type in: queryservice.Query.MessageAck

message MessageAckResponse

query.proto:755

MessageAckResponse is the response for MessageAck.

Used as response type in: queryservice.Query.MessageAck

message MessageStreamRequest

query.proto:731

MessageStreamRequest is the request payload for MessageStream.

Used as request type in: queryservice.Query.MessageStream

message MessageStreamResponse

query.proto:740

MessageStreamResponse is a response for MessageStream.

Used as response type in: queryservice.Query.MessageStream

enum MySqlFlag

query.proto:80

Flags sent from the MySQL C API

message MysqlThreadsStats

query.proto:879

MysqlThreadsStats is the result of 'show status like '%Thread%''

Used in: RealtimeStats

message PrepareRequest

query.proto:580

PrepareRequest is the payload to Prepare

Used as request type in: queryservice.Query.Prepare

message PrepareResponse

query.proto:589

PrepareResponse is the returned value from Prepare

Used as response type in: queryservice.Query.Prepare

(message has no fields)

message QueryResult

query.proto:442

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, BeginExecuteResponse, BeginStreamExecuteResponse, CommonQueryResponse, ExecuteResponse, MessageAckResponse, MessageStreamResponse, ReserveBeginExecuteResponse, ReserveBeginStreamExecuteResponse, ReserveExecuteResponse, ReserveStreamExecuteResponse, ResultWithError, ShowDMLJobResponse, StreamExecuteResponse, SubmitDMLJobResponse, tabletmanagerdata.ExecuteFetchAsAllPrivsResponse, tabletmanagerdata.ExecuteFetchAsAppResponse, tabletmanagerdata.ExecuteFetchAsDbaResponse, tabletmanagerdata.ExecuteQueryResponse, tabletmanagerdata.VDiffResponse, tabletmanagerdata.VExecResponse, tabletmanagerdata.VReplicationExecResponse, vtctldata.ExecuteFetchAsAppResponse, vtctldata.ExecuteFetchAsDBAResponse, vtgate.ExecuteResponse, vtgate.StreamExecuteResponse

message QueryWarning

query.proto:456

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:662

ReadTransactionRequest is the payload to ReadTransaction

Used as request type in: queryservice.Query.ReadTransaction

message ReadTransactionResponse

query.proto:670

ReadTransactionResponse is the returned value from ReadTransaction

Used as response type in: queryservice.Query.ReadTransaction

message RealtimeStats

query.proto:892

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

Used in: StreamHealthResponse

message ReleaseRequest

query.proto:862

ReleaseRequest is the payload to Release

Used as request type in: queryservice.Query.Release

message ReleaseResponse

query.proto:871

ReleaseResponse is the returned value from Release

Used as response type in: queryservice.Query.Release

(message has no fields)

message ReloadExecRequest

query.proto:1082

Used as request type in: queryservice.Query.ReloadExec

message ReloadExecResponse

query.proto:1086

Used as response type in: queryservice.Query.ReloadExec

(message has no fields)

message ReserveBeginExecuteRequest

query.proto:806

ReserveBeginExecuteRequest is the payload to ReserveBeginExecute

Used as request type in: queryservice.Query.ReserveBeginExecute

message ReserveBeginExecuteResponse

query.proto:817

ReserveBeginExecuteResponse is the returned value from ReserveBeginExecute

Used as response type in: queryservice.Query.ReserveBeginExecute

message ReserveBeginStreamExecuteRequest

query.proto:833

ReserveBeginStreamExecuteRequest is the payload to ReserveBeginStreamExecute

Used as request type in: queryservice.Query.ReserveBeginStreamExecute

message ReserveBeginStreamExecuteResponse

query.proto:844

ReserveBeginStreamExecuteResponse is the returned value from ReserveBeginStreamExecute

Used as response type in: queryservice.Query.ReserveBeginStreamExecute

message ReserveExecuteRequest

query.proto:763

ReserveExecuteRequest is the payload to ReserveExecute

Used as request type in: queryservice.Query.ReserveExecute

message ReserveExecuteResponse

query.proto:774

ReserveExecuteResponse is the returned value from ReserveExecute

Used as response type in: queryservice.Query.ReserveExecute

message ReserveStreamExecuteRequest

query.proto:784

ReserveStreamExecuteRequest is the payload to ReserveStreamExecute

Used as request type in: queryservice.Query.ReserveStreamExecute

message ReserveStreamExecuteResponse

query.proto:795

ReserveStreamExecuteResponse is the returned value from ReserveStreamExecute

Used as response type in: queryservice.Query.ReserveStreamExecute

message ResultWithError

query.proto:511

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:603

RollbackPreparedRequest is the payload to RollbackPrepared

Used as request type in: queryservice.Query.RollbackPrepared

message RollbackPreparedResponse

query.proto:612

RollbackPreparedResponse is the returned value from RollbackPrepared

Used as response type in: queryservice.Query.RollbackPrepared

(message has no fields)

message RollbackRequest

query.proto:567

RollbackRequest is the payload to Rollback

Used as request type in: queryservice.Query.Rollback

message RollbackResponse

query.proto:575

RollbackResponse is the returned value from Rollback

Used as response type in: queryservice.Query.Rollback

message Row

query.proto:423

Row is a database row.

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

enum SchemaTableType

query.proto:1044

SchemaTableType represents the type of table requested.

Used in: GetSchemaRequest

message SetFailPointRequest

query.proto:1063

Used as request type in: queryservice.Query.SetFailPoint

message SetFailPointResponse

query.proto:1069

Used as response type in: queryservice.Query.SetFailPoint

message SetRollbackRequest

query.proto:639

SetRollbackRequest is the payload to SetRollback

Used as request type in: queryservice.Query.SetRollback

message SetRollbackResponse

query.proto:648

SetRollbackResponse is the returned value from SetRollback

Used as response type in: queryservice.Query.SetRollback

(message has no fields)

message ShowDMLJobRequest

query.proto:1108

Used as request type in: queryservice.Query.ShowDMLJob

message ShowDMLJobResponse

query.proto:1113

Used as response type in: queryservice.Query.ShowDMLJob

message StartCommitRequest

query.proto:627

StartCommitRequest is the payload to StartCommit

Used as request type in: queryservice.Query.StartCommit

message StartCommitResponse

query.proto:636

StartCommitResponse is the returned value from StartCommit

Used as response type in: queryservice.Query.StartCommit

(message has no fields)

message StreamEvent

query.proto:464

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:466

One individual Statement in a transaction.

Used in: StreamEvent

enum StreamEvent.Statement.Category

query.proto:468

The category of one statement.

Used in: Statement

message StreamExecuteRequest

query.proto:520

StreamExecuteRequest is the payload to StreamExecute

Used as request type in: queryservice.Query.StreamExecute

message StreamExecuteResponse

query.proto:531

StreamExecuteResponse is the returned value from StreamExecute

Used as response type in: queryservice.Query.StreamExecute

message StreamHealthRequest

query.proto:875

StreamHealthRequest is the payload for StreamHealth

Used as request type in: queryservice.Query.StreamHealth

(message has no fields)

message StreamHealthResponse

query.proto:969

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 SubmitDMLJobRequest

query.proto:1089

Used as request type in: queryservice.Query.SubmitDMLJob

message SubmitDMLJobResponse

query.proto:1104

Used as response type in: queryservice.Query.SubmitDMLJob

message TabletInfoToDisplay

query.proto:385

Used in: ExecuteOptions

message Target

query.proto:39

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, BeginExecuteRequest, BeginRequest, BeginStreamExecuteRequest, CommitPreparedRequest, CommitRequest, ConcludeTransactionRequest, CreateTransactionRequest, DropSchemaRequest, ExecuteRequest, GetSchemaRequest, MessageAckRequest, MessageStreamRequest, PrepareRequest, ReadTransactionRequest, ReleaseRequest, ReserveBeginExecuteRequest, ReserveBeginStreamExecuteRequest, ReserveExecuteRequest, ReserveStreamExecuteRequest, RollbackPreparedRequest, RollbackRequest, SetRollbackRequest, StartCommitRequest, StreamExecuteRequest, StreamHealthResponse, TransactionMetadata, vtgate.Session.ShardSession

message TransactionMetadata

query.proto:1035

TransactionMetadata contains the metadata for a distributed transaction.

Used in: ReadTransactionResponse

enum TransactionState

query.proto:1027

TransactionState represents the state of a distributed transaction.

Used in: TransactionMetadata

enum Type

query.proto:118

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

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

message VTGateCallerID

query.proto:56

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, BeginExecuteRequest, BeginRequest, BeginStreamExecuteRequest, CommitPreparedRequest, CommitRequest, ConcludeTransactionRequest, CreateTransactionRequest, ExecuteRequest, MessageAckRequest, MessageStreamRequest, PrepareRequest, ReadTransactionRequest, ReleaseRequest, ReserveBeginExecuteRequest, ReserveBeginStreamExecuteRequest, ReserveExecuteRequest, ReserveStreamExecuteRequest, RollbackPreparedRequest, RollbackRequest, SetRollbackRequest, StartCommitRequest, StreamExecuteRequest

message Value

query.proto:229

Value represents a typed value.

Used in: BindVariable, MessageAckRequest