feat(sqltypes): add nullable SQL types with automatic casting
CI / build-and-test (push) Successful in 1m54s
Release / release (push) Successful in 3m12s

* Introduced SqlNull type for nullable values with auto-casting.
* Implemented JSON, YAML, and XML marshaling/unmarshaling.
* Added specific types for common SQL types (e.g., SqlInt64, SqlString).
* Included utility functions for creating nullable types.
* Added SqlTimeStamp, SqlDate, and SqlTime types with custom formatting.
This commit is contained in:
Hein
2026-07-15 12:55:15 +02:00
parent f94fddddb1
commit 3d4e6d0939
40 changed files with 1240 additions and 330 deletions
+3 -3
View File
@@ -1,3 +1,6 @@
# git.warky.dev/wdevs/relspecgo v1.0.62
## explicit; go 1.25.7
git.warky.dev/wdevs/relspecgo/pkg/sqltypes
# github.com/beorn7/perks v1.0.1
## explicit; go 1.11
github.com/beorn7/perks/quantile
@@ -15,7 +18,6 @@ github.com/bitechdev/ResolveSpec/pkg/modelregistry
github.com/bitechdev/ResolveSpec/pkg/reflection
github.com/bitechdev/ResolveSpec/pkg/resolvespec
github.com/bitechdev/ResolveSpec/pkg/security
github.com/bitechdev/ResolveSpec/pkg/spectypes
# github.com/bradfitz/gomemcache v0.0.0-20260422231931-4d751bb6e37c
## explicit; go 1.18
github.com/bradfitz/gomemcache/memcache
@@ -184,8 +186,6 @@ github.com/redis/go-redis/v9/internal/routing
github.com/redis/go-redis/v9/internal/util
github.com/redis/go-redis/v9/maintnotifications
github.com/redis/go-redis/v9/push
# github.com/rogpeppe/go-internal v1.14.1
## explicit; go 1.23
# github.com/sagikazarmark/locafero v0.12.0
## explicit; go 1.23.0
github.com/sagikazarmark/locafero