I am trying to implement "Insert Ignore" in GORM. I tried Create() but I couldn't find a way to add Ignore. I also tried Clause in Gorm,
DB.Clauses(clause.Insert{Modifier: "IGNORE"}).Create(&user)`.
However, I got an error says Clauses undefined (type *"github.com/jinzhu/gorm".DB has no field or method Clauses).
I also tried to use DB.Raw(), but I don't know how to change the table each time since I have so many tables in my database. For example
DB.Raw("INSERT IGNORE INTO A/B/C/.. ... ...")`.
I have a lot of tables that will go through this function, each time I might insert into a different table.
I am wondering if anybody has experience with Insert Ignore in GORM. Thanks!