guoguangwu
ca4ce7bce8
fix : misspelled word ( #3075 )
2 years ago
Kevin Wan
cca45be3c5
chore: refactor orm code ( #3015 )
2 years ago
YK.xiong
e735915d89
fix QueryRowsPartial getTaggedFieldValueMap func ( #2884 )
...
Co-authored-by: yongkun.xiong <weilone@vip.qq.com>
2 years ago
Kevin Wan
7a0c04bc21
feat: unique redis addrs and trim spaces ( #3004 )
2 years ago
iyyzh
3c9fe0b381
init postgresql err ( #3003 )
2 years ago
文豆芽
f8b2dc8c9f
reids cluster bug ( #2986 )
...
Co-authored-by: shaocongcong <shao.congcong@yalla.live>
2 years ago
fabio
cb7f3e8a17
feat(redis):add LpopCount,RpopCount ( #2990 )
2 years ago
anqiansong
a2592a17e9
format code
2 years ago
anqiansong
05abf4a2ff
fix typo
2 years ago
Kevin Wan
a05fe7bf0a
chore: remove optional in redis config ( #2979 )
2 years ago
Kevin Wan
d953675085
chore: add tests ( #2960 )
2 years ago
qiying.wang
148afcf1a7
chore: remove redundant prefix of "error: " in error creation
2 years ago
Kevin Wan
a5e5f04bcf
chore: reformat code ( #2925 )
2 years ago
chenquan
3bc40d9eaf
fix: fixed the bug that old trace instances may be fetched
2 years ago
yiwu
133c40ac1c
Pgx ( #2902 )
...
* change postgres driver to pgx
* modified: go.mod
modified: go.sum
* chore: tidy go.sum
---------
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
cong
64ab00e8e3
refactor: simplify sqlx fail fast ping and simplify miniredis setup in test ( #2897 )
...
* chore(redistest): simplify miniredis setup in test
* refactor(sqlx): simplify sqlx fail fast ping
* chore: close connection if not available
2 years ago
chen quan
ea7dab3d26
feat(sqlx): error log print traceId and spanId ( #2845 )
2 years ago
Kevin Wan
d7d6eccce6
chore: remove clickhouse, added to zero-contrib ( #2848 )
2 years ago
Kevin Wan
3c0dc8435e
chore: improve codecov ( #2828 )
2 years ago
MarkJoyMa
fde05ccb28
feat: add MustNewRedis ( #2824 )
...
* feat: add MustNewRedis
* feat: add MustNewRedis
* feat: add MustNewRedis
* x
* x
* fix ut
* x
* x
* x
* x
* x
2 years ago
Kevin Wan
ae87114282
chore: change interface{} to any ( #2818 )
...
* chore: change interface{} to any
* chore: update goctl version to 1.5.0
* chore: update goctl deps
2 years ago
Kevin Wan
7e0ac77139
feat: upgrade go to v1.18 ( #2817 )
...
* feat: upgrade go to v1.18
* feat: upgrade go to v1.18
2 years ago
Kevin Wan
696da4efee
chore: add more tests ( #2815 )
...
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
2 years ago
Kevin Wan
2bfecf9354
chore: remove mgo related packages ( #2799 )
2 years ago
Kevin Wan
6d129e0264
chore: add more tests ( #2797 )
...
* chore: add more tests
* chore: add more tests
* chore: add more tests
2 years ago
Kevin Wan
5f02e623f5
chore: add more tests ( #2795 )
...
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
2 years ago
Kevin Wan
963b52fb1b
chore: add more tests ( #2794 )
2 years ago
Kevin Wan
02265d0bfe
chore: add more tests ( #2792 )
...
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
2 years ago
Kevin Wan
b2571883ca
chore: refactor ( #2785 )
...
* chore: refactor
* chore: refactor
2 years ago
Alonexy
00ff50c2cc
add zset withsocre float ( #2689 )
...
* add zset withsocre float
* update
* add IncrbyFloat,HincrbyFloat
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
Kevin Wan
367afb544c
feat: support ptr of ptr of ... in mapping ( #2779 )
...
* feat: support ptr of ptr of ... in mapping
* feat: support ptr of ptr of time.Duration in mapping
* feat: support ptr of ptr of json.Number in mapping
* chore: improve setting in mapping
* feat: support ptr of ptr encoding.TextUnmarshaler in mapping
* chore: add more tests
* fix: string ptr
* chore: update tests
2 years ago
MarkJoyMa
0defb7522f
feat: replace NewBetchInserter function name ( #2769 )
2 years ago
MarkJoyMa
a5fcf24c04
feat: add batch inserter ( #2755 )
2 years ago
MarkJoyMa
e71c505e94
feat: add mongo options ( #2753 )
...
* feat: add mongo options
* feat: add mongo options
* feat: add mongo options
* feat: add mongo options
* feat: add mongo options
* feat: add mongo options
2 years ago
#Suyghur
69d355eb4b
feat(redis): add zscan command implementation ( #2729 ) ( #2751 )
2 years ago
Archer
683d793719
RawFieldNames should ignore the field whose name is start with a dash ( #2725 )
2 years ago
王哈哈
dac3600b53
Modify comment syntax error ( #2572 )
2 years ago
Kevin Wan
9cadab2684
chore: refactor ( #2545 )
...
* chore: refactor
* chore: refactor
2 years ago
swliao425
b21162d638
fix: redis's pipeline logs are not printed completely ( #2538 )
...
* fix: redis's pipeline logs are not printed completely
* add unit test
Signed-off-by: liaoshiwei <liaoshiwei@uniontech.com>
Signed-off-by: liaoshiwei <liaoshiwei@uniontech.com>
2 years ago
foliet
f7a4e3a19e
chore: fix naming problem ( #2500 )
...
When I was looking for how to mock mongo client, I found some naming problems and wanted to fix them.
2 years ago
swliao425
a515a3c735
chore: sqlx's metric name is different from redis ( #2505 )
2 years ago
Kevin Wan
1bc138bd34
chore: refactor to reduce duplicated code ( #2477 )
2 years ago
#Suyghur
0c66e041b5
feat(redis):add timeout method to extend blpop ( #2472 )
2 years ago
Kevin Wan
1a6d7b3ef6
chore: gofumpt ( #2439 )
2 years ago
dawn_zhou
d640544a40
refactor: redis error for prometheus metric label ( #2412 )
...
Co-authored-by: dawn.zhou <dawn.zhou@yijinin.com>
2 years ago
Kevin Wan
1f6688e5c1
chore: refactor the imports ( #2406 )
2 years ago
dawn_zhou
ae7f1aabdd
feat: mysql and redis metric support ( #2355 )
...
* feat: mysql and redis metric support
* feat: mysql and redis metric support
* feat: mysql and redis metric support
Co-authored-by: dawn.zhou <dawn.zhou@yijinin.com>
2 years ago
Kevin Wan
66c2a28e66
fix #2364 ( #2377 )
2 years ago
Kevin Wan
d935c83a54
feat: support baggage propagation in httpc ( #2375 )
...
* feat: support baggage propagation in httpc
* chore: use go 1.16
* chore: use go 1.16
* chore: use go ^1.16
* chore: remove deprecated
2 years ago
maizige
cfda972d50
fix:trace graceful stop,pre loss trace ( #2358 )
2 years ago
Kevin Wan
2d60f0c65a
fix: logx disable not working in some cases ( #2306 )
...
* fix: logx disable not working in some cases
* fix: test fail
2 years ago
chen quan
0316b6e10e
feat(redis): add ZaddFloat & ZaddFloatCtx ( #2291 )
2 years ago
Kevin Wan
8ed22eafdd
fix #2240 ( #2263 )
2 years ago
Kevin Wan
1568c3be0e
fix: time repr wrapper ( #2255 )
2 years ago
Kevin Wan
91b8effb24
chore: refactor redislock ( #2210 )
...
* chore: refactor redislock
* chore: add more tests
2 years ago
cong
4879d4dfcd
feat(redislock): support set context ( #2208 )
...
* feat(redislock): support set context
* chore: fix test
2 years ago
Kevin Wan
6c94e4652e
chore: better mongo logs ( #1965 )
...
* chore: better mongo logs
* chore: add comments
3 years ago
kevin
edfaa6d906
🐞 fix: fixed typo ( #1916 )
...
Co-authored-by: kevinzhang <kevinzhang@moonton.com>
3 years ago
Kevin Wan
72ebbb9774
feat: update docker alpine package mirror ( #1924 )
...
* feat: update docker alpine package mirror
* chore: format code
3 years ago
Kevin Wan
6b1e15cab1
chore: update k8s.io/client-go for security reason, go is upgrade to 1.16 ( #1912 )
...
* chore: fix jwt dependency security issue
* chore: update clickhouse driver
* chore: fix a security issue
* chore: update dependencies
3 years ago
Kevin Wan
1e717f9f5c
feat: add toml config ( #1899 )
3 years ago
chen quan
e567a0c718
refactor: refactor trace in redis & sql & mongo ( #1865 )
...
* refactor: refactor tracing in redis & sql & mongo
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix: fix some tests
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: add missing content
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: adjust `log` and `return`
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: simpler span name
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* refactor: fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
3 years ago
Kevin Wan
974ba5c9aa
test: add codecov ( #1863 )
3 years ago
Kevin Wan
ec1de4f48d
test: add codecov ( #1861 )
...
* test: add codecov
* test: add codecov
3 years ago
Kevin Wan
ac321fc146
feat: add fields with logx methods, support using third party logging libs. ( #1847 )
...
* backup
* simplify
* chore: remove unused pool
* chore: fix lint errors
* chore: use strings.Builder instead of bytes.Buffer
* test: add more tests
* chore: fix reviewdog
* test: fix data race
* feat: make logger customizable
* chore: fix reviewdog
* test: fix fails
* chore: fix set writer twice
* chore: use context instead of golang.org context
* chore: specify uint32 for level types
3 years ago
Kevin Wan
f7a60cdc24
fix: remove deprecated dependencies ( #1837 )
...
* fix: remove deprecated dependencies
* backup
* fix test error
3 years ago
Kevin Wan
1a38eddffe
refactor: simplify the code ( #1835 )
3 years ago
Kevin Wan
5bcee4cf7c
fix #1806 ( #1833 )
...
* fix #1806
* chore: refine error text
3 years ago
chen quan
22b157bb6c
chore: optimize code ( #1818 )
...
Signed-off-by: chenquan <chenquan.dev@gmail.com>
3 years ago
Kevin Wan
bc3c9484d1
chore: refactor ( #1814 )
3 years ago
chen quan
162e9cef86
feat: add trace in redis & mon & sql ( #1799 )
...
* feat: add sub spanId with redis
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* add tests
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* feat: add sub spanId in sql
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* feat: add sub spanId in mon
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* chore: optimize code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* feat: add breaker in warpSession
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* chore: optimize code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* test: add tests
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* chore: reformat code
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix: fix typo
Signed-off-by: chenquan <chenquan.dev@gmail.com>
* fix a bug
Signed-off-by: chenquan <chenquan.dev@gmail.com>
3 years ago
Kevin Wan
2cdff97934
feat: use mongodb official driver instead of mgo ( #1782 )
...
* wip: backup
* wip: backup
* wip: backup
* backup
* backup
* backup
* add more tests
* fix wrong dependency
* fix lint errors
* remove test due to data race
* add tests
* fix test error
* add mon.Model
* add mon.Model unmarshal
* add monc
* add more tests for monc
* add more tests for monc
* add docs for mon and monc packages
* fix doc errors
* chhore: add comment
* chore: fix test bug
* chore: refine tests
* chore: remove primitive.NewObjectID in test code
* chore: rename test files for typo
3 years ago
杨圆建
d58cf7a12a
fix: Hdel check result & Pfadd check result ( #1801 )
3 years ago
Kevin Wan
5d4e7c84ee
revert postgres package refactor ( #1796 )
...
* Revert "refactor: move postgres to pg package (#1781 )"
This reverts commit ba8ac974aa
.
* remove pg, use postgres
3 years ago
Kevin Wan
ba8ac974aa
refactor: move postgres to pg package ( #1781 )
3 years ago
benqi
475d17e17d
feat: support ctx in kv methods ( #1759 )
3 years ago
Kevin Wan
e0fa8d820d
feat: return original value of setbit in redis ( #1746 )
3 years ago
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
3 years ago
Kevin Wan
278cd123c8
feat: remove reentrance in redislock, timeout bug ( #1704 )
3 years ago
Kevin Wan
ec271db7a0
chore: refactor code ( #1699 )
3 years ago
benqi
bbac994c8a
feat: add getset command in redis and kv ( #1693 )
3 years ago
Kevin Wan
f060a226bc
refactor: simplify the code ( #1670 )
3 years ago
Mervin.Wong
93d524b797
fix: the new RawFieldNames considers the tag with options. ( #1663 )
...
Co-authored-by: JinfaWang <wangjinfa@iie.ac.cn>
3 years ago
mlr3000
32c88b6352
feat: support oracle :N dynamic parameters ( #1552 )
...
* chore:use struct pointer
* feat: support oracle :N dynamic parameters
* Update utils.go
* Update utils.go
* Update utils.go
pg argIndex will not always go up
* Update utils_test.go
* Keep the original
* Update utils_test.go
3 years ago
Kevin Wan
b939ce75ba
chore: refactor code ( #1613 )
3 years ago
Javen
60760b52ab
model中db标签增加'-'符号以支持数据库查询时忽略对应字段. ( #1612 )
3 years ago
Kevin Wan
900bc96420
test: add more tests ( #1604 )
3 years ago
Kevin Wan
607bae27fa
feat: support ctx in sqlx/sqlc, listed in ROADMAP ( #1535 )
...
* feat: support ctx in sqlx/sqlc
* chore: update roadmap
* fix: context.Canceled should be acceptable
* use %w to wrap errors
* chore: remove unused vars
3 years ago
Kevin Wan
9e113909b3
ignore context.Canceled for redis breaker ( #1545 )
3 years ago
Kevin Wan
2732d3cdae
chore: refactor cache ( #1532 )
3 years ago
chenquan
e8c307e4dc
feat: support ctx in `Cache` ( #1518 )
...
* feature: support ctx in `Cache`
Signed-off-by: chenquan <chenquan.dev@foxmail.com>
* fix: `errors.Is` instead of `=`
Signed-off-by: chenquan <chenquan.dev@foxmail.com>
3 years ago
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
3 years ago
Kevin Wan
822ee2e1c5
feat: update go-redis to v8, support ctx in redis methods ( #1507 )
...
* feat: update go-redis to v8, support ctx in redis methods
* fix compile errors
* chore: remove unused const
* chore: add tracing log on redis
3 years ago
Kevin Wan
0fdd8f54eb
ci: add test for win ( #1503 )
...
* ci: add test for win
* ci: update check names
* ci: use go build instead of go test to verify win test
* fix: windows test failure
* chore: disable logs in tests
3 years ago
shenbaise9527
13db7a1931
feat: 支持redis的LTrim方法 ( #1443 )
3 years ago
Kevin Wan
eb4b86137a
fix: golint issue ( #1423 )
3 years ago
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
3 years ago
Kevin Wan
8745ed9c61
chore: add 1s for tolerance in redislock ( #1367 )
3 years ago
种豆得豆
836726e710
fix redis try-lock bug ( #1366 )
...
#issue_id: 1338
Co-authored-by: zhangwei <>
3 years ago
Kevin Wan
d1c2a31af7
chore: add tests & refactor ( #1346 )
...
* chore: add tests & refactor
* chore: refactor
3 years ago