Expose updateone to a service

v2
Nikita Tokarchuk 4 years ago
parent 0b798fe818
commit 442320b31a
No known key found for this signature in database
GPG Key ID: DBFD964471BAE65C
  1. 1
      mongox/mongox.go

@ -28,6 +28,7 @@ type Database interface {
LoadOne(target interface{}, filters ...interface{}) (err error) LoadOne(target interface{}, filters ...interface{}) (err error)
LoadStream(target interface{}, filters ...interface{}) (loader StreamLoader, err error) LoadStream(target interface{}, filters ...interface{}) (loader StreamLoader, err error)
SaveOne(source interface{}, filters ...interface{}) (err error) SaveOne(source interface{}, filters ...interface{}) (err error)
UpdateOne(target interface{}, filters ...interface{}) (err error)
IndexEnsure(cfg interface{}, document interface{}) (err error) IndexEnsure(cfg interface{}, document interface{}) (err error)
} }

Loading…
Cancel
Save