Skip to content

Commit

Permalink
minor updates to sql/response.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
kuron99 committed Jan 7, 2025
1 parent 0de9447 commit 70ab37c
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/jogasaki/proto/sql/response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ message Error {
* Each response message
*/

/* For response to ExecuteQuery, ExecutePreparedQuery, Commit, Rollback,
/* For response to ExecuteQuery, ExecutePreparedQuery, Commit, Rollback,
DisposePreparedStatement, DisposeTransaction and ExecuteDump. */
message ResultOnly {
oneof result {
Expand Down Expand Up @@ -284,6 +284,7 @@ message Response {
GetErrorInfo get_error_info = 10;
DisposeTransaction dispose_transaction = 11;
ExecuteResult execute_result = 12;
ExtractStatementInfo extract_statement_info = 13;
}
}

Expand All @@ -297,24 +298,13 @@ message ResultSetMetadata {
// Response of ExtractStatementInfo.
message ExtractStatementInfo {

reserved 1 to 10;

// the response body.
oneof result {
// request is successfully completed.
Success success = 11;

// error was occurred.
Error error = 12;
}

// request is successfully completed.
message Success {

// the transaction ID for the statement.
oneof transaction_id_opt {
// the corresponding transaction ID.
jogasaki.proto.sql.common.TransactionId transaction_id = 1;
common.TransactionId transaction_id = 1;
}

// the executing SQL text of the statement.
Expand All @@ -323,4 +313,16 @@ message ExtractStatementInfo {
string sql = 2;
}
}

reserved 1 to 10;

// the response body.
oneof result {
// request is successfully completed.
Success success = 11;

// error was occurred.
Error error = 12;
}

}

0 comments on commit 70ab37c

Please sign in to comment.