mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 15:25:19 +00:00
fix table comment
This commit is contained in:
@@ -16,7 +16,7 @@ service Db {
|
|||||||
|
|
||||||
// Read data from a table. Lookup can be by ID or via querying any field in the record.
|
// Read data from a table. Lookup can be by ID or via querying any field in the record.
|
||||||
message ReadRequest {
|
message ReadRequest {
|
||||||
// Table name is optional
|
// Optional table name
|
||||||
string table = 1;
|
string table = 1;
|
||||||
// Read by id. Equivalent to 'id == "your-id"'
|
// Read by id. Equivalent to 'id == "your-id"'
|
||||||
string id = 2;
|
string id = 2;
|
||||||
@@ -43,7 +43,7 @@ message ReadResponse {
|
|||||||
|
|
||||||
// Create a record in the database. Optionally include an "id" field otherwise its set automatically.
|
// Create a record in the database. Optionally include an "id" field otherwise its set automatically.
|
||||||
message CreateRequest {
|
message CreateRequest {
|
||||||
// Table name is optional
|
// Optional table name
|
||||||
string table = 1;
|
string table = 1;
|
||||||
// JSON encoded record or records (can be array or object)
|
// JSON encoded record or records (can be array or object)
|
||||||
google.protobuf.Struct record = 2;
|
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.
|
// Update a record in the database. Include an "id" in the record to update.
|
||||||
message UpdateRequest {
|
message UpdateRequest {
|
||||||
// Table name is optional
|
// Optional table name
|
||||||
string table = 1;
|
string table = 1;
|
||||||
// The id of the record
|
// The id of the record
|
||||||
string id = 2;
|
string id = 2;
|
||||||
@@ -68,7 +68,7 @@ message UpdateResponse {}
|
|||||||
|
|
||||||
// Delete a record in the database by id.
|
// Delete a record in the database by id.
|
||||||
message DeleteRequest {
|
message DeleteRequest {
|
||||||
// Table name is optional
|
// Optional table name
|
||||||
string table = 1;
|
string table = 1;
|
||||||
// id or ids, eg. 'user-1', or comma separated ids 'user-1,user-2'
|
// id or ids, eg. 'user-1', or comma separated ids 'user-1,user-2'
|
||||||
string id = 2;
|
string id = 2;
|
||||||
@@ -80,7 +80,7 @@ message DeleteResponse {
|
|||||||
|
|
||||||
// Truncate the records in a table
|
// Truncate the records in a table
|
||||||
message TruncateRequest {
|
message TruncateRequest {
|
||||||
// Table name is optional
|
// Optional table name
|
||||||
string table = 1;
|
string table = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user