diff --git a/go.mod b/go.mod index ed258fb..e7e1d72 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/gin-contrib/sse v0.1.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-playground/validator/v10 v10.18.0 // indirect + github.com/go-playground/validator/v10 v10.19.0 // indirect github.com/goccy/go-json v0.10.2 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/google/uuid v1.5.0 // indirect diff --git a/go.sum b/go.sum index 194a89e..17a6577 100644 --- a/go.sum +++ b/go.sum @@ -41,6 +41,8 @@ github.com/go-playground/validator/v10 v10.17.0 h1:SmVVlfAOtlZncTxRuinDPomC2DkXJ github.com/go-playground/validator/v10 v10.17.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-playground/validator/v10 v10.18.0 h1:BvolUXjp4zuvkZ5YN5t7ebzbhlUtPsPm2S9NAZ5nl9U= github.com/go-playground/validator/v10 v10.18.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM= +github.com/go-playground/validator/v10 v10.19.0 h1:ol+5Fu+cSq9JD7SoSqe04GMI92cbn0+wvQ3bZ8b/AU4= +github.com/go-playground/validator/v10 v10.19.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM= github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= diff --git a/goextVersion.go b/goextVersion.go index 632f20b..19c8700 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.396" +const GoextVersion = "0.0.397" -const GoextVersionTimestamp = "2024-02-28T14:28:48+0100" +const GoextVersionTimestamp = "2024-03-04T12:17:10+0100" diff --git a/wmo/collection.go b/wmo/collection.go index b69f715..121f31d 100644 --- a/wmo/collection.go +++ b/wmo/collection.go @@ -38,6 +38,13 @@ type fullTypeRef struct { Index []int } +type IColl interface { + Collection() *mongo.Collection + Name() string + Indexes() mongo.IndexView + Drop(ctx context.Context) error +} + type Coll[TData any] struct { coll *mongo.Collection // internal mongo collection, access via Collection() dataTypeMap map[string]fullTypeRef // list of TData fields (only if TData is not an interface)