MCPcopy
hub / github.com/astaxie/build-web-application-with-golang / groupby

Function groupby

en/code/src/apps/ch.5.5/main.go:101–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101func groupby() {
102 fmt.Println("groupby()")
103 //Original SQL Group By
104 b, err := orm.SetTable("userinfo").GroupBy("username").Having("username='updateastaxie'").FindMap()
105 checkError(err)
106 fmt.Printf("%+v\n", b)
107}
108
109func joinTables(id int64) {
110 fmt.Println("joinTables()")

Callers 1

mainFunction · 0.70

Calls 1

checkErrorFunction · 0.70

Tested by

no test coverage detected