View definition

(*DB).FirstOrCreate

Defined in github.com/jinzhu/gorm/main.go

Description

FirstOrCreate find first matched record or create a new one with given conditions (only works with struct, map conditions) https://jinzhu.github.io/gorm/curd.html#firstorcreate

FirstOrCreate is referenced in 29 repositories

github.com/jinzhu/gorm github.com/DexterLB/mvm github.com/xconstruct/stark

...