Kevin Wan
0dfaf135dd
feat: support breaker with sql statements ( #3936 )
2024-02-25 11:24:44 +08:00
Kevin Wan
bff5b81ad9
feat: support using session to execute statements in transaction ( #3252 )
2023-05-17 14:15:24 +00:00
guoguangwu
ca4ce7bce8
fix : misspelled word ( #3075 )
2023-03-29 02:25:26 +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
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
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
yedf2
6aba5f74fc
feat: add NewSessionFromTx to interact with other orm ( #1202 )
...
Co-authored-by: yedongfu <dongfuye@163.com >
2021-11-03 20:56:02 +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
5b22823018
fix bug that empty query in transaction ( #801 )
2021-06-29 23:18:32 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
2021-02-09 13:50:21 +08:00
kevin
7e3a369a8f
initial import
2020-07-26 17:09:05 +08:00