This repository has been archived on 2022-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
manual-en-US/chapter-05/7.count.md
2020-03-27 14:29:41 +08:00

213 B

5.7.Count method usage

An ORM pointer struct is required for Count method in order to determine which table to retrieve from.

user := new(User)
total, err := engine.Where("id >?", 1).Count(user)