Guides¶
New here? Concepts defines the vocabulary and Get started gives you a working repository. These guides then go one capability at a time, each a self-contained read with examples drawn from the kind of code repositories grow into: services that page through results, tasks that batch-insert, queries that join across tables.
Read them in any order. Each opens with the problem it solves, so you can tell at a glance whether it is the one you need right now.
-
Type parameters,
field_mapping,pk_column, and where behavior plugs in. Start here to understand how the base is customized. -
Two ways to filter in a single call, and the special meaning of
NoneandUNSETas filter values. -
Partial updates that can tell "skip this field" apart from "set it to NULL".
-
list_paginated, the total count it returns, and the order it insists on. -
repo[Shape]to select only the columns a narrow shape declares. -
Dataclass, model-as-DTO, or Pydantic, and when each fits.
-
Add to a write or a read with
@on, a derived column, an enriched DTO, an audit row, without overriding anything. -
Domain queries, batch inserts, and the
@writesdecorator, the raw-SQLAlchemy escape hatch for what the base does not cover. -
int,str,uuid.UUID, and tables whose key is not calledid.