bec98e8de0
fix(database/gdb): clickhouse can not support int128/int256/uint128/uint256 ( #4370 )
...
When use clickhouse and use field type int128/int256/uint128/uint256. It
can not work well and it will return 0 value.
Add the new field types to let it work well.
By the way, the data struct field need be set to big.Int when use the
types.
2025-08-22 22:05:15 +08:00
656ae070da
fix(cmd/gf): fix gen sharding dao in multiple shardingPattern tables … ( #4379 )
...
fix #4378
fix #4330
---------
Co-authored-by: hailaz <739476267@qq.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-22 16:46:23 +08:00
2d5fcd73cb
chore: upgrade dependencies to latest versions and fix security vulne… ( #4237 )
...
This PR includes the following updates and fixes:
- **Dependency upgrades**: Updated all dependencies in `go.mod` to their
latest versions to ensure compatibility and leverage the latest features
and fixes.
- **Security fixes**:
- Resolved known vulnerabilities in `golang.org/x/net` by upgrading to
the latest secure version.
- Addressed security issues in `golang.org/x/crypto` by upgrading to the
latest secure version.
These changes improve the overall security and stability of the project.
Please review the changes and ensure compatibility with the updated
dependencies.
---------
Co-authored-by: hailaz <739476267@qq.com >
2025-08-22 15:29:16 +08:00
7ffdff37e4
chore: upgrade golangci-lint configuration and optimize codebase ( #4236 )
...
This PR includes the following changes:
- **Upgrade `.golangci.yml`**: Updated the configuration file to align
with the latest golangci-lint version, ensuring compatibility and
leveraging new features.
- **Refactor GitHub Action workflow**: Modified `golangci-lint.yml` in
the GitHub Actions workflow to reflect the updated configuration and
improve CI performance.
- **Codebase optimization**: Refactored code to address issues and
warnings raised by the updated golangci-lint rules, including:
- Improved function length and complexity.
- Enhanced error handling and variable naming conventions.
- Fixed minor issues such as unused imports and formatting
inconsistencies.
These changes aim to maintain code quality, ensure compatibility with
the latest tools, and improve overall maintainability.
2025-08-22 13:29:09 +08:00
3d9cdb8997
fix(gdb): support multiple order fields in "with"
2025-06-20 19:11:01 +08:00
9a61a6970f
fix(database/gdb): fix transaction propagation feature ( #4199 )
2025-03-17 14:50:07 +08:00
bc1e1019c5
refract(util/gconv): change Converter interface definition for more convenient usage ( #4202 )
2025-03-14 18:23:07 +08:00
dfe088f5cd
refactor(util/gconv): add Converter feature for more flexable and extensible type converting ( #4107 )
2025-03-06 23:04:26 +08:00
a3b3c656d9
feat(database/gdb): enable transaction propagation when using tx.GetCtx() after Begin ( #4121 )
2025-02-11 16:09:27 +08:00
80f57d1c24
fix(database/gdb): gdb.Counter not work in OnDuplicate ( #4073 )
2024-12-26 18:18:35 +08:00
4c2a78b7bf
fix(database/gdb): regular expression pattern for link configuration to be compitable with tidbcloud ( #4064 )
2024-12-19 21:44:36 +08:00
92eab81926
fix(database/gdb): add compatibility for old configiration with both Type and part of Link configurations ( #4058 )
2024-12-18 15:54:27 +08:00
f79aef6669
fix(database/gdb): fix context canceled error in transaction due to usage of TransTimeout configuration ( #4037 )
2024-12-17 21:15:54 +08:00
ced4b57991
fix(contrib/drivers/pgsql): incompatible placeholder replacement with old version ( #4036 )
2024-12-13 09:29:34 +08:00
b7c74c9a35
fix(contrib/drivers/pgsql): add unix socket connection support ( #4028 )
2024-12-11 09:58:26 +08:00
13bc192e36
feat(database/gdb): add sharding feature for schema and table ( #4014 )
2024-12-09 23:12:20 +08:00
5e47590165
feat(database/gdb): add WhereExists/WhereNotExists ( #4015 )
2024-12-09 09:24:48 +08:00
3cffa4d5d6
fix(database/gdb): CRUD typos ( #4017 )
2024-12-09 09:22:52 +08:00
b0b84a3937
ci(gci/import): improve golangci.yml and add gci linter ( #4010 )
2024-12-07 14:17:33 +08:00
2066aa4803
feat(database/gdb): add transaction propagation&isolation level&readonly features ( #4013 )
2024-12-07 14:01:31 +08:00
ba968949f7
fix(database/gdb): orm tag from embedded struct is missing in with feature ( #4011 )
2024-12-05 22:02:47 +08:00
4ad061faff
feat(contrib/drivers/pgsql): add array type varchar[] and text[] converting to Go []string support ( #4000 )
2024-12-05 15:50:59 +08:00
532e665841
fix(database/gdb): move Raw parameter from args to sql statement before committed to db driver ( #3997 )
2024-12-03 15:24:49 +08:00
2c916f8222
fix(database/gdb): issue where the Count/Value/Array query logic was incompatible with the old version when users extended the returned result fields using the Select Hook ( #3995 )
2024-12-01 23:47:51 +08:00
ec6e091882
chore: fix some function names in comment ( #3967 )
2024-12-01 11:29:09 +08:00
455830b842
test(database/gdb): add more unit testing cases for Raw feature ( #3962 )
2024-11-23 18:35:02 +08:00
e9ce1bde87
fix(database/gdb): incompatitable statement like Order("id", "dasc") ( #3949 )
2024-11-21 15:08:29 +08:00
3090fe7f4e
fix(database/gdb): recognize tinyint(1)/int(1) as bool ( #3943 )
2024-11-20 20:21:33 +08:00
910703ec3a
chore(database/gdb): comment update for function Model.Order ( #3933 )
2024-11-18 18:33:59 +08:00
6baf4338b0
fix(database/gdb): recognize field type tinyint(1) to golang type bool ( #3921 )
2024-11-13 23:09:01 +08:00
6c6fd7902a
feat(database/gdb): remove unnecessary blank character requirement in tag for With feature of gdb.Model ( #3875 )
2024-11-11 21:59:26 +08:00
e4c4fb591e
feat(database/gdb): add Exist support for checking records existance for certain condition ( #3854 )
2024-10-24 15:29:03 +08:00
e179e1d4fe
fix(database/gdb): unix socket connection support for mysql ( #3872 )
2024-10-21 09:22:53 +08:00
7dd38a1700
feat(database/gdb): add Raw support for Fields function of gdb.Model ( #3873 )
2024-10-21 09:22:31 +08:00
91884e7c93
fix(database/gdb): remove support of Array/Value/Count operations for result that has multiple record fields ( #3839 )
2024-10-08 20:42:06 +08:00
7cbc9e8533
test(os/gcache): fix unit testing occasionally failed due to too short expration duration set ( #3842 )
2024-10-08 13:06:11 +08:00
66ee52c96a
fix(database/gdb): invalid order by statement generated when multiple order inputs ( #3803 )
2024-09-28 12:06:22 +08:00
3f2b1cb329
feat(database/gdb): add year field type support for ORM operations ( #3805 )
2024-09-25 16:33:52 +08:00
c13004e230
fix(database/gdb): support OrderRandom feature in different databases ( #3794 )
2024-09-24 11:58:34 +08:00
6a99931798
fix(database/gdb): #3755 error parsing database link without port number ( #3772 )
2024-09-13 16:50:59 +08:00
4ee5bf5c45
fix(database/gdb): #3754 FieldsEx feature conflicts with soft time feature in soft time fields updating ( #3773 )
2024-09-13 16:50:38 +08:00
9b318bb57f
perf(database/gdb): performance improvement for struct scanning when with feature disabled ( #3677 )
2024-09-12 15:38:18 +08:00
bb9a3b83eb
feat(database/gdb): add time field type for value converting for/from field ( #3712 )
2024-09-10 17:51:22 +08:00
6e5ce98d23
fix(database/gdb): fix #3649 when constructing query param, gdb.Row value not directly write to Buffer ( #3718 )
2024-08-14 21:16:17 +08:00
f8272bc5f4
database/gdb: remove duplicated SQL records in tracing events ( #3659 )
2024-06-25 21:11:36 +08:00
2ccbb02c71
fix : #3613 ignore automatic handling for creating/updating time if it has been specified ( #3615 )
2024-06-12 21:41:44 +08:00
753965b9a9
example: password encrypt-decrypt for database using custom implement driver ( #3610 )
2024-06-04 22:04:36 +08:00
b675d01418
database/gdb: add unscoped tag support for orm struct ( #3464 )
2024-05-22 21:52:21 +08:00
17385eeaef
database/gdb: fix confusing error message in Insert/Update operations when table not exist or the table contains no fields ( #3553 )
2024-05-22 21:26:53 +08:00
23df83cb0b
database/gdb: fix deadlock when orm operations perform in cache function from gcache ( #3585 )
2024-05-22 21:14:43 +08:00