Very badly documented, but after a bit of tinkering I got db.Table("points").Select("DISTINCT(field_name)").Where("created_at >= ?", time.Now().Local().AddDate(0, 0, -1)).Scan(&points) working.
>All comments
Very badly documented, but after a bit of tinkering I got db.Table("points").Select("DISTINCT(field_name)").Where("created_at >= ?", time.Now().Local().AddDate(0, 0, -1)).Scan(&points) working.
Most helpful comment
Very badly documented, but after a bit of tinkering I got
db.Table("points").Select("DISTINCT(field_name)").Where("created_at >= ?", time.Now().Local().AddDate(0, 0, -1)).Scan(&points)working.