Kevin Wan
0dfaf135dd
feat: support breaker with sql statements ( #3936 )
2024-02-25 11:24:44 +08:00
Kevin Wan
42e0a6f90c
chore: refactor errors to use errors.Is ( #3654 )
2023-10-21 00:00:57 +08:00
Kevin Wan
ff04356704
fix: format error should not trigger circuit breaker in sqlx ( #3437 )
2023-07-23 20:40:03 +08:00
chen quan
b71453985c
feat(sqlx): support for custom Acceptable function ( #3405 )
2023-07-10 01:16:45 +00:00
Kevin Wan
bff5b81ad9
feat: support using session to execute statements in transaction ( #3252 )
2023-05-17 14:15:24 +00:00
chen quan
ea7dab3d26
feat(sqlx): error log print traceId and spanId ( #2845 )
2023-02-11 16:12:14 +08:00
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
2023-01-24 16:32:02 +08:00
Kevin Wan
1f6688e5c1
chore: refactor the imports ( #2406 )
2022-09-17 20:06:23 +08:00
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 >
2022-09-17 19:35:30 +08:00
Kevin Wan
1e717f9f5c
feat: add toml config ( #1899 )
2022-05-13 23:17:43 +08:00
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 >
2022-05-13 12:32:34 +08:00
Kevin Wan
bc3c9484d1
chore: refactor ( #1814 )
2022-04-22 09:37:09 +08:00
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 >
2022-04-22 09:04:44 +08:00
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
2022-02-16 19:31:43 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
2022-01-04 15:51:32 +08:00
Kevin Wan
b299f350be
chore: add comments ( #1345 )
2021-12-18 22:39:14 +08:00
Kevin Wan
f070d447ef
refactor for better error reporting on sql error ( #1016 )
...
* refactor for better error reporting on sql error
* fix errors
* add docs
2021-09-09 15:43:33 +08:00
Kevin Wan
f6d9e19ecb
expose sql.DB to let orm operate on it ( #1015 )
...
* expose sql.DB to let orm operate on it
* add missing RawDB methods
* add NewSqlConnFromDB for cooperate with dtm
2021-09-09 11:40:28 +08:00
Kevin Wan
aaa39e17a3
print entire sql statements in logx if necessary ( #704 )
2021-05-20 16:14:44 +08:00
Kevin Wan
c566b5ff82
fix golint issues in core/stores ( #527 )
2021-02-28 23:02:49 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
2021-02-09 13:50:21 +08:00
kevin
0a7e0cce77
update package reference
2020-08-08 16:40:10 +08:00
kevin
7e3a369a8f
initial import
2020-07-26 17:09:05 +08:00