Recursive record type for DB (#144)

This commit is contained in:
Janos Dobronszki
2021-06-08 16:03:59 +01:00
committed by GitHub
parent 01380190aa
commit dc4a493805
7 changed files with 171 additions and 89 deletions

View File

@@ -1,4 +1,5 @@
syntax = "proto3";
import "google/protobuf/struct.proto";
package db;
@@ -28,13 +29,13 @@ message ReadRequest {
message ReadResponse {
// JSON encoded records
string records = 1;
repeated google.protobuf.Struct records = 1;
}
message CreateRequest {
string table = 1;
// JSON encoded record or records (can be array or object)
string record = 2;
google.protobuf.Struct record = 2;
}
message CreateResponse {
@@ -46,8 +47,8 @@ message UpdateRequest {
string table = 1;
// query filter if applying to multiple records
string query = 2;
// JSON encoded record or records (can be array or object)
string record = 3;
// record, JSON object
google.protobuf.Struct record = 3;
}
message UpdateResponse {