From 54b2234ed1c0daa2fac0115409058efc533c3c5b Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Tue, 15 Jun 2021 15:41:13 +0100 Subject: [PATCH] fix table comment --- db/proto/db.proto | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/db/proto/db.proto b/db/proto/db.proto index 10b0bf3..37de7b2 100644 --- a/db/proto/db.proto +++ b/db/proto/db.proto @@ -16,7 +16,7 @@ service Db { // Read data from a table. Lookup can be by ID or via querying any field in the record. message ReadRequest { - // Table name is optional + // Optional table name string table = 1; // Read by id. Equivalent to 'id == "your-id"' string id = 2; @@ -43,7 +43,7 @@ message ReadResponse { // Create a record in the database. Optionally include an "id" field otherwise its set automatically. message CreateRequest { - // Table name is optional + // Optional table name string table = 1; // JSON encoded record or records (can be array or object) google.protobuf.Struct record = 2; @@ -56,7 +56,7 @@ message CreateResponse { // Update a record in the database. Include an "id" in the record to update. message UpdateRequest { - // Table name is optional + // Optional table name string table = 1; // The id of the record string id = 2; @@ -68,7 +68,7 @@ message UpdateResponse {} // Delete a record in the database by id. message DeleteRequest { - // Table name is optional + // Optional table name string table = 1; // id or ids, eg. 'user-1', or comma separated ids 'user-1,user-2' string id = 2; @@ -80,7 +80,7 @@ message DeleteResponse { // Truncate the records in a table message TruncateRequest { - // Table name is optional + // Optional table name string table = 1; }