Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Query builder for .Union() and .UnionAll() #127

@VojtechVitek

Description

@VojtechVitek

Feature request for the query builder:

res1 := col.Find(db.Cond{"name": "Max"}).Limit(10).Sort("-last_name")
res2 := col.Find(db.Cond{"name": "Rex", "age >": "21"}).Limit(15).Sort("-last_name")

err := db.Union(res1, res2).All(&people)

Related: #105

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions