There are two different ways to make queries.
- Db methods
Db::execute()
Db::queryValue()
Db::queryRow()
Db::queryRows()
- query builder methods
DbQueryBuilder
provides methods similar to sql syntax, and generates real sql adapted to different databases(eg. mysql/oracle).