You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[typeid] Remove NullableID in favor of sql.Null[TypeID], remove Must() (#519)
## Summary
Replace NullableID with sql.Null[TypeID] for nullable columns
- Remove custom NullableID type in favor of Go's standard
sql.Null[TypeID]
- Update all tests to use sql.Null[TypeID] instead of NullableID
- Update examples to demonstrate sql.Null[TypeID] usage
- Add documentation recommending sql.Null[TypeID] for nullable columns
- Maintain full backward compatibility for database operations
Remove Must function from typeid.go to keep API surface small. Introduce
MustParse as a helper only in tests (not part of public API)
## How was it tested?
Updated unit tests and ran them.
## Community Contribution License
All community contributions in this pull request are licensed to the
project maintainers under the terms of the [Apache 2
License](https://www.apache.org/licenses/LICENSE-2.0).
By creating this pull request I represent that I have the right to
license the contributions to the project maintainers under the Apache 2
License as stated in the [Community Contribution
License](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
0 commit comments