Add UpdateSet
This commit is contained in:
11
persist.go
11
persist.go
@@ -104,6 +104,7 @@ func Init(props *InitProps) {
|
||||
BuildGetOne(col, report)
|
||||
BuildDeleteOne(col, report)
|
||||
BuildReplaceOne(col, report)
|
||||
BuildUpdateSet(col, report)
|
||||
|
||||
client.AddDefinition(col)
|
||||
}
|
||||
@@ -315,3 +316,13 @@ func (p *Persist) GetAccountByCode(ctx context.Context, code string) (*Account,
|
||||
|
||||
return &acc, nil
|
||||
}
|
||||
|
||||
func SetRelaxed() {
|
||||
client := mongo.GetMongoClient()
|
||||
client.SetRelaxed()
|
||||
}
|
||||
|
||||
func SetStrict() {
|
||||
client := mongo.GetMongoClient()
|
||||
client.SetStrict()
|
||||
}
|
||||
Reference in New Issue
Block a user