v0.0.133
This commit is contained in:
11
wmo/mongo.go
Normal file
11
wmo/mongo.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package wmo
|
||||
|
||||
import "go.mongodb.org/mongo-driver/mongo"
|
||||
|
||||
func W[TData any](collection *mongo.Collection) *Coll[TData] {
|
||||
c := Coll[TData]{coll: collection}
|
||||
|
||||
c.init()
|
||||
|
||||
return &c
|
||||
}
|
Reference in New Issue
Block a user