Compare commits

...

2 Commits

Author SHA1 Message Date
8de83cc290 v0.0.155 2023-06-08 16:26:06 +02:00
603ec82b83 v0.0.154 2023-06-08 16:24:53 +02:00
3 changed files with 8 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.153"
const GoextVersion = "0.0.155"
const GoextVersionTimestamp = "2023-06-08T16:24:15+0200"
const GoextVersionTimestamp = "2023-06-08T16:26:06+0200"

View File

@@ -2,13 +2,17 @@ package wmo
import (
"context"
"go.mongodb.org/mongo-driver/bson/bsontype"
"go.mongodb.org/mongo-driver/mongo"
ct "gogs.mikescher.com/BlackForestBytes/goext/cursortoken"
"gogs.mikescher.com/BlackForestBytes/goext/langext"
"reflect"
)
type EntityID = any
type EntityID interface {
MarshalBSONValue() (bsontype.Type, []byte, error)
String() string
}
type fullTypeRef[TData any] struct {
IsPointer bool

View File

@@ -6,7 +6,7 @@ import (
"go.mongodb.org/mongo-driver/mongo"
)
func (c *Coll[TData]) DeleteOnebyID(ctx context.Context, id EntityID) error {
func (c *Coll[TData]) DeleteOneByID(ctx context.Context, id EntityID) error {
_, err := c.coll.DeleteOne(ctx, bson.M{"_id": id})
if err != nil {
return err