DB Update (#138)

* [WIP] DB service

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* F

* fixup db and return id in create response

* add delete method and some error checking

* Add the update method

* fix panic

* use record for the data field

* update db

Co-authored-by: Janos Dobronszki <dobronszki@gmail.com>
This commit is contained in:
Asim Aslam
2021-06-02 19:02:32 +01:00
committed by GitHub
parent 301ecec814
commit 91e03ba536
3 changed files with 81 additions and 27 deletions

View File

@@ -44,8 +44,10 @@ message CreateResponse {
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 = 2;
string record = 3;
}
message UpdateResponse {