Expand description
Dialect-generic CRUD operations.
Core functions accept any Executor so the same CRUD runs against a pool
or an in-flight transaction. [Pool] and [Transaction] delegate to these
functions.
Functionsยง
- delete
- Delete an entity by its primary key.
- fetch_
all - Execute a raw SQL query and return all matching rows.
- find_
all - Fetch all entities of this type.
- find_
by_ id - Find an entity by its primary key.
- insert
- Insert a new entity and return it.
- update
- Update an existing entity (matched by id) and return the updated row.