fix table comment

This commit is contained in:
Asim Aslam
2021-06-15 15:41:13 +01:00
parent 2077b898b6
commit 54b2234ed1

View File

@@ -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;
}