mirror of
https://gitee.com/johng/gf
synced 2026-07-03 03:39:35 +08:00
be7851c664729679f94829693bc48e760d34e83d
## Summary - Add 3 new test files for pgsql driver (39 test functions, ~3800 lines) - `pgsql_z_unit_feature_soft_time_test.go`: 15 tests — soft delete (SoftDeleted/Unscoped), auto time fields (CreatedAt/UpdatedAt/DeletedAt), time format options - `pgsql_z_unit_feature_with_test.go`: 17 tests — With relation queries (one-to-one, one-to-many, many-to-many), nested With, WithAll, conditional With - `pgsql_z_unit_feature_scanlist_test.go`: 7 tests — ScanList relation mapping for struct slices - Add testdata SQL templates for With tests **PostgreSQL adaptations from MySQL:** - `AUTO_INCREMENT` → `SERIAL/BIGSERIAL` - `datetime` → `timestamp` - MySQL backticks → PostgreSQL double quotes for identifiers - Timestamp format handling for soft time fields ## Test plan - [x] Run `go test -v -run "Test_Model_Soft" -count=1` in `contrib/drivers/pgsql` - [x] Run `go test -v -run "Test_Model_With" -count=1` in `contrib/drivers/pgsql` - [x] Run `go test -v -run "Test_Model_ScanList" -count=1` in `contrib/drivers/pgsql` ref #4689
refactor(container): add default nil checker, rename RegisterNilChecker to SetNilChecker, migrate instance containers to type-safe generics (#4630)
refactor(container): add default nil checker, rename RegisterNilChecker to SetNilChecker, migrate instance containers to type-safe generics (#4630)
refract(gerror): add ITextArgs interface and its implements, mainly for i18n that needs text and args separately (#4597)
English | 简体中文
A powerful framework for faster, easier, and more efficient project development.
Installation
go get -u github.com/gogf/gf/v2
Documentation
- Official Site: https://goframe.org
- Official Site(en): https://goframe.org/en
- 国内镜像: https://goframe.org.cn
- Mirror Site: https://pages.goframe.org
- Mirror Site: Offline Docs
- GoDoc API: https://pkg.go.dev/github.com/gogf/gf/v2
- Doc Source: https://github.com/gogf/gf-site
Contributors
💖 Thanks to all the contributors who made GoFrame possible 💖
License
GoFrame is licensed under the MIT License, 100% free and open-source, forever.
Languages
GO
100%
