go-ozzo / ozzo-dbx

A Go (golang) package that enhances the standard database/sql package by providing powerful data retrieval methods as well as DB-agnostic query building capabilities.
MIT License
634 stars 90 forks source link

Add upsert query support in model query. #73

Open vaishali-ntnx opened 5 years ago

vaishali-ntnx commented 5 years ago

Please add support for upsert query as well in model query. In already existing upsert query, we need to build params. it doesn't directly take struct. this query should be supported: "db.Model(&structName).Upsert()"