I'm working with complicated structure database, and after update we start using GORM so I need to transform this script using GORM.
query := `
SELECT * FROM foo
UNION ALL
SELECT * FROM bar WHERE id=1`
rows, err := db.Query(query)
What is the best way to do it?