Describe the feature
Motivation
Related Issues
Comment From: itmisx
common API
db.Table("(? UNION ALL ?) as user",db.Table("user1"),db.Table("user2")).Find(&users)
DAO API
unionDB := db.Table("(? UNION ALL ?) as user",db.Table("user1"),db.Table("user2"))
u:=db.Use(unionDB).User
tx:=u.WithContext(context.Background).Find()
Comment From: wchargin
Is this sufficient to support something like SELECT name FROM users UNION SELECT name FROM organizations
, where users
and organizations
have different structure?