mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
68b02218d736cbed15125d7ddc805ce00ac63f80
## Summary - Add full test infrastructure (`mariadb_unit_init_test.go`) with MariaDB-specific helpers (createTable, createInitTable, dropTable) matching the MySQL test baseline - Port 4 basic tests from MySQL: `Test_New`, `Test_DB_Ping`, `Test_DB_Query`, `Test_DB_Exec` - Port 47 core tests covering CRUD operations, raw SQL, schema switching, and DB/TX method parity - Port 55 model tests covering Model API: Fields, Where, Scan, Save, Replace, InsertIgnore, InsertGetId, OmitEmpty, Distinct, Count/Min/Max/Avg/Sum, HasField, chained operations, testdata SQL-based scenarios and more - Add 5 testdata SQL files required by model tests (copied from MySQL baseline) All tests are structurally identical to the MySQL driver baseline. SQL syntax is standard and shared. Package and import references are adapted for MariaDB. ref #4689 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
refactor(container): add default nil checker, rename RegisterNilChecker to SetNilChecker, migrate instance containers to type-safe generics (#4630)
fix(databse/gdb): use COUNT(1) if fields number is greater than 1 even when parameter
useFieldForCount is true in AllAndCount/ScanAndCount (#4701)
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%
