30 Commits

Author SHA1 Message Date
Dominic Wong
ba77f7b2f4 More deleteData endpoint impls (#362) 2022-02-02 16:50:11 +00:00
Dominic Wong
9b8d144dfd Delete data part 1 (#360) 2022-02-01 12:09:33 +00:00
Asim Aslam
ce9e835af4 don't inject an id if one exists in the db record (#288) 2021-12-01 13:26:12 +00:00
Asim Aslam
85ebb47491 simplify id parsing 2021-12-01 11:57:25 +00:00
Asim Aslam
f81ba3c70e support db create id (#287)
* support db create id

* add the proto
2021-12-01 09:18:20 +00:00
Janos Dobronszki
cc7d1911d5 db: added drop table endpoint (#271)
* db: added drop table endpoint

* F

* Update db.proto

Co-authored-by: Asim Aslam <asim@aslam.me>
2021-11-16 13:34:56 +00:00
Janos Dobronszki
fff15c6f5b db: Fix jsonb field access (#265) 2021-11-11 11:53:13 +00:00
Asim Aslam
289ae7531c use tableName func for Count 2021-10-29 09:33:34 +01:00
Janos Dobronszki
493f520a99 db: More sanitization for table names (#243) 2021-10-25 14:47:14 +01:00
Janos Dobronszki
2b6a219b0e db service: Count endpoint (#236) 2021-10-21 09:35:51 +01:00
Janos Dobronszki
ecd9df85d9 Fix db read by id (#192) 2021-08-19 13:51:25 +01:00
Janos Dobronszki
e421486ca9 Fix db update when id is not in record (#171) 2021-06-23 13:55:09 +01:00
Asim Aslam
e1c2c92baf add id field to update (#159) 2021-06-15 11:00:04 +01:00
Janos Dobronszki
8b8d6c1a95 User service: move to db (#146) 2021-06-15 10:38:04 +01:00
Janos Dobronszki
e4be18434c Db service fixes and improvements: dot access, truncate table etc (#157) 2021-06-14 12:32:38 +01:00
Janos Dobronszki
7033fcfdb7 db: fix panic (#155) 2021-06-10 16:59:20 +01:00
Janos Dobronszki
5962023e6f db: Fix limit (#154) 2021-06-10 16:38:43 +01:00
Janos Dobronszki
fdbd71f368 Implement limit and offset for DB (#151) 2021-06-10 14:48:18 +01:00
Janos Dobronszki
c4895b8ca6 Fix DB update (#148) 2021-06-10 14:23:05 +01:00
Janos Dobronszki
3533fa1d5f Micro dep bump to fix api docs (#147) 2021-06-10 14:09:17 +01:00
Janos Dobronszki
b0cbf847ac DB: Table name fix (#145) 2021-06-09 16:31:31 +01:00
Janos Dobronszki
dc4a493805 Recursive record type for DB (#144) 2021-06-08 16:03:59 +01:00
Asim Aslam
1cc4e2a340 set tenant based table for delete 2021-06-07 10:36:01 +01:00
Janos Dobronszki
f828bd2438 Fix Update for db service (#140) 2021-06-04 11:18:50 +01:00
Asim Aslam
91e03ba536 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>
2021-06-02 19:02:32 +01:00
Asim Aslam
301ecec814 . (#137)
* [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

Co-authored-by: Janos Dobronszki <dobronszki@gmail.com>
2021-06-02 18:50:17 +01:00
Asim Aslam
78edac080f Fix panic in DB Update (#136) 2021-06-02 18:42:36 +01:00
Asim Aslam
2621c0e2e2 Update endpoint (#135)
* [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

Co-authored-by: Janos Dobronszki <dobronszki@gmail.com>
2021-06-02 18:31:27 +01:00
Asim Aslam
abbb37c592 Add DB delete (#134) 2021-06-02 18:19:09 +01:00
Janos Dobronszki
7157db9aaa DB service (#132) 2021-06-02 15:29:52 +01:00