This commit is contained in:
Patrick O'brien 2016-09-01 07:03:11 +10:00
parent 7b63458055
commit 516ce100f2

View file

@ -680,8 +680,8 @@ Select is done through [Query Building](#query-building) and [Find](#find). Here
// Select one pilot // Select one pilot
pilot, err := models.Pilots(db, qm.Where("name=?", "Tim")).One() pilot, err := models.Pilots(db, qm.Where("name=?", "Tim")).One()
// Select many jets // Select specific columns of many jets
jets, err := models.Jets(db, qm.Where("age > ?", 20)).All() jets, err := models.Jets(db, qm.Select("age", "name")).All()
``` ```
### Find ### Find