Tags: go-gorm/datatypes
Tags
Improve JSON types to consistently return string values (#311) * Initial plan * Fix MySQL interpolateParams=true issue by returning json.RawMessage from all JSON types Co-authored-by: jinzhu <6843+jinzhu@users.noreply.github.com> * Add tests to verify JSON types return json.RawMessage for MySQL interpolateParams compatibility Co-authored-by: jinzhu <6843+jinzhu@users.noreply.github.com> * Change JSONType and JSONSlice to return string instead of json.RawMessage Co-authored-by: jinzhu <6843+jinzhu@users.noreply.github.com> * Rollback json.go and json_map.go changes - all JSON types now return string Co-authored-by: jinzhu <6843+jinzhu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jinzhu <6843+jinzhu@users.noreply.github.com>
Bump gorm.io/driver/sqlserver from 1.4.1 to 1.5.4 (#277) Bumps [gorm.io/driver/sqlserver](https://github.com/go-gorm/sqlserver) from 1.4.1 to 1.5.4. - [Commits](go-gorm/sqlserver@v1.4.1...v1.5.4) --- updated-dependencies: - dependency-name: gorm.io/driver/sqlserver dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feature: Add datatype BinUUID for uuid as binary storage in DB (#264) This adds a new datatype BinUUID, similar to datatypes.UUID but with a major difference being that BinUUID stores the uuid in the database as a binary (byte) array instead of a string. Developers may use either datatypes.UUID or datatypes.BinUUID as per their preference, either storing uuid in the database as a string or as a binary (byte) array respectively.
PreviousNext