From f318e4c3afe7270cebb6f8f420caa79b1128b241 Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Wed, 28 Jul 2021 11:40:56 +0200 Subject: [PATCH] WIP: insert delete --- proto/caosdb/entity/v1alpha1/main.proto | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/proto/caosdb/entity/v1alpha1/main.proto b/proto/caosdb/entity/v1alpha1/main.proto index 4e35a4e..51307d2 100644 --- a/proto/caosdb/entity/v1alpha1/main.proto +++ b/proto/caosdb/entity/v1alpha1/main.proto @@ -210,6 +210,10 @@ message TransactionRequest { } } +message SingleTransactionRequest { + TransactionRequest request = 1; +} + message SingleTransactionResponse { TransactionResponse response = 1; // Transaction errors. @@ -301,14 +305,14 @@ message MultiRetrieveResponse { // Entity Transaction Service service EntityTransactionService { - // Issue a single retrieve request - rpc SingleRetrieve(SingleRetrieveRequest) returns (SingleRetrieveResponse); - // Issue a single retrieve request - rpc SingleInsert(SingleInsertRequest) returns (SingleInsertResponse); - // Issue a single delete request - rpc SingleDelete(SingleDeleteRequest) returns (SingleDeleteResponse); - // Issue a single update request - rpc SingleUpdate(SingleUpdateRequest) returns (SingleUpdateResponse); + //// Issue a single retrieve request + //rpc SingleRetrieve(SingleRetrieveRequest) returns (SingleRetrieveResponse); + //// Issue a single retrieve request + //rpc SingleInsert(SingleInsertRequest) returns (SingleInsertResponse); + //// Issue a single delete request + //rpc SingleDelete(SingleDeleteRequest) returns (SingleDeleteResponse); + //// Issue a single update request + //rpc SingleUpdate(SingleUpdateRequest) returns (SingleUpdateResponse); //// Issue multiple retrieve requests //rpc MultiRetrieve(MultiRetrieveRequest) returns (MultiRetrieveResponse); @@ -319,6 +323,6 @@ service EntityTransactionService { //// Issue multiple update requests //rpc MultiUpdate(MultiUpdateRequest) returns (MultiUpdateResponse); - //// Issue multiple mixed requests - //rpc MultiTransaction(MultiTransactionRequest) returns (MultiTransactionResponse); + // Issue multiple mixed requests + rpc MultiTransaction(MultiTransactionRequest) returns (MultiTransactionResponse); } -- GitLab