BeginExecuteBatchRequest is the payload to BeginExecuteBatch
BeginExecuteBatchResponse is the returned value from BeginExecuteBatch
BeginExecuteBatchResponse is the returned value from BeginExecuteBatch
error contains an application level error if necessary. Note the transaction_id may be set, even when an error is returned, if the begin worked but the execute failed.
transaction_id might be non-zero even if an error is present.
BeginExecuteRequest is the payload to BeginExecute
BeginExecuteRequest is the payload to BeginExecute
BeginExecuteResponse is the returned value from BeginExecute
BeginExecuteResponse is the returned value from BeginExecute
error contains an application level error if necessary. Note the transaction_id may be set, even when an error is returned, if the begin worked but the execute failed.
transaction_id might be non-zero even if an error is present.
BeginRequest is the payload to Begin
BeginRequest is the payload to Begin
BeginResponse is the returned value from Begin
BeginResponse is the returned value from Begin
BindVariable represents a single bind variable in a Query.
BindVariable represents a single bind variable in a Query.
values are set if type is TUPLE.
BoundQuery is a query with its bind variables
BoundQuery is a query with its bind variables
sql is the SQL query to execute
bind_variables is a map of all bind variables to expand in the query
CommitPreparedRequest is the payload to CommitPrepared
CommitPreparedRequest is the payload to CommitPrepared
CommitPreparedResponse is the returned value from CommitPrepared
CommitPreparedResponse is the returned value from CommitPrepared
CommitRequest is the payload to Commit
CommitRequest is the payload to Commit
CommitResponse is the returned value from Commit
CommitResponse is the returned value from Commit
ConcludeTransactionRequest is the payload to ConcludeTransaction
ConcludeTransactionRequest is the payload to ConcludeTransaction
ConcludeTransactionResponse is the returned value from ConcludeTransaction
ConcludeTransactionResponse is the returned value from ConcludeTransaction
CreateTransactionRequest is the payload to CreateTransaction
CreateTransactionRequest is the payload to CreateTransaction
CreateTransactionResponse is the returned value from CreateTransaction
CreateTransactionResponse is the returned value from CreateTransaction
EventToken is a structure that describes a point in time in a replication stream on one shard.
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.
timestamp is the MySQL timestamp of the statements. Seconds since Epoch.
The shard name that applied the statements. Note this is not set when streaming from a vttablet. It is only used on the client -> vtgate link.
The position on the replication stream after this statement was applied. It is not the transaction ID / GTID, but the position / GTIDSet.
ExecuteBatchRequest is the payload to ExecuteBatch
ExecuteBatchRequest is the payload to ExecuteBatch
ExecuteBatchResponse is the returned value from ExecuteBatch
ExecuteBatchResponse is the returned value from ExecuteBatch
ExecuteOptions is passed around for all Execute calls.
ExecuteOptions is passed around for all Execute calls.
If set, we will try to include an EventToken with the responses.
If set, the fresher field may be set as a result comparison to this token. This is a shortcut so the application doesn't need to care about comparing EventTokens.
Controls what fields are returned in Field message responses from mysql, i.e. field name, table name, etc. This is an optimization for high-QPS queries where the client knows what it's getting
ExecuteRequest is the payload to Execute
ExecuteRequest is the payload to Execute
ExecuteResponse is the returned value from Execute
ExecuteResponse is the returned value from Execute
Field describes a single column returned by a query
Field describes a single column returned by a query
name of the field as returned by mysql C API
vitess-defined type. Conversion function is in sqltypes package.
Remaining fields from mysql C API. These fields are only populated when ExecuteOptions.included_fields is set to IncludedFields.ALL.
column_length is really a uint32. All 32 bits can be used.
charset is actually a uint16. Only the lower 16 bits are used.
decimals is actualy a uint8. Only the lower 8 bits are used.
flags is actually a uint16. Only the lower 16 bits are used.
MessageAckRequest is the request payload for MessageAck.
MessageAckRequest is the request payload for MessageAck.
name is the message table name.
MessageAckResponse is the response for MessageAck.
MessageAckResponse is the response for MessageAck.
result contains the result of the ack operation. Since this acts like a DML, only RowsAffected is returned in the result.
MessageStreamRequest is the request payload for MessageStream.
MessageStreamRequest is the request payload for MessageStream.
name is the message table name.
MessageStreamResponse is a response for MessageStream.
MessageStreamResponse is a response for MessageStream.
PrepareRequest is the payload to Prepare
PrepareRequest is the payload to Prepare
PrepareResponse is the returned value from Prepare
PrepareResponse is the returned value from Prepare
QueryResult is returned by Execute and ExecuteStream.
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:]).
QuerySplit represents one query to execute on the tablet
QuerySplit represents one query to execute on the tablet
query is the query to execute
row_count is the approximate row count the query will return
ReadTransactionRequest is the payload to ReadTransaction
ReadTransactionRequest is the payload to ReadTransaction
ReadTransactionResponse is the returned value from ReadTransaction
ReadTransactionResponse is the returned value from ReadTransaction
RealtimeStats contains information about the tablet status
RealtimeStats contains information about the tablet status
health_error is the last error we got from health check, or empty is the server is healthy. This is used for subset selection, we do not send queries to servers that are not healthy.
seconds_behind_master is populated for slaves only. It indicates how far behind on (MySQL) replication a slave currently is. It is used by clients for subset selection (so we don't try to send traffic to tablets that are too far behind). NOTE: This field must not be evaluated if "health_error" is not empty. TODO(mberlin): Let's switch it to int64 instead?
bin_log_players_count is the number of currently running binlog players. if the value is 0, it means that filtered replication is currently not running on the tablet. If >0, filtered replication is running. NOTE: This field must not be evaluated if "health_error" is not empty.
seconds_behind_master_filtered_replication is populated for the receiving master of an ongoing filtered replication only. It specifies how far the receiving master lags behind the sending master. NOTE: This field must not be evaluated if "health_error" is not empty. NOTE: This field must not be evaluated if "bin_log_players_count" is 0.
cpu_usage is used for load-based balancing
qps is the average QPS (queries per second) rate in the last XX seconds where XX is usually 60 (See query_service_stats.go).
ResultExtras contains optional out-of-band information.
ResultExtras contains optional out-of-band information. Usually the extras are requested by adding ExecuteOptions flags.
event_token is populated if the include_event_token flag is set in ExecuteOptions.
If set, it means the data returned with this result is fresher than the compare_token passed in the ExecuteOptions.
ResultWithError represents a query response in the form of result or error but not both.
ResultWithError represents a query response in the form of result or error but not both. TODO: To be used in ExecuteBatchResponse and BeginExecuteBatchResponse.
error contains an query level error, only set if result is unset.
result contains the query result, only set if error is unset.
RollbackPreparedRequest is the payload to RollbackPrepared
RollbackPreparedRequest is the payload to RollbackPrepared
RollbackPreparedResponse is the returned value from RollbackPrepared
RollbackPreparedResponse is the returned value from RollbackPrepared
RollbackRequest is the payload to Rollback
RollbackRequest is the payload to Rollback
RollbackResponse is the returned value from Rollback
RollbackResponse is the returned value from Rollback
Row is a database row.
Row is a database row.
lengths contains the length of each value in values. A length of -1 means that the field is NULL. While reading values, you have to accummulate the length to know the offset where the next value begins in values.
values contains a concatenation of all values in the row.
SetRollbackRequest is the payload to SetRollback
SetRollbackRequest is the payload to SetRollback
SetRollbackResponse is the returned value from SetRollback
SetRollbackResponse is the returned value from SetRollback
SplitQueryRequest is the payload for SplitQuery sent by VTGate to a VTTablet.
SplitQueryRequest is the payload for SplitQuery sent by VTGate to a VTTablet. See vtgate.SplitQueryRequest for more details.
Exactly one of the following must be nonzero.
SplitQueryResponse is returned by SplitQuery and represents all the queries to execute in order to get the entire data set.
SplitQueryResponse is returned by SplitQuery and represents all the queries to execute in order to get the entire data set.
StartCommitRequest is the payload to StartCommit
StartCommitRequest is the payload to StartCommit
StartCommitResponse is the returned value from StartCommit
StartCommitResponse is the returned value from StartCommit
StreamEvent describes a set of transformations that happened as a single transactional unit on a server.
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.
The statements in this transaction.
The Event Token for this event.
StreamExecuteRequest is the payload to StreamExecute
StreamExecuteRequest is the payload to StreamExecute
StreamExecuteResponse is the returned value from StreamExecute
StreamExecuteResponse is the returned value from StreamExecute
StreamHealthRequest is the payload for StreamHealth
StreamHealthRequest is the payload for StreamHealth
StreamHealthResponse is streamed by StreamHealth on a regular basis
StreamHealthResponse is streamed by StreamHealth on a regular basis
target is the current server type. Only queries with that exact Target record will be accepted.
serving is true iff the tablet is serving. A tablet may not be serving if filtered replication is enabled on a master for instance, or if a replica should not be used because the keyspace is being resharded.
tablet_externally_reparented_timestamp contains the last time tabletmanager.TabletExternallyReparented was called on this tablet, or 0 if it was never called. This is meant to differentiate two tablets that report a target.TabletType of MASTER, only the one with the latest timestamp should be trusted.
realtime_stats contains information about the tablet status
Target describes what the client expects the tablet is.
Target describes what the client expects the tablet is. If the tablet does not match, an error is returned.
TransactionMetadata contains the metadata for a distributed transaction.
TransactionMetadata contains the metadata for a distributed transaction.
UpdateStreamRequest is the payload for UpdateStream.
UpdateStreamRequest is the payload for UpdateStream. At most one of position and timestamp can be set. If neither is set, we will start streaming from the current binlog position.
If position is set, we will start the streaming from that replication position. Incompatible with timestamp.
If timestamp is set, we will start the streaming from the first event in the binlogs that have that timestamp. Incompatible with position.
UpdateStreamResponse is returned by UpdateStream
UpdateStreamResponse is returned by UpdateStream
VTGateCallerID is sent by VTGate to VTTablet to describe the caller.
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.
Value represents a typed value.
Value represents a typed value.
BeginExecuteBatchRequest is the payload to BeginExecuteBatch