Kevin Wan
abd1fa96a9
fix: UpdateStmt doesn't update the statement correctly in sqlx/bulkinserter.go ( #3607 )
2023-10-09 21:57:26 +08:00
Kevin Wan
c3f57e9b0a
chore: fix potential nil pointer errors ( #3454 )
2023-07-30 21:37:41 +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
cd0f3726ed
chore: add more tests ( #3288 )
2023-05-27 21:49:11 +08:00
me-cs
0217044900
update:Use the Milliseconds method of duration to get the number of milliseconds ( #3285 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-05-26 14:32:46 +00:00
Kevin Wan
55e2c7ee83
chore: add more tests ( #3258 )
2023-05-18 23:11:32 +08:00
Kevin Wan
bff5b81ad9
feat: support using session to execute statements in transaction ( #3252 )
2023-05-17 14:15:24 +00:00
cong
22fad4bb9c
feat(trace): add trace test helpers ( #3108 )
2023-04-08 14:52:25 +00:00
guoguangwu
ca4ce7bce8
fix : misspelled word ( #3075 )
2023-03-29 02:25:26 +00:00
Kevin Wan
cca45be3c5
chore: refactor orm code ( #3015 )
2023-03-11 18:03:20 +08:00
YK.xiong
e735915d89
fix QueryRowsPartial getTaggedFieldValueMap func ( #2884 )
...
Co-authored-by: yongkun.xiong <weilone@vip.qq.com>
2023-03-11 07:28:09 +00:00
qiying.wang
148afcf1a7
chore: remove redundant prefix of "error: " in error creation
2023-03-02 12:46:19 +00:00
Kevin Wan
a5e5f04bcf
chore: reformat code ( #2925 )
2023-02-26 09:35:59 +08:00
chenquan
3bc40d9eaf
fix: fixed the bug that old trace instances may be fetched
2023-02-22 13:01:22 +00:00
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
2023-02-19 17:18:19 +08: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
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
2023-01-12 15:56:51 +08:00
swliao425
a515a3c735
chore: sqlx's metric name is different from redis ( #2505 )
2022-10-13 22:52:36 +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
8ed22eafdd
fix #2240 ( #2263 )
2022-08-14 19:49:47 +08:00
Kevin Wan
1568c3be0e
fix: time repr wrapper ( #2255 )
2022-08-11 22:39:54 +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
1a38eddffe
refactor: simplify the code ( #1835 )
2022-04-27 10:44:24 +08:00
Kevin Wan
5bcee4cf7c
fix #1806 ( #1833 )
...
* fix #1806
* chore: refine error text
2022-04-27 00:01:31 +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
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
2022-03-31 21:39:02 +08:00
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
2022-03-12 18:49:07 +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
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
785d100be9
feat: slow threshold customizable in sqlx ( #1188 )
2021-11-01 08:37:44 +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
aaa3623404
optimize nested conditional ( #709 )
2021-05-22 23:18:38 +08:00
Kevin Wan
aaa39e17a3
print entire sql statements in logx if necessary ( #704 )
2021-05-20 16:14:44 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
2021-04-15 19:49:17 +08:00
Kevin Wan
bd623aaac3
support postgresql ( #583 )
...
support postgresql
2021-03-27 17:14:32 +08:00
Kevin Wan
c566b5ff82
fix golint issues in core/stores ( #527 )
2021-02-28 23:02:49 +08:00
Kevin Wan
03b5fd4a10
fix golint issues ( #458 )
2021-02-09 14:03:19 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
2021-02-09 13:50:21 +08:00
Kevin Wan
8e889d694d
add more tests for sqlx ( #442 )
...
* add more tests for sqlx
* add more tests for sqlx
2021-02-07 11:54:41 +08:00
Kevin Wan
c282bb1d86
add more tests for sqlx ( #440 )
2021-02-05 22:53:21 +08:00
kevin
8115a0932e
add more tests
2020-10-09 13:59:38 +08:00