3
0

51 Commits

Author SHA1 Message Date
Tomaž Jerman
bf3bc2af68 Options doc codegen tweaks 2020-12-08 10:16:43 +01:00
Tomaž Jerman
402289016d Doc codegen tweaks & cleanup 2020-12-05 10:30:22 +01:00
Denis Arh
cf00a274fa Minor codegen code cleanup 2020-12-05 07:46:08 +01:00
Denis Arh
cccb3ec5f8 Port types codegen to yaml.v3
v3 threats empty defs a bit differently (see changes in yaml files)
2020-12-05 07:44:49 +01:00
Urban Klinc
3b47701ffa Add events docs template + logic 2020-12-04 14:27:13 +01:00
Urban Klinc
e57b8e8cad Change gopkg.in/yaml.v2 to gopkg.in/yaml.v3 2020-12-03 09:31:00 +01:00
Urban Klinc
d3f85d953e Change yaml.v2 to yaml.v3 and UnmarshalYAML to v3 standard 2020-12-03 09:27:38 +01:00
Denis Arh
44f7166d97 Options codegen improvements
- Add extra cli switches to generate docs from options
 - More automation/fallbacks/default values for options
2020-12-02 16:12:07 +01:00
Urban Klinc
6b928d3a18 Fix a typo, add empty line at end of file 2020-12-02 11:59:21 +01:00
Urban Klinc
595d929e89 Add options.gen.adoc.tpl, modify options.go to enable .adoc codegen from .gen.adoc.tpl 2020-12-02 11:58:26 +01:00
Denis Arh
66c5501d4f Fix RDBMS store upsert + labels & settings 2020-12-01 15:45:04 +01:00
Denis Arh
8cc6e5917f Fix store/rdbms template (invalid cursor gen fn) 2020-11-27 11:15:16 +01:00
Denis Arh
65d43e7ed5 Rename options tpl for consistency 2020-11-27 11:14:49 +01:00
Denis Arh
b4b3e15d81 Copy error handling fn from cli pkg
This way we can avoid problems when recompiling codegen bin
and invalid code has been generated
2020-11-27 10:51:40 +01:00
Urban Klinc
efc418e5fd Fix typo, rework readme 2020-11-27 09:37:16 +01:00
Urban Klinc
df9ebe54aa Add codegen template + logic, modifiyed codegen.go to accept new files 2020-11-26 11:11:08 +01:00
Denis Arh
b6eb143c38 Pagination fixes 2020-11-26 06:23:24 +01:00
Denis Arh
11ea5df303 Pagination/sorting fixes & improvements 2020-11-16 14:20:43 +01:00
Denis Arh
fc0ed924de Make sure cursor to next page is not returned if there are no resources 2020-11-13 13:01:34 +01:00
Denis Arh
b7de337db9 Fix sorting&paging on RDBMS store 2020-11-13 08:10:09 +01:00
Denis Arh
979acf0a84 Make store sorting more robust 2020-11-10 16:04:41 +01:00
Denis Arh
8189f40fc0 Add support for type label codegen 2020-11-06 07:47:53 +01:00
Denis Arh
ecb7f52c31 Improve error creation & handling by API 2020-11-04 14:18:33 +01:00
Denis Arh
02d18175f9 Fix codegen when search cfg is sorting&&!paging 2020-10-29 08:23:04 +01:00
Denis Arh
24285e8d32 Support custom parsers for REST params 2020-10-26 19:16:47 +01:00
Denis Arh
9a21226163 Fix Delete/delete store config inconsistency 2020-10-18 16:13:36 +02:00
Denis Arh
754ebbde95 Refactor value preprocessing out of RDBMS to store 2020-10-18 16:13:36 +02:00
Denis Arh
56422397cc Fix types.yaml search path for codegen 2020-10-06 21:11:38 +02:00
Denis Arh
02f70476b1 Fix codegen templates to gen. list of PKs
check*Constraints fn now generates list of PKs when ensuring constraints
2020-09-30 12:29:44 +02:00
Denis Arh
5eba380f19 Cleanup, instrumentation 2020-09-15 07:24:28 +02:00
Denis Arh
464a8ecd93 Unexport partial...update() store functions, fix messaging 2020-09-09 13:27:27 +02:00
Denis Arh
24f8457d71 Rename Storable interface to Storer
See https://golang.org/doc/effective_go.html#interface-names
2020-09-09 08:40:50 +02:00
Denis Arh
6206aacdca Simplify RDBMS codegen templates 2020-09-07 10:29:36 +02:00
Denis Arh
62cae2c3c1 Simplifty lookup field/column handling in codegen templates 2020-09-07 10:22:03 +02:00
Denis Arh
758aaa2374 Move field-to-column mapping under RDBMS 2020-09-07 08:39:35 +02:00
Denis Arh
f7070b4fa5 Fix tests, improve constraint checking 2020-09-06 15:37:19 +02:00
Denis Arh
8dc5315b75 RDBMS store query handler now accepts sqlizer 2020-09-01 21:28:45 +02:00
Denis Arh
16aa32cd4b Expand arg on variadic function (codegen template) 2020-09-01 21:27:09 +02:00
Denis Arh
6120520a03 Refactored (paged) fetching/searching 2020-09-01 07:25:34 +02:00
Denis Arh
f2a4c64229 Fix reporting ret. value type, comment-out store hooks on tpl level 2020-08-29 16:01:25 +02:00
Denis Arh
ccdc494177 Fix error handling while fetching rows 2020-08-29 15:52:59 +02:00
Denis Arh
68525e823b Fix store test codegen 2020-08-28 07:04:59 +02:00
Denis Arh
361a9007bf Cleaner store API 2020-08-26 14:49:33 +02:00
Denis Arh
3d4c2e2f9a Remove transaction from create/update/remove procedures 2020-08-24 15:43:04 +02:00
Denis Arh
b0ea1da89f Add proper handling of unique-constraint errors 2020-08-24 15:43:04 +02:00
Denis Arh
349ff3cf2d Add improved sorting and key-based pagination 2020-08-24 15:43:04 +02:00
Denis Arh
9290f160a8 Implement new paging with resource check on filter 2020-08-24 15:43:03 +02:00
Denis Arh
8ac6c17ea8 Rename generated interfaces (for easier ext.) 2020-08-24 15:41:01 +02:00
Denis Arh
7ef781d84c Add isGeneric check for action errors 2020-08-24 15:41:01 +02:00
Denis Arh
c8d552e6a6 Implement new store infrastructure 2020-08-24 15:40:15 +02:00