Commit Graph

5455 Commits

Author SHA1 Message Date
黄骞
d2113b4d23
add ut cases for package gerror (#2304)
* add ut cases for package gerror

* add ut cases for package gerror
2022-11-17 19:43:54 +08:00
黄骞
d445987f95
add ut cases for package gcode (#2307) 2022-11-17 19:43:04 +08:00
Jinhongyu
14d2d747f6
add minus of start parameter support for gstr.Substr, like the substr function in PHP (#2297)
* Make the substr like the substr in PHP

Make the substr like the substr in PHP

* Update gstr_z_unit_test.go

* Update gstr_z_unit_test.go

* Make the SubStrRune like the mb_substr in PHP

Make the SubStrRune like the mb_substr in PHP

* Update gstr_z_unit_test.go

* Update gstr_z_unit_test.go

* Update gins_z_unit_view_test.go

* Update gview_z_unit_test.go
2022-11-16 10:10:59 +08:00
John Guo
73dc8c9c4b
fix cache issue in Count/Value functions for gdb.Model (#2300)
* add Tag* functions to retreive most commonly used tag value from struct field for package gstructs; use description tag as default value if brief is empty for gcmd.Argument

* fix cache issue in Count/Value functions for gdb.Model

* add more ut case for package gdb

* version updates
2022-11-16 10:04:49 +08:00
John Guo
576f1a798c
add Tag* functions to retreive most commonly used tag value from struct field for package gstructs; use description tag as default value if brief is empty for gcmd.Argument (#2299) 2022-11-15 17:05:34 +08:00
HaiLaz
78fa2d2e3b
fix: update szenius/set-timezone@v1.1 (#2293) 2022-11-14 19:58:17 +08:00
John Guo
9402cc8c6a
fix /* router supported for handler of package ghttp; fix json tag name issue when it contains , for package goai; add proxy example for http server (#2294)
* fix  router supported for handler of package ghttp; fix json tag name issue when it contains  for package goai

* add proxy example for http server
2022-11-14 19:57:39 +08:00
John Guo
7d1a508ea9
improve ut case for package gcache/gpool (#2290)
* improve ut case for package gcache/gpool

* up
2022-11-12 10:49:48 +08:00
Charles
b84034b667
fix: gcache MustGetOrSetFunc error (#2291) 2022-11-10 20:34:48 +08:00
HaiLaz
84b7cbd992
ci: action update (#2289) 2022-11-10 20:26:57 +08:00
HaiLaz
bc8ca912ce
fix: gcron check if the predefined patterns fail (#2288) 2022-11-10 19:59:09 +08:00
黄骞
b61baa1efc
add ut cases for package gconv part2 (#2282) 2022-11-10 19:58:03 +08:00
ccpro
c4a5bc8584
style(test): Unify the indentation format of SQL strings in clickhouse_test (#2277)
style(test): Unify the indentation format of SQL strings
2022-11-10 19:57:15 +08:00
John Guo
8c71d579b5
add command fix and up (#2280) 2022-11-10 19:56:12 +08:00
wei.wei
2e8d8f63ff
fix IsSubDomain method error (#2283)
Co-authored-by: weiwei3 <weiwei3@37.com>
2022-11-10 19:47:43 +08:00
John Guo
91b94878d3
fix used schema not change in nested transaction when used different schemas (#2279)
* fix used schema not change in nested transaction between different schemas

* up

Co-authored-by: houseme <housemecn@gmail.com>
2022-11-10 09:55:08 +08:00
John Guo
b000aa3dfe
add supervisor for package grpool (#2252)
* add supervisor for package grpool

* up
2022-11-08 19:00:16 +08:00
黄骞
582c6eaef9
gtest model unit test (#2267) 2022-11-07 17:56:33 +08:00
王哈哈
4f4109cdb6
fix typo for comments (#2268)
* Modify comment syntax error

* Modify comment syntax error
2022-11-07 17:55:49 +08:00
黄骞
9f12673631
add ut cases for package gconv (#2272)
* improve gconv.go code coverage

* improve gconv_convert.go code coverage

* improve gconv_float.go code coverage

* improve gconv_map.go code coverage

* improve gconv_maps.go code coverage

* improve gconv_maptomap.go code coverage

* improve gconv_maptomaps.go code coverage
2022-11-07 17:53:51 +08:00
houseme
d37b75442d
feat: modify sql count value int64 (#2266) 2022-11-07 17:52:25 +08:00
John Guo
ee58255418
move common used tag from packages to package gtag for maintainability (#2256)
* move common used tag from packages to package gtag for maintainability

* move common used tag from packages to package gtag for maintainability

Co-authored-by: houseme <housemecn@gmail.com>
2022-11-07 17:51:37 +08:00
John Guo
033ba588c9
fix redis ci yaml (#2269) 2022-11-05 10:23:52 +08:00
John Guo
60d8283971
fix router parameters handling by auto url decoding (#2262)
improve router parameters handling by auto url decoding
2022-11-04 15:03:27 +08:00
John Guo
ad90bc2809
version.go updates (#2259) 2022-11-04 11:33:31 +08:00
John Guo
a1b9eca7b6
fix issue #2244 (#2257)
* fix issue #2244

* ut update for package gtime

* golangci updates
2022-11-03 21:17:28 +08:00
John Guo
c4a5b8ca94
fix issue 1915 and repeated link instance key for package gdb (#2250)
* fix issue #1915

* fix issue in repeated link instance key

* add configuration item Namespace for package gdb

* up

* up

* fix: pgsql list table names (#2255)

Co-authored-by: Gin <qinyuguang@gmail.com>
2022-11-03 20:22:36 +08:00
John Guo
ab79134309
add schema name in debug logging content; add master-slave ut case for package gdb (#2249)
* add schema name in debug logging content; add master-slave ut case for package gdb

* add schema name in debug logging content; add master-slave ut case for package gdb
2022-11-02 21:55:58 +08:00
SUDOCS
63c3e8396b
attach and export real handler for request (#2220)
* attach and export real handler for request

* add note

* rename HandlerParsedItem to HandlerItemParsed

Co-authored-by: John Guo <john@johng.cn>
2022-11-01 20:17:59 +08:00
houseme
1793bf0863
add golangci feature to guarantee codes quality (#2229) 2022-11-01 20:12:21 +08:00
Gin
8e0e87877a
feat: add gcfg.Adapter implements using nacos service (#2232)
* feat: add `gcfg.Adapter` implements using nacos service

* Update gf.yml

* Update gf.yml

Co-authored-by: John Guo <john@johng.cn>
2022-10-26 18:45:35 +08:00
John Guo
425b31c6fd
improve nil receiver handling for package gtime (#2226)
* improve nil receiver handling for package gtime

* CI updates

* CI updates
2022-10-26 18:37:40 +08:00
zaier277
4da469325d
fix gen dao oracle entity bug (#2219)
Co-authored-by: John Guo <john@johng.cn>
2022-10-26 18:37:06 +08:00
ivothgle
33fdde6afd
opt: parameter verification of optimized handler methods (#2224) 2022-10-20 19:36:01 +08:00
John Guo
ee6103418b
auto creating error with code in ghttp.MiddlewareHandlerResponse when there's no 200 http status code (#2223) 2022-10-20 15:50:17 +08:00
John Guo
038548c188
v2.2.1 (#2222) 2022-10-18 20:32:28 +08:00
zhonghuaxunGM
ce8b536fca
Parse database empty json field to empty object( fix issue 2105 ) (#2213)
* Parse database empty json field to empty object( fix issue 2105 )

* fix issue #2105

Co-authored-by: Xu <zhenghao.xu>
Co-authored-by: John Guo <john@johng.cn>
2022-10-18 19:13:55 +08:00
John Guo
8e5a03f6c9
add Ptr* functions for package gconv (#2206)
* add Ptr* functions for package gconv

* delete binary file

* revert changes for file gconv.go

Co-authored-by: houseme <housemecn@gmail.com>
2022-10-18 19:13:14 +08:00
John Guo
1c5fd1a1f7
improve ut cases for package contrib/drivers/mysql (#2216)
* improve ut cases for package contrib/drivers/mysql

* improve logging for database Open
2022-10-17 15:43:22 +08:00
John Guo
2598745e50
fix issue #1971 (#2203)
Co-authored-by: houseme <housemecn@gmail.com>
2022-10-14 10:10:27 +08:00
ccpro
e756f284be
Add test for clickhouse #1815 (#2200) 2022-10-13 20:34:44 +08:00
John Guo
c6a02b850d
fix issue #1934 (#2193) 2022-10-13 19:13:10 +08:00
John Guo
55e8dbe9fd
remove repeated error stack file lines among stacks for package gerror (#2199)
* remove repeated error stack file lines among stacks for package gerror

* fix nil pointer error for package gerror
2022-10-13 19:12:01 +08:00
John Guo
5efa5ebd2f
fix issue #1946 (#2194)
* fix issue #1946

* fix issue #1946
2022-10-12 20:31:03 +08:00
John Guo
4ebe4233fc
fix issue of OmitEmptyWhere in Builder for package gdb (#2195) 2022-10-12 20:30:47 +08:00
houseme
35623b5abe
fix: modify Polaris config readme.md (#2186)
* fix: modify polaris config readme.md

* modify readme.md ,add License

* feat: add License
2022-10-11 19:27:26 +08:00
John Guo
b617d399b6
fix info content when listens on port :0 for ghttp.Server (#2191) 2022-10-11 19:20:39 +08:00
yss930819
b96b5c3f7c
fix: pgsql driver check local type error (#2192) 2022-10-11 19:20:16 +08:00
John Guo
847f016cc9
new version v2.2.0 (#2185) 2022-10-10 20:15:17 +08:00
houseme
c613dc8c5c
feat: temporarily disable the unit testing of the Polaris configuration center (#2183)
* feat: temporarily annotate the unit test of Polaris configuration Center

* fix: remove
2022-10-09 21:42:32 +08:00