Releases: go-gorm/gorm
Releases · go-gorm/gorm
Release v1.30.1
Changes
- optimize: field.ReflectValueOf @liov (#7530)
- optimize: performance optimization @liov (#7526)
- fix(schema): check the hook function parameter type @demoManito (#7468)
- Fix: Unexpected OR Conditions force converted to AND @Riseif (#7512)
- Add GaussDB Database Support @moseszane168 (#7508)
- Call after initialize for gorm.Config @jinzhu (#7518)
- A little optimization for filed.ValueOf @liov (#7499)
- fixes #7486 @Eshan-Jogwar (#7492)
- fix decimal migrate error. @Chise1 (#7450)
- test: update MySQL test matrix to use official images and add 9.0, 8.4 versions @enomotodev (#7476)
Release v1.30.0
Changes
- (WIP) Implement Generics API @jinzhu (#7424)
- perf(schema): avoid redundant strings.ToLower call @1911860538 (#7464)
- fix: return init dialector error @codingplz (#7379)
- perf: break early on match failure in ParseConstraint @1911860538 (#7402)
- feat: error message show field name @pi12138 (#7452)
- perf: use strings.IndexByte to replace strings.Index @1911860538 (#7454)
- perf: use strings.Cut to replace strings.SplitN @1911860538 (#7455)
Release v1.26.1
Release v1.26.0
Changes
- Preparestmt use LRU Map instead default map @Yaccc (#7435)
- use golangci replace reviewdog @jinzhu (#7426)
- test: mssql ci @a631807682 (#7388)
- fix deprecated reflect.PtrTo reflect.PointerTo usage @Aman-Shitta (#7366)
- Fix concurrent map writes #7297 @Ponywka (#7298)
- chore: update copyright year @maxktz (#7332)
- Enhance db.Scan with ParamsFilter - Issue 7336 - Suggestion @evyaffe (#7337)
- Fixed Empty Returning Clause Merge Edge Case @aviyam181199 (#7339)
- feat:Capitalize the priority field of IndexOption(https://github.com/go-gorm/gorm/issues/7331) @nowindexman (#7342)
- fix: deterministic index ordering when migrating @bamo (#7208)
- use map look-up for indexes @abbyssoul (#7242)
- [#6372] Fixed nullable constraint bug for columns during auto migration @wookie0 (#7269)
- Create CODE_OF_CONDUCT.md @omidfth (#7240)
- Enhance Release Process: Implement Automated Release Management and Notes Generation @YidiDev (#7224)
- refactor: improve logging for unimplemented ErrorTranslator in TranlateError config enabled @Invidam (#7225)
- Add GitHub Actions workflow to automate release creation on tagged pushes @YidiDev (#7209)
- Use official SQL Server docker image for tests @omkar-foss (#7205)
- feat: Modernize Docker Compose File @isso-719 (#7086)
- Generate unique savepoint names for nested transactions @phroggyy (#7174)
- fix: AfterQuery using safer right trim while clearing from clause's j… @bhowmik-abhijeet (#7153)
- fix memory leaks in PrepareStatementDB @ivila (#7142)
- ci: Add PostgreSQL 14 and 15 to GitHub Actions matrix @enomotodev (#7081)
- feat: add MapColumns method @molon (#6901)
- add DB level propagation for the Unscoped flag @sprataa (#7007)
- fix(scan): update Scan function to reset structs to zero values for each scan @Waldeedle (#7061)
- fix: use reflect.Append when preloading nested associations instead of making a slice with fixed size @emilienkofman (#7014)
- Fix association replace non-addressable panic @SergeiSadov (#7012)
- fix:
unsupported data
on nested joins with preloads @N-Schaef (#6957) - fix: AfterQuery should clear FROM Clause's Joins rather than the Stat… @liov (#7027)
- feat: chainable order support clause.OrderBy @supergem3000 (#7054)
- fix: strings.Title -> cases.Title bcs strings.Title library is deprecated @ryuji-cre8ive (#6999)
- fix: typo @hakusai22 (#7003)
- Fix handling of unknown column types @looi (#6540)
- Fix panic bug in migrator due to lack of nil check for stmt.Schema @pixelmaxQm (#6932)
- Add new error for "Violation Check Constraint" @anilsenay (#6992)
- fix: not clause with or condition @a631807682 (#6984)
- perf: merge nested preload query when using join @a631807682 (#6990)
- Faster utils.FileWithLineNum @kkocdko (#6981)
- Added comment describing Unscoped() method @AntonyChR (#6969)
- fix: duplicated preload @yetone (#6948)
- feat: prepare_stmt support ping @philhuan (#6924)
- fix: remove
callback
fromcallbacks
ifRemove()
called @snackmgmg (#6916) - fix: 'type XXXX int' will print wrong sql to terminal @wangzeping722 (#6917)
- chore: optimize
regEnLetterAndMidline
regular @demoManito (#6908) - fix(create): fix insert column order @archever (#6855)
- chore: optimize conversion of nanoseconds to milliseconds @demoManito (#6907)
- fix(scan): array element is set to a zero value @demoManito (#6890)
- fix: nested preload with join panic when find @black-06 (#6877)
- fix(scan.go): reflect.MakeSlice may pass in the wrong type reflect.Array @demoManito (#6880)
- test: namer identifier lenght @a631807682 (#6872)
- fix some typos in tests @hishope (#6879)
- Fix regression in db.Not introduced in v1.25.6. @tsuba3 (#6844)
- Add unittest test helper function ConvertSliceOfMapToValuesForCreate @naruchet (#6854)
- CHORE add unittest test function ConvertMapToValueForCreate @naruchet (#6846)
- Fix: panic on nullable value with multiple foreign key usage @shtrih (#6839)
- refactor: part 2 of distinguish between Unique and UniqueIndex @black-06 (#6822)
- let limit and offset use bind parameter @jasonchuan (#6806)
- refactor: distinguish between Unique and UniqueIndex @black-06 (#6386)
- fix: preload shouldn't overwrite the value of join @black-06 (#6771)
- chore(deps): bump actions/cache from 3 to 4 @dependabot[bot] (#6802)
- fix: ignore .gen.go suffix in logger to get the real caller when using gen @0xJacky (#6785)
- fix: ExplainSQL using consecutive pairs of escaper in SQL string represents an escaper @iTanken (#6766)
- fix: join and select mytable.* not working @StephanoGeorge (#6761)
- feature: bring custom type and id column name to polymorphism @alexisvisco (#6716)
- Making locking parameters more intuitive @dogenkigen (#6719)
- refactor: Resolve implicit memory aliasing in for loop @BugKillerPro (#6730)
- map insert support return increment id @FangSqing (#6662)
- docs: fix broken link @kijimaD (#6673)
- chore(logger): optimize @flc1125 (#6675)
- feat: add MigrateColumnUnique @black-06 (#6640)
- test: fix TestEmbeddedRelations @a631807682 (#6639)
- tests for sqilte: enable FOREIGN_KEYS inside OpenTestConnection @glebarez (#6641)
- Add support for returning in sqlserver @FrancoLiberali (#6585)
- chore(deps): bump actions/checkout from 3 to 4 @dependabot[bot] (#6586)
- Don't call MethodByName with a variable arg @jquirke (#6602)
- feat: reuse name @philhuan (#6626)
- fix: sqlite dialector cannot apply
PRIMARY KEY AUTOINCREMENT
type @samuelncui (#6624) - Fixed error message when dialector fails to initialize @RatajVaver (#6509)
- fix schema GetIdentityFieldValuesMap interface or ptr @uptutu (#6417)
- add float32 test case for keep float precision in ExplainSQL @Heliner (#6530)
- feat: rm GetDBConnWithContext method @qqxhb (#6535)
- fix(clause): clause equal empty array @whcao (#6503)
- refactor: Regex description @fayvori (#6507)
- fix: rectify
SkipHooks
not working withNewDB
set in Session method @aayushacharya (#6484) - keep float precision in ExplainSQL @kumakichi (#6495)
- test: coverage for tabletype added @saeidee (#6496)
- test: coverage for foreign key violation err @saeidee (#6403)
- ci: fix mariadb mysqladmin @saeidee (#6401)
- test: coverage for duplicated key err @saeidee (#6389)
- Fix incorrect documentation comment (has many -> has one) @johannes-riecken (#6382)
- fix: database/sql.Scanner should not retain references @ncruces (#6380)
- feat: add *sql.DB connector that uses database context @lzakharov (#6366)
- reafactor: add nil detection when sqldb return @KantaHasegawa (#6373)
- refactor: remove unnecessary prepared statement allocation @lzakharov (#6374)
- fix: avoid panic when open fails @black-06 (#6368)
- fix: begin transaction fail, rollback panic @zhouit (#6365)
- max identifier length changed to 63 @alidevhere (#6337)
- fix: save with hook (#6285) @black-06 (#6294)
- fix(nested transaction): SavePoint SQL Statement not support in Prepared Statements @wangliuyang520 (#6220)
- refactor: error translator test @saeidee (#6350)
- Added support of "Violates Foreign Key Constraint" @amirejaz75 (#6329)
- feature: rename License to LICENSE (#6331) @Avinaba-Bhattacharjee (#6336)
- fix:clickhouse error not capture(#6277) @201430098137 (#6321)
- fix: 🐛 embedded struct test failed with custom datatypes @aclich (#6311)
- feat: migrator support table comment @johnmai-dev (#6225)
- feat: unscoped association (#5899) @black-06 (#6246)
- fix: 🐛 some numeric types in embedded pointer type struct cause test failed @hykuan (#6293)
- fix: use slice Stale sort @Hanwn (#6263)
- fix: nested joins alias @a631807682 (#6265)
- fix typo in comment example of DB.Table() @yikakia (#6266)
- fix: avoid coroutine leaks when the dialecter initialization fails. @onlyice (#6249)
- fix: unit test @black-06 (#6250)
- feat: support embedded preload @black-06 (#6137)
- fix cond in scopes @black-06 (#6152)
- fix: many2many association with duplicate belongs to elem @bsmith-auth0 (#6206)
- refactor(migrator): non-standard codes @demoManito (#6180)
- chore(deps): bump actions/stale from 7 to 8 @dependabot[bot] (#6190)
- fix:
limit(0).offset(b)
return all data, where b <= 0 @Hanwn (#6191) - fix: embedded should be nil if not exists @a631807682 (#6219)
- refactor: translatorError flag added for backward compatibility @saeidee (#6178)
- avoid starting a transaction when performing only one insert operation in CreateInBatches @chenyahui (#6174)
- fix: count with group (#6157) @black-06 (#6160)
- save should be idempotent @black-06 (#6149)
- chore(deps): bump actions/setup-go from 3 to 4 @dependabot[bot] (#6165)
- feat: support nested join @a631807682 (#6067)
- test: pgsql alter column from smallint or string to boolean @jeffry-luqman (#6107)
- fix: diff schema update assign value @a631807682 (#6096)
- refactor: translate error only when it is not nil @saeidee (#6133)
- Fix: Composite primary key with auto-increment value returns 0 after insert @truongns (#6127)
- fix: on confilct with default null @a631807682 (#6129)
- feat: Unique Constraint Violation error translator for different drivers @saeidee (#6004)
- Refactor: Remove redundant code @xiaoliwang (#6087)
- Create and drop view @black-06 (#6097)
- quotes on docker-compose.yml ports @xiaoliwang (#6089)
- test: pgsql migrate unique index @a631807682 (#6028)
- fix: update panic if model is not ptr @black-06 (#6037)
- fix: association concurrently appending @black-06 (#6044)
- fix: miss join type @a631807682 (#6056)
- Issue 6054: Unscoped not working with PreLoad on Joins @manstis (#6058)
- feat: add tidb integration test cases @Icemap (#6014)
- fix:throw model value required error @a631807682 (#6031)
- fix: ignore nil query @chyroc (#6021)
- fix: support zeroValue tag on DeletedAt @qiankunli (#6011)
- fix(schema): field is only unique when there is one unique index @Nomango (#5974)
- fix(migrator): Tag default:'null' always causes field migrati...