Skip to content

Commit

Permalink
update sql proto. files to be the same as jogasaki
Browse files Browse the repository at this point in the history
  • Loading branch information
t-horikawa committed Feb 10, 2025
1 parent 63156b0 commit f01b93c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
24 changes: 14 additions & 10 deletions mock/jogasaki/proto/sql/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -211,28 +211,32 @@ message DateTimeInterval {
// the character large object value.
message Clob {

// the channel name to transfer this large object data.
string channel_name = 1;

// the data of this large object.
oneof data {
// the object value is stored in the file (don't across the network, only for used in the local system).
string local_path = 1;

// the channel name to transmit this object value.
string channel_name = 2;

// absolute path of the large object data on the local file system (only for privileged mode)
string local_path = 2;
// the immediate object value (for small objects).
bytes contents = 3;
}
}

// the binary large object value.
message Blob {

// the channel name to transfer this large object data.
string channel_name = 1;

// the data of this large object.
oneof data {
// the object value is stored in the file (don't across the network, only for used in the local system).
string local_path = 1;

// the channel name to transmit this object value.
string channel_name = 2;

// absolute path of the large object data on the local file system (only for privileged mode)
string local_path = 2;
// the immediate object value (for small objects).
bytes contents = 3;
}
}

Expand Down
9 changes: 7 additions & 2 deletions mock/jogasaki/proto/sql/response.proto
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,14 @@ message GetLargeObjectData {
// request is successfully completed.
message Success {

// the data channel name of retrieved large object data.
string channel_name = 1;
// the data of this large object.
oneof data {
// the data channel name of retrieved large object data.
string channel_name = 1;

// the immediate object value (for small objects).
bytes contents = 2;
}
}

reserved 1 to 10;
Expand Down

0 comments on commit f01b93c

Please sign in to comment.