CHAPTER 01 / 04
Models, sessions, and queries
Configure engines, map models, manage sessions, query records, and load relationships.
9 topics
- Mental model, installation, and the 2.x way
- Engine, database URLs, drivers, and connection pools
- Declarative models, mapped columns, defaults, and metadata
- Session, object states, flush, commit, and rollback
- CRUD with normal ORM objects
- SELECT statements and result shapes
- WHERE, boolean logic, ordering, offsets, and keyset pagination
- Foreign keys, relationships, joins, and association tables
- Lazy loading, eager loading, and preventing N+1 queries